Lines Matching refs:srtm

26     QUIC_SRTM *srtm;  in test_srtm()  local
30 if (!TEST_ptr(srtm = ossl_quic_srtm_new(NULL, NULL))) in test_srtm()
33 if (!TEST_true(ossl_quic_srtm_add(srtm, ptrs + 0, 0, &token_1)) in test_srtm()
34 || !TEST_false(ossl_quic_srtm_add(srtm, ptrs + 0, 0, &token_1)) in test_srtm()
35 || !TEST_false(ossl_quic_srtm_remove(srtm, ptrs + 0, 1)) in test_srtm()
36 || !TEST_false(ossl_quic_srtm_remove(srtm, ptrs + 3, 0)) in test_srtm()
37 || !TEST_true(ossl_quic_srtm_cull(srtm, ptrs + 3)) in test_srtm()
38 || !TEST_true(ossl_quic_srtm_cull(srtm, ptrs + 3)) in test_srtm()
39 || !TEST_true(ossl_quic_srtm_add(srtm, ptrs + 0, 1, &token_1)) in test_srtm()
40 || !TEST_true(ossl_quic_srtm_add(srtm, ptrs + 0, 2, &token_1)) in test_srtm()
41 || !TEST_true(ossl_quic_srtm_add(srtm, ptrs + 0, 3, &token_1)) in test_srtm()
42 || !TEST_true(ossl_quic_srtm_add(srtm, ptrs + 1, 0, &token_1)) in test_srtm()
43 || !TEST_true(ossl_quic_srtm_add(srtm, ptrs + 2, 0, &token_2)) in test_srtm()
44 || !TEST_true(ossl_quic_srtm_add(srtm, ptrs + 3, 3, &token_2)) in test_srtm()
45 || !TEST_true(ossl_quic_srtm_remove(srtm, ptrs + 3, 3)) in test_srtm()
46 || !TEST_true(ossl_quic_srtm_lookup(srtm, &token_1, 0, &opaque, &seq_num)) in test_srtm()
49 || !TEST_true(ossl_quic_srtm_lookup(srtm, &token_1, 1, &opaque, &seq_num)) in test_srtm()
52 || !TEST_true(ossl_quic_srtm_lookup(srtm, &token_1, 2, &opaque, &seq_num)) in test_srtm()
55 || !TEST_true(ossl_quic_srtm_lookup(srtm, &token_1, 3, &opaque, &seq_num)) in test_srtm()
58 || !TEST_true(ossl_quic_srtm_lookup(srtm, &token_1, 4, &opaque, &seq_num)) in test_srtm()
61 || !TEST_false(ossl_quic_srtm_lookup(srtm, &token_1, 5, &opaque, &seq_num)) in test_srtm()
62 || !TEST_true(ossl_quic_srtm_cull(srtm, ptrs + 0)) in test_srtm()
63 || !TEST_true(ossl_quic_srtm_lookup(srtm, &token_1, 0, &opaque, &seq_num)) in test_srtm()
66 || !TEST_true(ossl_quic_srtm_lookup(srtm, &token_2, 0, &opaque, &seq_num)) in test_srtm()
69 || !TEST_true(ossl_quic_srtm_remove(srtm, ptrs + 2, 0)) in test_srtm()
70 || !TEST_false(ossl_quic_srtm_lookup(srtm, &token_2, 0, &opaque, &seq_num)) in test_srtm()
76 ossl_quic_srtm_free(srtm); in test_srtm()