Lines Matching defs:out

51   nva_out out;
58 nva_out_init(&out);
67 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
69 CU_ASSERT(3 == out.nvlen);
70 assert_nv_equal(nva1, out.nva, 3, mem);
72 nva_out_reset(&out, mem);
81 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
83 CU_ASSERT(2 == out.nvlen);
84 assert_nv_equal(nva2, out.nva, 2, mem);
86 nva_out_reset(&out, mem);
96 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
98 CU_ASSERT(3 == out.nvlen);
99 assert_nv_equal(nva3, out.nva, 3, mem);
101 nva_out_reset(&out, mem);
110 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
112 CU_ASSERT(3 == out.nvlen);
113 assert_nv_equal(nva4, out.nva, 3, mem);
115 nva_out_reset(&out, mem);
124 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
126 CU_ASSERT(2 == out.nvlen);
127 assert_nv_equal(nva5, out.nva, 2, mem);
129 nva_out_reset(&out, mem);
146 nva_out out;
153 nva_out_init(&out);
163 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
165 CU_ASSERT(2 == out.nvlen);
166 assert_nv_equal(nva1, out.nva, 2, mem);
168 nva_out_reset(&out, mem);
177 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
179 CU_ASSERT(3 == out.nvlen);
180 assert_nv_equal(nva2, out.nva, 3, mem);
182 nva_out_reset(&out, mem);
196 nva_out out;
202 nva_out_init(&out);
210 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
212 CU_ASSERT(1 == out.nvlen);
214 assert_nv_equal(&nv, out.nva, 1, mem);
216 nva_out_reset(&out, mem);
226 inflate_hd(&inflater, &out, &bufs, 0, mem));
241 nva_out out;
247 nva_out_init(&out);
257 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
259 CU_ASSERT(1 == out.nvlen);
260 assert_nv_equal(&nv[i], out.nva, 1, mem);
264 nva_out_reset(&out, mem);
277 nva_out out;
283 nva_out_init(&out);
292 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
294 CU_ASSERT(1 == out.nvlen);
295 assert_nv_equal(&nv, out.nva, 1, mem);
304 nva_out_reset(&out, mem);
314 nva_out out;
321 nva_out_init(&out);
344 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
346 CU_ASSERT(4 == out.nvlen);
347 CU_ASSERT(14 == out.nva[0].namelen);
348 CU_ASSERT(0 == memcmp("accept-charset", out.nva[0].name, out.nva[0].namelen));
349 CU_ASSERT(sizeof(value) - 1 == out.nva[0].valuelen);
351 nva_out_reset(&out, mem);
374 nva_out out;
380 nva_out_init(&out);
389 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
391 CU_ASSERT(1 == out.nvlen);
392 assert_nv_equal(&nv[i], out.nva, 1, mem);
395 nva_out_reset(&out, mem);
408 nva_out out;
414 nva_out_init(&out);
423 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
425 CU_ASSERT(1 == out.nvlen);
426 assert_nv_equal(&nv, out.nva, 1, mem);
434 nva_out_reset(&out, mem);
445 nva_out out;
451 nva_out_init(&out);
470 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
472 CU_ASSERT(1 == out.nvlen);
473 assert_nv_equal(&nv, out.nva, 1, mem);
476 nva_out_reset(&out, mem);
479 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
481 CU_ASSERT(1 == out.nvlen);
482 assert_nv_equal(&nv, out.nva, 1, mem);
485 nva_out_reset(&out, mem);
498 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
500 CU_ASSERT(1 == out.nvlen);
501 assert_nv_equal(&nv, out.nva, 1, mem);
504 nva_out_reset(&out, mem);
516 nva_out out;
522 nva_out_init(&out);
533 CU_ASSERT(4 == inflate_hd(&inflater, &out, &bufs, 0, mem));
535 CU_ASSERT(1 == out.nvlen);
536 CU_ASSERT(1 == out.nva[0].namelen);
537 CU_ASSERT('x' == out.nva[0].name[0]);
538 CU_ASSERT(NULL == out.nva[0].value);
539 CU_ASSERT(0 == out.nva[0].valuelen);
541 nva_out_reset(&out, mem);
552 nva_out out;
556 nva_out_init(&out);
565 inflate_hd(&inflater, &out, &bufs, 0, mem));
567 nva_out_reset(&out, mem);
575 inflate_hd(&inflater, &out, &bufs, 0, mem));
577 nva_out_reset(&out, mem);
585 inflate_hd(&inflater, &out, &bufs, 0, mem));
587 nva_out_reset(&out, mem);
599 inflate_hd(&inflater, &out, &bufs, 0, mem));
601 nva_out_reset(&out, mem);
614 inflate_hd(&inflater, &out, &bufs, 0, mem));
616 nva_out_reset(&out, mem);
629 inflate_hd(&inflater, &out, &bufs, 0, mem));
631 nva_out_reset(&out, mem);
644 nva_out out;
648 nva_out_init(&out);
653 inflate_hd(&inflater, &out, &bufs, 0, mem));
655 nva_out_reset(&out, mem);
665 nva_out out;
673 nva_out_init(&out);
696 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
698 CU_ASSERT(1 == out.nvlen);
699 assert_nv_equal(&nv, out.nva, 1, mem);
701 nva_out_reset(&out, mem);
719 nva_out out;
726 nva_out_init(&out);
750 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
756 nva_out_reset(&out, mem);
777 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
783 nva_out_reset(&out, mem);
808 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
814 nva_out_reset(&out, mem);
845 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
850 nva_out_reset(&out, mem);
871 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
876 nva_out_reset(&out, mem);
884 inflate_hd(&inflater, &out, &bufs, 0, mem));
886 nva_out_reset(&out, mem);
908 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
913 nva_out_reset(&out, mem);
932 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
936 nva_out_reset(&out, mem);
962 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
966 nva_out_reset(&out, mem);
981 nva_out out;
986 nva_out_init(&out);
993 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
995 CU_ASSERT(nvlen == out.nvlen);
996 assert_nv_equal(nva, out.nva, nvlen, mem);
998 nva_out_reset(&out, mem);
1171 nva_out out;
1184 nva_out_init(&out);
1194 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
1196 CU_ASSERT(ARRLEN(nva) == out.nvlen);
1197 assert_nv_equal(nva, out.nva, ARRLEN(nva), mem);
1199 CU_ASSERT(out.nva[0].flags == NGHTTP2_NV_FLAG_NONE);
1201 CU_ASSERT(out.nva[i].flags == NGHTTP2_NV_FLAG_NO_INDEX);
1204 nva_out_reset(&out, mem);
1300 nva_out out;
1305 nva_out_init(&out);
1324 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
1326 CU_ASSERT(ARRLEN(nva) == out.nvlen);
1327 assert_nv_equal(nva, out.nva, ARRLEN(nva), mem);
1333 nva_out_reset(&out, mem);
1380 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
1381 CU_ASSERT(ARRLEN(nva) == out.nvlen);
1382 assert_nv_equal(nva, out.nva, ARRLEN(nva), mem);
1388 nva_out_reset(&out, mem);
1410 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
1411 CU_ASSERT(ARRLEN(nva) == out.nvlen);
1412 assert_nv_equal(nva, out.nva, ARRLEN(nva), mem);
1418 nva_out_reset(&out, mem);
1450 uint32_t out;
1462 rv = nghttp2_hd_decode_length(&out, &shift, &fin, 0, 0, buf, buf + len, 7);
1466 CU_ASSERT(UINT32_MAX == out);
1470 out = 0;
1476 rv = nghttp2_hd_decode_length(&out, &shift, &fin, out, shift, bufp,
1488 CU_ASSERT(UINT32_MAX == out);
1494 rv = nghttp2_hd_decode_length(&out, &shift, &fin, 0, 0, buf, buf + len, 7);
1507 rv = nghttp2_hd_decode_length(&out, &shift, &fin, 0, 0, buf, buf + 7, 8);