Lines Matching defs:inflater

38   nghttp2_hd_inflater inflater;
60 CU_ASSERT(0 == nghttp2_hd_inflate_init(&inflater, mem));
67 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
81 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
96 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
110 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
124 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
134 nghttp2_hd_inflate_free(&inflater);
140 nghttp2_hd_inflater inflater;
155 CU_ASSERT(0 == nghttp2_hd_inflate_init(&inflater, mem));
163 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
177 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
187 nghttp2_hd_inflate_free(&inflater);
192 nghttp2_hd_inflater inflater;
203 nghttp2_hd_inflate_init(&inflater, mem);
210 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
226 inflate_hd(&inflater, &out, &bufs, 0, mem));
229 nghttp2_hd_inflate_free(&inflater);
233 nghttp2_hd_inflater inflater;
248 nghttp2_hd_inflate_init(&inflater, mem);
257 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
261 CU_ASSERT(0 == inflater.ctx.hd_table.len);
262 CU_ASSERT(61 == nghttp2_hd_inflate_get_num_table_entries(&inflater));
269 nghttp2_hd_inflate_free(&inflater);
273 nghttp2_hd_inflater inflater;
284 nghttp2_hd_inflate_init(&inflater, mem);
292 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
296 CU_ASSERT(1 == inflater.ctx.hd_table.len);
297 CU_ASSERT(62 == nghttp2_hd_inflate_get_num_table_entries(&inflater));
301 &inflater, NGHTTP2_STATIC_TABLE_LENGTH + inflater.ctx.hd_table.len),
306 nghttp2_hd_inflate_free(&inflater);
310 nghttp2_hd_inflater inflater;
322 nghttp2_hd_inflate_init(&inflater, mem);
344 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
354 CU_ASSERT(3 == inflater.ctx.hd_table.len);
355 CU_ASSERT(64 == nghttp2_hd_inflate_get_num_table_entries(&inflater));
358 nghttp2_hd_inflate_free(&inflater);
362 nghttp2_hd_inflater inflater;
381 nghttp2_hd_inflate_init(&inflater, mem);
389 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
393 CU_ASSERT(0 == inflater.ctx.hd_table.len);
400 nghttp2_hd_inflate_free(&inflater);
404 nghttp2_hd_inflater inflater;
415 nghttp2_hd_inflate_init(&inflater, mem);
423 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
427 CU_ASSERT(1 == inflater.ctx.hd_table.len);
431 &inflater, NGHTTP2_STATIC_TABLE_LENGTH + inflater.ctx.hd_table.len),
436 nghttp2_hd_inflate_free(&inflater);
440 nghttp2_hd_inflater inflater;
462 nghttp2_hd_inflate_init(&inflater, mem);
470 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
474 CU_ASSERT(0 == inflater.ctx.hd_table.len);
479 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
483 CU_ASSERT(0 == inflater.ctx.hd_table.len);
498 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
502 CU_ASSERT(1 == inflater.ctx.hd_table.len);
508 nghttp2_hd_inflate_free(&inflater);
512 nghttp2_hd_inflater inflater;
532 nghttp2_hd_inflate_init(&inflater, mem);
533 CU_ASSERT(4 == inflate_hd(&inflater, &out, &bufs, 0, mem));
543 nghttp2_hd_inflate_free(&inflater);
547 nghttp2_hd_inflater inflater;
559 nghttp2_hd_inflate_init(&inflater, mem);
560 /* This will make inflater require table size update in the next
562 nghttp2_hd_inflate_change_table_size(&inflater, 4095);
563 nghttp2_hd_inflate_change_table_size(&inflater, 4096);
565 inflate_hd(&inflater, &out, &bufs, 0, mem));
568 nghttp2_hd_inflate_free(&inflater);
572 nghttp2_hd_inflate_init(&inflater, mem);
573 nghttp2_hd_inflate_change_table_size(&inflater, 4096);
575 inflate_hd(&inflater, &out, &bufs, 0, mem));
578 nghttp2_hd_inflate_free(&inflater);
582 nghttp2_hd_inflate_init(&inflater, mem);
583 nghttp2_hd_inflate_change_table_size(&inflater, 4097);
585 inflate_hd(&inflater, &out, &bufs, 0, mem));
588 nghttp2_hd_inflate_free(&inflater);
591 nghttp2_hd_inflate_init(&inflater, mem);
592 nghttp2_hd_inflate_change_table_size(&inflater, 111);
593 nghttp2_hd_inflate_change_table_size(&inflater, 4096);
599 inflate_hd(&inflater, &out, &bufs, 0, mem));
602 nghttp2_hd_inflate_free(&inflater);
605 nghttp2_hd_inflate_init(&inflater, mem);
606 nghttp2_hd_inflate_change_table_size(&inflater, 111);
607 nghttp2_hd_inflate_change_table_size(&inflater, 4096);
614 inflate_hd(&inflater, &out, &bufs, 0, mem));
617 nghttp2_hd_inflate_free(&inflater);
620 nghttp2_hd_inflate_init(&inflater, mem);
621 nghttp2_hd_inflate_change_table_size(&inflater, 111);
622 nghttp2_hd_inflate_change_table_size(&inflater, 4095);
629 inflate_hd(&inflater, &out, &bufs, 0, mem));
632 nghttp2_hd_inflate_free(&inflater);
638 nghttp2_hd_inflater inflater;
651 nghttp2_hd_inflate_init(&inflater, mem);
653 inflate_hd(&inflater, &out, &bufs, 0, mem));
657 nghttp2_hd_inflate_free(&inflater);
662 nghttp2_hd_inflater inflater;
683 nghttp2_hd_inflate_init(&inflater, mem);
685 nghttp2_hd_inflate_change_table_size(&inflater, 8000);
696 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
706 nghttp2_hd_inflate_free(&inflater);
714 nghttp2_hd_inflater inflater;
729 nghttp2_hd_inflate_init(&inflater, mem);
731 /* inflater changes notifies 8000 max header table size */
732 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, 8000));
737 CU_ASSERT(4096 == inflater.ctx.hd_table_bufsize_max);
738 CU_ASSERT(8000 == inflater.settings_hd_table_bufsize_max);
750 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
751 CU_ASSERT(2 == inflater.ctx.hd_table.len);
752 CU_ASSERT(63 == nghttp2_hd_inflate_get_num_table_entries(&inflater));
753 CU_ASSERT(4096 == inflater.ctx.hd_table_bufsize_max);
754 CU_ASSERT(8000 == inflater.settings_hd_table_bufsize_max);
759 /* inflater changes header table size to 1024 */
760 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, 1024));
765 CU_ASSERT(1024 == inflater.ctx.hd_table_bufsize_max);
766 CU_ASSERT(1024 == inflater.settings_hd_table_bufsize_max);
777 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
778 CU_ASSERT(2 == inflater.ctx.hd_table.len);
779 CU_ASSERT(63 == nghttp2_hd_inflate_get_num_table_entries(&inflater));
780 CU_ASSERT(1024 == inflater.ctx.hd_table_bufsize_max);
781 CU_ASSERT(1024 == inflater.settings_hd_table_bufsize_max);
786 /* inflater changes header table size to 0 */
787 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, 0));
794 CU_ASSERT(0 == inflater.ctx.hd_table.len);
795 CU_ASSERT(61 == nghttp2_hd_inflate_get_num_table_entries(&inflater));
796 CU_ASSERT(0 == inflater.ctx.hd_table_bufsize_max);
797 CU_ASSERT(0 == inflater.settings_hd_table_bufsize_max);
808 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
809 CU_ASSERT(0 == inflater.ctx.hd_table.len);
810 CU_ASSERT(61 == nghttp2_hd_inflate_get_num_table_entries(&inflater));
811 CU_ASSERT(0 == inflater.ctx.hd_table_bufsize_max);
812 CU_ASSERT(0 == inflater.settings_hd_table_bufsize_max);
818 nghttp2_hd_inflate_free(&inflater);
825 nghttp2_hd_inflate_init(&inflater, mem);
827 /* First inflater changes header table size to 8000 */
828 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, 8000));
833 CU_ASSERT(4096 == inflater.ctx.hd_table_bufsize_max);
834 CU_ASSERT(4096 == nghttp2_hd_inflate_get_max_dynamic_table_size(&inflater));
835 CU_ASSERT(8000 == inflater.settings_hd_table_bufsize_max);
845 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
846 CU_ASSERT(2 == inflater.ctx.hd_table.len);
847 CU_ASSERT(8000 == inflater.ctx.hd_table_bufsize_max);
848 CU_ASSERT(8000 == inflater.settings_hd_table_bufsize_max);
853 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, 16383));
859 CU_ASSERT(8000 == inflater.ctx.hd_table_bufsize_max);
860 CU_ASSERT(8000 == nghttp2_hd_inflate_get_max_dynamic_table_size(&inflater));
861 CU_ASSERT(16383 == inflater.settings_hd_table_bufsize_max);
871 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
872 CU_ASSERT(2 == inflater.ctx.hd_table.len);
873 CU_ASSERT(8192 == inflater.ctx.hd_table_bufsize_max);
874 CU_ASSERT(16383 == inflater.settings_hd_table_bufsize_max);
884 inflate_hd(&inflater, &out, &bufs, 0, mem));
889 nghttp2_hd_inflate_free(&inflater);
895 nghttp2_hd_inflate_init(&inflater, mem);
908 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
909 CU_ASSERT(2 == inflater.ctx.hd_table.len);
910 CU_ASSERT(1024 == inflater.ctx.hd_table_bufsize_max);
911 CU_ASSERT(4096 == inflater.settings_hd_table_bufsize_max);
916 nghttp2_hd_inflate_free(&inflater);
921 nghttp2_hd_inflate_init(&inflater, mem);
923 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, UINT32_MAX));
932 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
933 CU_ASSERT(UINT32_MAX == inflater.ctx.hd_table_bufsize_max);
934 CU_ASSERT(UINT32_MAX == inflater.settings_hd_table_bufsize_max);
939 nghttp2_hd_inflate_free(&inflater);
944 nghttp2_hd_inflate_init(&inflater, mem);
946 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, 0));
947 CU_ASSERT(0 == nghttp2_hd_inflate_change_table_size(&inflater, 3000));
962 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
963 CU_ASSERT(3000 == inflater.ctx.hd_table_bufsize_max);
964 CU_ASSERT(3000 == inflater.settings_hd_table_bufsize_max);
969 nghttp2_hd_inflate_free(&inflater);
976 nghttp2_hd_inflater *inflater,
993 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
1004 nghttp2_hd_inflater inflater;
1143 nghttp2_hd_inflate_init(&inflater, mem);
1145 check_deflate_inflate(&deflater, &inflater, nv1, ARRLEN(nv1), mem);
1146 check_deflate_inflate(&deflater, &inflater, nv2, ARRLEN(nv2), mem);
1147 check_deflate_inflate(&deflater, &inflater, nv3, ARRLEN(nv3), mem);
1148 check_deflate_inflate(&deflater, &inflater, nv4, ARRLEN(nv4), mem);
1149 check_deflate_inflate(&deflater, &inflater, nv5, ARRLEN(nv5), mem);
1150 check_deflate_inflate(&deflater, &inflater, nv6, ARRLEN(nv6), mem);
1151 check_deflate_inflate(&deflater, &inflater, nv7, ARRLEN(nv7), mem);
1152 check_deflate_inflate(&deflater, &inflater, nv8, ARRLEN(nv8), mem);
1153 check_deflate_inflate(&deflater, &inflater, nv9, ARRLEN(nv9), mem);
1154 check_deflate_inflate(&deflater, &inflater, nv10, ARRLEN(nv10), mem);
1156 nghttp2_hd_inflate_free(&inflater);
1162 nghttp2_hd_inflater inflater;
1187 nghttp2_hd_inflate_init(&inflater, mem);
1194 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem));
1207 nghttp2_hd_inflate_free(&inflater);
1243 nghttp2_hd_inflater *inflater;
1254 CU_ASSERT(0 == nghttp2_hd_inflate_new(&inflater));
1265 CU_ASSERT(blocklen == inflate_hd(inflater, NULL, &bufs, 0, mem));
1269 nghttp2_hd_inflate_del(inflater);
1285 nghttp2_hd_inflater *inflater;
1308 nghttp2_hd_inflate_new(&inflater);
1324 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
1331 nghttp2_hd_inflate_del(inflater);
1337 nghttp2_hd_inflate_new(&inflater);
1343 nghttp2_hd_inflate_del(inflater);
1353 nghttp2_hd_inflate_new(&inflater);
1359 nghttp2_hd_inflate_del(inflater);
1364 nghttp2_hd_inflate_new(&inflater);
1380 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
1386 nghttp2_hd_inflate_del(inflater);
1392 nghttp2_hd_inflate_new(&inflater);
1410 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem));
1416 nghttp2_hd_inflate_del(inflater);