Lines Matching refs:nva
70 assert_nv_equal(nva1, out.nva, 3, mem); in test_nghttp2_hd_deflate()
84 assert_nv_equal(nva2, out.nva, 2, mem); in test_nghttp2_hd_deflate()
99 assert_nv_equal(nva3, out.nva, 3, mem); in test_nghttp2_hd_deflate()
113 assert_nv_equal(nva4, out.nva, 3, mem); in test_nghttp2_hd_deflate()
127 assert_nv_equal(nva5, out.nva, 2, mem); in test_nghttp2_hd_deflate()
166 assert_nv_equal(nva1, out.nva, 2, mem); in test_nghttp2_hd_deflate_same_indexed_repr()
180 assert_nv_equal(nva2, out.nva, 3, mem); in test_nghttp2_hd_deflate_same_indexed_repr()
214 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_inflate_indexed()
260 assert_nv_equal(&nv[i], out.nva, 1, mem); in test_nghttp2_hd_inflate_indname_noinc()
295 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_inflate_indname_inc()
347 CU_ASSERT(14 == out.nva[0].namelen); in test_nghttp2_hd_inflate_indname_inc_eviction()
348 CU_ASSERT(0 == memcmp("accept-charset", out.nva[0].name, out.nva[0].namelen)); in test_nghttp2_hd_inflate_indname_inc_eviction()
349 CU_ASSERT(sizeof(value) - 1 == out.nva[0].valuelen); in test_nghttp2_hd_inflate_indname_inc_eviction()
392 assert_nv_equal(&nv[i], out.nva, 1, mem); in test_nghttp2_hd_inflate_newname_noinc()
426 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_inflate_newname_inc()
473 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_inflate_clearall_inc()
482 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_inflate_clearall_inc()
501 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_inflate_clearall_inc()
536 CU_ASSERT(1 == out.nva[0].namelen); in test_nghttp2_hd_inflate_zero_length_huffman()
537 CU_ASSERT('x' == out.nva[0].name[0]); in test_nghttp2_hd_inflate_zero_length_huffman()
538 CU_ASSERT(NULL == out.nva[0].value); in test_nghttp2_hd_inflate_zero_length_huffman()
539 CU_ASSERT(0 == out.nva[0].valuelen); in test_nghttp2_hd_inflate_zero_length_huffman()
699 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_ringbuf_reserve()
715 nghttp2_nv nva[] = {MAKE_NV("alpha", "bravo"), MAKE_NV("charlie", "delta")}; in test_nghttp2_hd_change_table_size() local
741 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, 2); in test_nghttp2_hd_change_table_size()
768 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, 2); in test_nghttp2_hd_change_table_size()
799 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, 2); in test_nghttp2_hd_change_table_size()
837 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, 2); in test_nghttp2_hd_change_table_size()
863 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, 2); in test_nghttp2_hd_change_table_size()
900 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, 2); in test_nghttp2_hd_change_table_size()
926 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, 2); in test_nghttp2_hd_change_table_size()
977 nghttp2_nv *nva, size_t nvlen, in check_deflate_inflate() argument
987 rv = nghttp2_hd_deflate_hd_bufs(deflater, &bufs, nva, nvlen); in check_deflate_inflate()
996 assert_nv_equal(nva, out.nva, nvlen, mem); in check_deflate_inflate()
1165 nghttp2_nv nva[] = { in test_nghttp2_hd_no_index() local
1178 for (i = 1; i < ARRLEN(nva); ++i) { in test_nghttp2_hd_no_index()
1179 nva[i].flags = NGHTTP2_NV_FLAG_NO_INDEX; in test_nghttp2_hd_no_index()
1189 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, ARRLEN(nva)); in test_nghttp2_hd_no_index()
1196 CU_ASSERT(ARRLEN(nva) == out.nvlen); in test_nghttp2_hd_no_index()
1197 assert_nv_equal(nva, out.nva, ARRLEN(nva), mem); in test_nghttp2_hd_no_index()
1199 CU_ASSERT(out.nva[0].flags == NGHTTP2_NV_FLAG_NONE); in test_nghttp2_hd_no_index()
1200 for (i = 1; i < ARRLEN(nva); ++i) { in test_nghttp2_hd_no_index()
1201 CU_ASSERT(out.nva[i].flags == NGHTTP2_NV_FLAG_NO_INDEX); in test_nghttp2_hd_no_index()
1213 nghttp2_nv nva[] = {MAKE_NV(":method", "GET"), MAKE_NV("alpha", "bravo")}; in test_nghttp2_hd_deflate_bound() local
1223 bound = nghttp2_hd_deflate_bound(&deflater, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_bound()
1225 CU_ASSERT(12 + 6 * 2 * 2 + nva[0].namelen + nva[0].valuelen + nva[1].namelen + in test_nghttp2_hd_deflate_bound()
1226 nva[1].valuelen == in test_nghttp2_hd_deflate_bound()
1229 nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_bound()
1233 bound2 = nghttp2_hd_deflate_bound(&deflater, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_bound()
1244 nghttp2_nv nva[] = {MAKE_NV("alpha", "bravo"), MAKE_NV("charlie", "delta")}; in test_nghttp2_hd_public_api() local
1256 buflen = nghttp2_hd_deflate_bound(deflater, nva, ARRLEN(nva)); in test_nghttp2_hd_public_api()
1258 blocklen = nghttp2_hd_deflate_hd(deflater, buf, buflen, nva, ARRLEN(nva)); 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()
1276 ARRLEN(nva)); in test_nghttp2_hd_public_api()
1286 nghttp2_nv nva[] = { in test_nghttp2_hd_deflate_hd_vec() local
1310 buflen = nghttp2_hd_deflate_bound(deflater, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1317 blocklen = nghttp2_hd_deflate_hd_vec(deflater, vec, 2, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1326 CU_ASSERT(ARRLEN(nva) == out.nvlen); in test_nghttp2_hd_deflate_hd_vec()
1327 assert_nv_equal(nva, out.nva, ARRLEN(nva), 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()
1355 blocklen = nghttp2_hd_deflate_hd_vec(deflater, vec, 2, nva, ARRLEN(nva)); in test_nghttp2_hd_deflate_hd_vec()
1366 buflen = nghttp2_hd_deflate_bound(deflater, nva, ARRLEN(nva)); 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()
1381 CU_ASSERT(ARRLEN(nva) == out.nvlen); in test_nghttp2_hd_deflate_hd_vec()
1382 assert_nv_equal(nva, out.nva, ARRLEN(nva), mem); in test_nghttp2_hd_deflate_hd_vec()
1394 buflen = nghttp2_hd_deflate_bound(deflater, nva, ARRLEN(nva)); 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()
1411 CU_ASSERT(ARRLEN(nva) == out.nvlen); in test_nghttp2_hd_deflate_hd_vec()
1412 assert_nv_equal(nva, out.nva, ARRLEN(nva), mem); in test_nghttp2_hd_deflate_hd_vec()