Lines Matching refs:init_size
46 size_t num_iov = 0, wr = 0, i, init_size = 8192; in test_sstream_simple() local
48 if (!TEST_ptr(sstream = ossl_quic_sstream_new(init_size))) in test_sstream_simple()
222 size_t i, j, num_iov = 0, init_size = 8192, l; in test_sstream_bulk() local
228 if (!TEST_ptr(sstream = ossl_quic_sstream_new(init_size))) in test_sstream_bulk()
231 if (!TEST_size_t_eq(ossl_quic_sstream_get_buffer_size(sstream), init_size)) in test_sstream_bulk()
234 if (!TEST_ptr(src_buf = OPENSSL_zalloc(init_size))) in test_sstream_bulk()
237 if (!TEST_ptr(dst_buf = OPENSSL_malloc(init_size))) in test_sstream_bulk()
240 if (!TEST_ptr(ref_src_buf = OPENSSL_malloc(init_size))) in test_sstream_bulk()
243 if (!TEST_ptr(ref_dst_buf = OPENSSL_malloc(init_size))) in test_sstream_bulk()
249 if (!TEST_true(ossl_quic_sstream_append(sstream, src_buf, init_size / 2, in test_sstream_bulk()
251 || !TEST_size_t_eq(consumed, init_size / 2) in test_sstream_bulk()
253 init_size / 2 - 1)) in test_sstream_bulk()
255 init_size / 2 - 1))) in test_sstream_bulk()
258 start_at = init_size / 2; in test_sstream_bulk()
261 for (i = 0; i < init_size; ++i) in test_sstream_bulk()
267 l = (test_random() % init_size) + 1; in test_sstream_bulk()
276 if (!TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), init_size) in test_sstream_bulk()
300 if (!TEST_true(ossl_quic_sstream_set_buffer_size(sstream, init_size * 2)) in test_sstream_bulk()
301 || !TEST_true(ossl_quic_sstream_set_buffer_size(sstream, init_size))) in test_sstream_bulk()