diff options
author | 2016-03-31 10:37:37 -0700 | |
---|---|---|
committer | 2016-03-31 10:37:37 -0700 | |
commit | f8a519e629ca4e540ddfe65c94ff1034d3eb7482 (patch) | |
tree | b68afc00c28b9423bfd930774be021eb03b97e8c /test/core/transport/chttp2/hpack_encoder_test.c | |
parent | 3a29ec11d1eb123488cf3314e0a48bdaf1001a64 (diff) | |
parent | a353e9d7cd8ba1a73bcc13238e48a2eef7f07abd (diff) |
Merge branch 'cleaner-posix2' into cleaner-posix3
Diffstat (limited to 'test/core/transport/chttp2/hpack_encoder_test.c')
-rw-r--r-- | test/core/transport/chttp2/hpack_encoder_test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/core/transport/chttp2/hpack_encoder_test.c b/test/core/transport/chttp2/hpack_encoder_test.c index 818ce09a7c..464f0d93b0 100644 --- a/test/core/transport/chttp2/hpack_encoder_test.c +++ b/test/core/transport/chttp2/hpack_encoder_test.c @@ -34,10 +34,12 @@ #include "src/core/ext/transport/chttp2/transport/hpack_encoder.h" #include <stdio.h> +#include <string.h> #include <grpc/support/alloc.h> #include <grpc/support/log.h> #include <grpc/support/string_util.h> + #include "src/core/ext/transport/chttp2/transport/hpack_parser.h" #include "src/core/lib/support/string.h" #include "src/core/lib/transport/metadata.h" @@ -93,7 +95,10 @@ static void verify(size_t window_available, int eof, size_t expect_window_used, gpr_slice_buffer_init(&output); - grpc_chttp2_encode_header(&g_compressor, 0xdeadbeef, &b, eof, &output); + grpc_transport_one_way_stats stats; + memset(&stats, 0, sizeof(stats)); + grpc_chttp2_encode_header(&g_compressor, 0xdeadbeef, &b, eof, &stats, + &output); merged = grpc_slice_merge(output.slices, output.count); gpr_slice_buffer_destroy(&output); grpc_metadata_batch_destroy(&b); |