Lines Matching refs:blocklen
50 ssize_t blocklen; in test_nghttp2_hd_deflate() local
63 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate()
66 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate()
67 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate()
77 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate()
80 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate()
81 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate()
92 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate()
95 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate()
96 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate()
106 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate()
109 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate()
110 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate()
120 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate()
123 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate()
124 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate()
145 ssize_t blocklen; in test_nghttp2_hd_deflate_same_indexed_repr() local
159 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate_same_indexed_repr()
162 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate_same_indexed_repr()
163 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate_same_indexed_repr()
173 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate_same_indexed_repr()
176 CU_ASSERT(blocklen == 3); in test_nghttp2_hd_deflate_same_indexed_repr()
177 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate_same_indexed_repr()
194 ssize_t blocklen; in test_nghttp2_hd_inflate_indexed() local
207 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_indexed()
209 CU_ASSERT(1 == blocklen); in test_nghttp2_hd_inflate_indexed()
210 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_indexed()
222 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_indexed()
224 CU_ASSERT(1 == blocklen); in test_nghttp2_hd_inflate_indexed()
235 ssize_t blocklen; in test_nghttp2_hd_inflate_indname_noinc() local
254 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_indname_noinc()
256 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_inflate_indname_noinc()
257 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_indname_noinc()
275 ssize_t blocklen; in test_nghttp2_hd_inflate_indname_inc() local
289 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_indname_inc()
291 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_inflate_indname_inc()
292 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_indname_inc()
312 ssize_t blocklen; in test_nghttp2_hd_inflate_indname_inc_eviction() local
340 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_indname_inc_eviction()
342 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_inflate_indname_inc_eviction()
344 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_indname_inc_eviction()
364 ssize_t blocklen; in test_nghttp2_hd_inflate_newname_noinc() local
386 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_newname_noinc()
388 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_inflate_newname_noinc()
389 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_newname_noinc()
406 ssize_t blocklen; in test_nghttp2_hd_inflate_newname_inc() local
420 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_newname_inc()
422 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_inflate_newname_inc()
423 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_newname_inc()
442 ssize_t blocklen; in test_nghttp2_hd_inflate_clearall_inc() local
467 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_clearall_inc()
469 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_inflate_clearall_inc()
470 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_clearall_inc()
479 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_clearall_inc()
495 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_inflate_clearall_inc()
497 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_inflate_clearall_inc()
498 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_inflate_clearall_inc()
668 ssize_t blocklen; in test_nghttp2_hd_ringbuf_reserve() local
691 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_ringbuf_reserve()
694 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_ringbuf_reserve()
696 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_ringbuf_reserve()
720 ssize_t blocklen; in test_nghttp2_hd_change_table_size() local
742 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
745 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_change_table_size()
750 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
769 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
772 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_change_table_size()
777 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
800 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
803 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_change_table_size()
808 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
838 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
841 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_change_table_size()
845 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
864 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
867 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_change_table_size()
871 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
901 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
904 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_change_table_size()
908 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
927 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
932 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
955 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_change_table_size()
958 CU_ASSERT(3 < blocklen); in test_nghttp2_hd_change_table_size()
962 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_change_table_size()
980 ssize_t blocklen; in check_deflate_inflate() local
988 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in check_deflate_inflate()
991 CU_ASSERT(blocklen >= 0); in check_deflate_inflate()
993 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem)); in check_deflate_inflate()
1164 ssize_t blocklen; in test_nghttp2_hd_no_index() local
1190 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_no_index()
1193 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_no_index()
1194 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_no_index()
1247 ssize_t blocklen; in test_nghttp2_hd_public_api() local
1258 blocklen = nghttp2_hd_deflate_hd(deflater, buf, buflen, nva, ARRLEN(nva)); in test_nghttp2_hd_public_api()
1260 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_public_api()
1262 nghttp2_bufs_wrap_init(&bufs, buf, (size_t)blocklen, mem); in test_nghttp2_hd_public_api()
1263 bufs.head->buf.last += blocklen; in test_nghttp2_hd_public_api()
1265 CU_ASSERT(blocklen == inflate_hd(inflater, NULL, &bufs, 0, mem)); in test_nghttp2_hd_public_api()
1275 blocklen = nghttp2_hd_deflate_hd(deflater, buf, (size_t)(blocklen - 1), nva, in test_nghttp2_hd_public_api()
1278 CU_ASSERT(NGHTTP2_ERR_INSUFF_BUFSIZE == blocklen); in test_nghttp2_hd_public_api()
1295 ssize_t blocklen; in test_nghttp2_hd_deflate_hd_vec() local
1317 blocklen = nghttp2_hd_deflate_hd_vec(deflater, vec, 2, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1319 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate_hd_vec()
1321 nghttp2_bufs_wrap_init(&bufs, buf, (size_t)blocklen, mem); in test_nghttp2_hd_deflate_hd_vec()
1322 bufs.head->buf.last += blocklen; in test_nghttp2_hd_deflate_hd_vec()
1324 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate_hd_vec()
1339 blocklen = nghttp2_hd_deflate_hd_vec(deflater, NULL, 0, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1341 CU_ASSERT(NGHTTP2_ERR_INSUFF_BUFSIZE == blocklen); in test_nghttp2_hd_deflate_hd_vec()
1355 blocklen = nghttp2_hd_deflate_hd_vec(deflater, vec, 2, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1357 CU_ASSERT(NGHTTP2_ERR_INSUFF_BUFSIZE == blocklen); in test_nghttp2_hd_deflate_hd_vec()
1373 blocklen = nghttp2_hd_deflate_hd_vec(deflater, vec, 2, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1375 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate_hd_vec()
1377 nghttp2_bufs_wrap_init(&bufs, buf, (size_t)blocklen, mem); in test_nghttp2_hd_deflate_hd_vec()
1378 bufs.head->buf.last += blocklen; in test_nghttp2_hd_deflate_hd_vec()
1380 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate_hd_vec()
1403 blocklen = nghttp2_hd_deflate_hd_vec(deflater, vec, buflen, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1405 CU_ASSERT(blocklen > 0); in test_nghttp2_hd_deflate_hd_vec()
1407 nghttp2_bufs_wrap_init(&bufs, buf, (size_t)blocklen, mem); in test_nghttp2_hd_deflate_hd_vec()
1408 bufs.head->buf.last += blocklen; in test_nghttp2_hd_deflate_hd_vec()
1410 CU_ASSERT(blocklen == inflate_hd(inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate_hd_vec()