Lines Matching refs:sstream
43 QUIC_SSTREAM *sstream = NULL; in test_sstream_simple() local
48 if (!TEST_ptr(sstream = ossl_quic_sstream_new(init_size))) in test_sstream_simple()
52 if (!TEST_true(ossl_quic_sstream_is_totally_acked(sstream))) in test_sstream_simple()
57 if (!TEST_false(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
62 if (!TEST_true(ossl_quic_sstream_append(sstream, data_1, sizeof(data_1), in test_sstream_simple()
68 if (!TEST_false(ossl_quic_sstream_is_totally_acked(sstream))) in test_sstream_simple()
73 if (!TEST_true(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
85 if (!TEST_true(ossl_quic_sstream_mark_transmitted(sstream, 0, 7))) in test_sstream_simple()
90 if (!TEST_true(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
101 if (!TEST_true(ossl_quic_sstream_mark_transmitted(sstream, 8, 15))) in test_sstream_simple()
106 if (!TEST_false(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
111 if (!TEST_true(ossl_quic_sstream_mark_lost(sstream, 4, 6))) in test_sstream_simple()
116 if (!TEST_true(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
128 if (!TEST_true(ossl_quic_sstream_mark_transmitted(sstream, 4, 6))) in test_sstream_simple()
133 if (!TEST_false(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
137 if (!TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), 16)) in test_sstream_simple()
141 if (!TEST_true(ossl_quic_sstream_mark_acked(sstream, 1, 7)) in test_sstream_simple()
142 || !TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), 16)) in test_sstream_simple()
146 if (!TEST_true(ossl_quic_sstream_mark_acked(sstream, 0, 0)) in test_sstream_simple()
147 || !TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), 8)) in test_sstream_simple()
150 if (!TEST_true(ossl_quic_sstream_mark_acked(sstream, 0, 15)) in test_sstream_simple()
151 || !TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), 0)) in test_sstream_simple()
155 ossl_quic_sstream_fin(sstream); in test_sstream_simple()
160 if (!TEST_true(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
169 if (!TEST_true(ossl_quic_sstream_mark_transmitted_fin(sstream, 16))) in test_sstream_simple()
174 if (!TEST_false(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
179 if (!TEST_true(ossl_quic_sstream_mark_lost_fin(sstream))) in test_sstream_simple()
185 if (!TEST_true(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
194 if (!TEST_true(ossl_quic_sstream_mark_transmitted_fin(sstream, 16))) in test_sstream_simple()
199 if (!TEST_false(ossl_quic_sstream_get_stream_frame(sstream, 0, &hdr, iov, in test_sstream_simple()
204 if (!TEST_true(ossl_quic_sstream_mark_acked_fin(sstream))) in test_sstream_simple()
207 if (!TEST_true(ossl_quic_sstream_is_totally_acked(sstream))) in test_sstream_simple()
212 ossl_quic_sstream_free(sstream); in test_sstream_simple()
219 QUIC_SSTREAM *sstream = NULL; 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()
249 if (!TEST_true(ossl_quic_sstream_append(sstream, src_buf, init_size / 2, in test_sstream_bulk()
252 || !TEST_true(ossl_quic_sstream_mark_transmitted(sstream, 0, in test_sstream_bulk()
254 || !TEST_true(ossl_quic_sstream_mark_acked(sstream, 0, in test_sstream_bulk()
268 if (!TEST_true(ossl_quic_sstream_append(sstream, src_buf, l, &consumed))) in test_sstream_bulk()
276 if (!TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), init_size) in test_sstream_bulk()
277 || !TEST_size_t_eq(ossl_quic_sstream_get_buffer_avail(sstream), 0)) in test_sstream_bulk()
291 } else if (!TEST_true(ossl_quic_sstream_mark_transmitted(sstream, 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()
308 if (!TEST_true(ossl_quic_sstream_get_stream_frame(sstream, i, &hdr, iov, in test_sstream_bulk()
337 ossl_quic_sstream_free(sstream); in test_sstream_bulk()