Lines Matching refs:buf
57 static BUF_MEM *buf; variable
72 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_init()
85 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_init()
89 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_init()
93 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_init()
97 if (!TEST_true(WPACKET_init_len(&pkt, buf, 4)) in test_WPACKET_init()
101 || !TEST_mem_eq(buf->data, written, simple3, sizeof(simple3))) in test_WPACKET_init()
104 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1))) in test_WPACKET_init()
146 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_set_max_size()
159 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_set_max_size()
182 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_set_max_size()
194 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_start_sub_packet()
205 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_start_sub_packet()
209 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_start_sub_packet()
215 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_start_sub_packet()
219 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_start_sub_packet()
232 || !TEST_mem_eq(buf->data, written, nestedsub, sizeof(nestedsub))) in test_WPACKET_start_sub_packet()
236 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_start_sub_packet()
245 || !TEST_mem_eq(buf->data, written, seqsub, sizeof(seqsub))) in test_WPACKET_start_sub_packet()
249 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_start_sub_packet()
262 || !TEST_mem_eq(buf->data, written, nestedsub, sizeof(nestedsub)) in test_WPACKET_start_sub_packet()
276 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_set_flags()
283 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_set_flags()
287 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_set_flags()
296 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_set_flags()
300 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_set_flags()
308 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_set_flags()
314 || !TEST_mem_eq(buf->data, written, empty, sizeof(empty))) in test_WPACKET_set_flags()
318 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_set_flags()
325 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_set_flags()
336 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_allocate_bytes()
343 || !TEST_mem_eq(buf->data, written, alloc, sizeof(alloc))) in test_WPACKET_allocate_bytes()
347 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_allocate_bytes()
354 || !TEST_mem_eq(buf->data, written, submem, sizeof(submem))) in test_WPACKET_allocate_bytes()
366 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_memcpy()
370 || !TEST_mem_eq(buf->data, written, alloc, sizeof(alloc))) in test_WPACKET_memcpy()
374 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_memcpy()
378 || !TEST_mem_eq(buf->data, written, submem, sizeof(submem))) in test_WPACKET_memcpy()
464 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
475 || !TEST_mem_eq(buf->data, written, quic1, sizeof(quic1))) in test_WPACKET_quic()
479 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
487 || !TEST_mem_eq(buf->data, written, quic2, sizeof(quic2))) in test_WPACKET_quic()
491 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
499 || !TEST_mem_eq(buf->data, written, quic3, sizeof(quic3))) in test_WPACKET_quic()
503 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
511 || !TEST_mem_eq(buf->data, written, quic4, sizeof(quic4))) in test_WPACKET_quic()
515 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
523 || !TEST_mem_eq(buf->data, written, quic5, sizeof(quic5))) in test_WPACKET_quic()
527 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
537 || !TEST_mem_eq(buf->data, written, quic6, sizeof(quic6))) in test_WPACKET_quic()
541 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
568 || !TEST_mem_eq(buf->data, written, quic7, sizeof(quic7))) in test_WPACKET_quic()
572 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic()
613 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_quic_vlint_random()
618 if (!TEST_true(PACKET_buf_init(&read_pkt, (unsigned char *)buf->data, written)) in test_WPACKET_quic_vlint_random()
634 if (!TEST_ptr(buf = BUF_MEM_new())) in setup_tests()
653 BUF_MEM_free(buf); in cleanup_tests()