Lines Matching refs:cc

96     OSSL_CC_DATA         *cc;  member
108 const OSSL_CC_METHOD *ccm, OSSL_CC_DATA *cc, in net_sim_init() argument
112 s->cc = cc; in net_sim_init()
187 if (!TEST_true(s->ccm->on_data_sent(s->cc, sz))) in net_sim_send()
237 if (!TEST_true(s->ccm->on_data_lost(s->cc, &loss_info))) in net_sim_process_one()
240 if (!TEST_true(s->ccm->on_data_lost_finished(s->cc, 0))) in net_sim_process_one()
252 if (!TEST_true(s->ccm->on_data_acked(s->cc, &ack_info))) in net_sim_process_one()
284 static int dump_state(const OSSL_CC_METHOD *ccm, OSSL_CC_DATA *cc, in dump_state() argument
293 if (!TEST_true(ccm->get_option_uint(cc, OSSL_CC_OPTION_CUR_CWND_SIZE, in dump_state()
297 if (!TEST_true(ccm->get_option_uint(cc, OSSL_CC_OPTION_CUR_BYTES_IN_FLIGHT, in dump_state()
301 if (!TEST_true(ccm->get_option_uint(cc, OSSL_CC_OPTION_CUR_STATE, in dump_state()
307 ccm->get_tx_allowance(cc), in dump_state()
334 OSSL_CC_DATA *cc = NULL; in test_simulate() local
346 if (!TEST_ptr(cc = ccm->new(fake_now, NULL))) in test_simulate()
349 if (!TEST_true(net_sim_init(&sim, ccm, cc, actual_capacity, 100))) in test_simulate()
358 if (!TEST_true(ccm->set_input_params(cc, params))) in test_simulate()
368 if (!TEST_true(ccm->bind_diagnostics(cc, params))) in test_simulate()
371 ccm->reset(cc); in test_simulate()
373 if (!TEST_uint64_t_ge(allowance = ccm->get_tx_allowance(cc), mdpl)) in test_simulate()
390 dump_state(ccm, cc, &sim); in test_simulate()
392 allowance = ccm->get_tx_allowance(cc); in test_simulate()
425 if (!TEST_uint64_t_ge(ccm->get_tx_allowance(cc), mdpl)) in test_simulate()
466 if (cc != NULL) in test_simulate()
467 ccm->free(cc); in test_simulate()
486 OSSL_CC_DATA *cc = NULL; in test_sanity() local
497 if (!TEST_ptr(cc = ccm->new(fake_now, NULL))) in test_sanity()
505 if (!TEST_true(ccm->set_input_params(cc, params))) in test_sanity()
508 ccm->reset(cc); in test_sanity()
517 if (!TEST_true(ccm->bind_diagnostics(cc, params)) in test_sanity()
521 if (!TEST_uint64_t_ge(allowance = ccm->get_tx_allowance(cc), 1472)) in test_sanity()
525 if (!TEST_true(ossl_time_is_zero(ccm->get_wakeup_deadline(cc)))) in test_sanity()
533 if (!TEST_true(ccm->on_data_sent(cc, 1200))) in test_sanity()
537 if (!TEST_uint64_t_eq(ccm->get_tx_allowance(cc), allowance - 1200)) in test_sanity()
544 if (!TEST_true(ccm->on_data_acked(cc, &ack_info))) in test_sanity()
548 if (!TEST_uint64_t_ge(allowance2 = ccm->get_tx_allowance(cc), allowance)) in test_sanity()
552 if (!TEST_true(ccm->on_data_sent(cc, 1200))) in test_sanity()
556 if (!TEST_uint64_t_eq(ccm->get_tx_allowance(cc), allowance - 1200)) in test_sanity()
559 if (!TEST_true(ccm->on_data_invalidated(cc, 1200))) in test_sanity()
563 if (!TEST_uint64_t_eq(ccm->get_tx_allowance(cc), allowance2)) in test_sanity()
567 if (!TEST_uint64_t_ge(allowance = ccm->get_tx_allowance(cc), 1200 + 1300)) in test_sanity()
570 if (!TEST_true(ccm->on_data_sent(cc, 1200))) in test_sanity()
573 if (!TEST_true(ccm->on_data_sent(cc, 1300))) in test_sanity()
576 if (!TEST_uint64_t_eq(allowance2 = ccm->get_tx_allowance(cc), in test_sanity()
584 if (!TEST_true(ccm->on_data_lost(cc, &loss_info))) in test_sanity()
588 if (!TEST_true(ccm->on_data_lost(cc, &loss_info))) in test_sanity()
591 if (!TEST_true(ccm->on_data_lost_finished(cc, 0))) in test_sanity()
595 if (!TEST_uint64_t_ne(ccm->get_tx_allowance(cc), allowance2)) in test_sanity()
599 if (!TEST_uint64_t_lt(ccm->get_tx_allowance(cc), allowance)) in test_sanity()
605 if (cc != NULL) in test_sanity()
606 ccm->free(cc); in test_sanity()