summaryrefslogtreecommitdiffstats
path: root/tests/nghttp2_test_helper.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:52:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:52:01 +0000
commit42f47327da6a208ac3cd1f9bca07fc506ed51a63 (patch)
treee06c5e993e0d0b618f616280b372506b1f0f8419 /tests/nghttp2_test_helper.h
parentAdding debian version 1.59.0-1. (diff)
downloadnghttp2-42f47327da6a208ac3cd1f9bca07fc506ed51a63.tar.xz
nghttp2-42f47327da6a208ac3cd1f9bca07fc506ed51a63.zip
Merging upstream version 1.60.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/nghttp2_test_helper.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/tests/nghttp2_test_helper.h b/tests/nghttp2_test_helper.h
index c66298a..c0ed0b3 100644
--- a/tests/nghttp2_test_helper.h
+++ b/tests/nghttp2_test_helper.h
@@ -40,24 +40,6 @@
}
#define ARRLEN(ARR) (sizeof(ARR) / sizeof(ARR[0]))
-#define assert_nv_equal(A, B, len, mem) \
- do { \
- size_t alloclen = sizeof(nghttp2_nv) * len; \
- const nghttp2_nv *sa = A, *sb = B; \
- nghttp2_nv *a = mem->malloc(alloclen, NULL); \
- nghttp2_nv *b = mem->malloc(alloclen, NULL); \
- ssize_t i_; \
- memcpy(a, sa, alloclen); \
- memcpy(b, sb, alloclen); \
- nghttp2_nv_array_sort(a, len); \
- nghttp2_nv_array_sort(b, len); \
- for (i_ = 0; i_ < (ssize_t)len; ++i_) { \
- CU_ASSERT(nghttp2_nv_equal(&a[i_], &b[i_])); \
- } \
- mem->free(b, NULL); \
- mem->free(a, NULL); \
- } while (0);
-
int unpack_framebuf(nghttp2_frame *frame, nghttp2_bufs *bufs);
int unpack_frame(nghttp2_frame *frame, const uint8_t *in, size_t len);
@@ -78,8 +60,8 @@ void nva_out_reset(nva_out *out, nghttp2_mem *mem);
void add_out(nva_out *out, nghttp2_nv *nv, nghttp2_mem *mem);
-ssize_t inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
- nghttp2_bufs *bufs, size_t offset, nghttp2_mem *mem);
+nghttp2_ssize inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
+ nghttp2_bufs *bufs, size_t offset, nghttp2_mem *mem);
int pack_headers(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater,
int32_t stream_id, uint8_t flags, const nghttp2_nv *nva,