Lines Matching refs:info

106 static int test_generic(INFO *info, int kind)  in test_generic()  argument
127 if (!TEST_ptr(pkt = ossl_quic_txpim_pkt_alloc(info->txpim))) in test_generic()
132 if (!TEST_true(ossl_quic_sstream_append(info->sstream[i], in test_generic()
139 ossl_quic_sstream_fin(info->sstream[i]); in test_generic()
141 if (!TEST_true(ossl_quic_sstream_get_stream_frame(info->sstream[i], 0, in test_generic()
146 || !TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(info->sstream[i]), 12) in test_generic()
147 || !TEST_true(ossl_quic_sstream_mark_transmitted(info->sstream[i], in test_generic()
152 if (i == 1 && !TEST_true(ossl_quic_sstream_mark_transmitted_fin(info->sstream[i], in test_generic()
163 if (!TEST_ptr(cfq_item = ossl_quic_cfq_add_frame(info->cfq, 10, in test_generic()
169 || !TEST_ptr_eq(cfq_item, ossl_quic_cfq_get_priority_head(info->cfq, pn_space))) in test_generic()
194 if (!TEST_true(ossl_quic_fifd_pkt_commit(&info->fifd, pkt))) in test_generic()
198 if (!TEST_ptr_null(ossl_quic_cfq_get_priority_head(info->cfq, pn_space))) in test_generic()
203 if (!TEST_true(ossl_ackm_on_rx_ack_frame(info->ackm, &ack, in test_generic()
209 if (!TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(info->sstream[i]), 0)) in test_generic()
213 if (!TEST_false(ossl_quic_sstream_mark_lost_fin(info->sstream[1]))) in test_generic()
228 if (!TEST_ptr(pkt2 = ossl_quic_txpim_pkt_alloc(info->txpim))) in test_generic()
245 if (!TEST_true(ossl_quic_fifd_pkt_commit(&info->fifd, pkt2)) in test_generic()
246 || !TEST_true(ossl_ackm_on_rx_ack_frame(info->ackm, &ack, in test_generic()
256 if (!TEST_true(ossl_quic_sstream_get_stream_frame(info->sstream[i], 0, in test_generic()
282 if (!TEST_ptr_eq(cfq_item, ossl_quic_cfq_get_priority_head(info->cfq, pn_space))) in test_generic()
287 if (!TEST_true(ossl_quic_sstream_get_stream_frame(info->sstream[1], 1, in test_generic()
296 if (!TEST_true(ossl_ackm_on_pkt_space_discarded(info->ackm, pn_space))) in test_generic()
310 if (!TEST_size_t_eq(ossl_quic_txpim_get_in_use(info->txpim), 0)) in test_generic()
321 INFO info = {0}; in test_fifd() local
324 cur_info = &info; in test_fifd()
327 if (!TEST_true(ossl_statm_init(&info.statm)) in test_fifd()
328 || !TEST_ptr(info.ccdata = ossl_cc_dummy_method.new(fake_now, NULL)) in test_fifd()
329 || !TEST_ptr(info.ackm = ossl_ackm_new(fake_now, NULL, in test_fifd()
330 &info.statm, in test_fifd()
332 info.ccdata)) in test_fifd()
333 || !TEST_true(ossl_ackm_on_handshake_confirmed(info.ackm)) in test_fifd()
334 || !TEST_ptr(info.cfq = ossl_quic_cfq_new()) in test_fifd()
335 || !TEST_ptr(info.txpim = ossl_quic_txpim_new()) in test_fifd()
336 || !TEST_true(ossl_quic_fifd_init(&info.fifd, info.cfq, info.ackm, in test_fifd()
337 info.txpim, in test_fifd()
345 for (i = 0; i < OSSL_NELEM(info.sstream); ++i) in test_fifd()
346 if (!TEST_ptr(info.sstream[i] = ossl_quic_sstream_new(1024))) in test_fifd()
349 ossl_statm_update_rtt(&info.statm, ossl_time_zero(), ossl_ms2time(1)); in test_fifd()
351 if (!TEST_true(test_generic(&info, idx)) in test_fifd()
357 ossl_quic_fifd_cleanup(&info.fifd); in test_fifd()
358 ossl_quic_cfq_free(info.cfq); in test_fifd()
359 ossl_quic_txpim_free(info.txpim); in test_fifd()
360 ossl_ackm_free(info.ackm); in test_fifd()
361 ossl_statm_destroy(&info.statm); in test_fifd()
362 if (info.ccdata != NULL) in test_fifd()
363 ossl_cc_dummy_method.free(info.ccdata); in test_fifd()
364 for (i = 0; i < OSSL_NELEM(info.sstream); ++i) in test_fifd()
365 ossl_quic_sstream_free(info.sstream[i]); in test_fifd()