Lines Matching refs:cases
478 static const struct quic_test_case cases[] = { in test_PACKET_get_quic_vlint() local
505 for (i = 0; i < OSSL_NELEM(cases); ++i) { in test_PACKET_get_quic_vlint()
509 if (!TEST_true(PACKET_buf_init(&pkt, cases[i].buf, sizeof(cases[i].buf))) in test_PACKET_get_quic_vlint()
511 || !TEST_uint64_t_eq(v, cases[i].value) in test_PACKET_get_quic_vlint()
513 sizeof(cases[i].buf) - cases[i].expected_read_count) in test_PACKET_get_quic_vlint()
529 static const struct quic_test_case cases[] = { in test_PACKET_get_quic_length_prefixed() local
546 for (i = 0; i < OSSL_NELEM(cases); ++i) { in test_PACKET_get_quic_length_prefixed()
549 if (!TEST_true(PACKET_buf_init(&pkt, cases[i].buf, in test_PACKET_get_quic_length_prefixed()
550 cases[i].fail in test_PACKET_get_quic_length_prefixed()
551 ? sizeof(cases[i].buf) in test_PACKET_get_quic_length_prefixed()
552 : cases[i].enclen + cases[i].len))) in test_PACKET_get_quic_length_prefixed()
555 if (!TEST_int_eq(PACKET_get_quic_length_prefixed(&pkt, &subpkt), !cases[i].fail)) in test_PACKET_get_quic_length_prefixed()
558 if (cases[i].fail) { in test_PACKET_get_quic_length_prefixed()
559 if (!TEST_ptr_eq(pkt.curr, cases[i].buf)) in test_PACKET_get_quic_length_prefixed()
564 if (!TEST_ptr_eq(subpkt.curr, cases[i].buf + cases[i].enclen)) in test_PACKET_get_quic_length_prefixed()
567 if (!TEST_size_t_eq(subpkt.remaining, cases[i].len)) in test_PACKET_get_quic_length_prefixed()