aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/transport
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-03-30 16:58:32 -0700
committerGravatar yang-g <yangg@google.com>2016-03-30 16:58:32 -0700
commit98d53f67686ef87ff08b00b1fdd1e12343030391 (patch)
tree42a6677781a59104ad5ec9fa74685f6b03eb29a2 /test/core/transport
parent1a6293f0969bb940b7db0ec5f763cf75c2d28f56 (diff)
parent90da73714eac582686736c48d113bdfc75b15169 (diff)
Merge remote-tracking branch 'upstream/master' into hpack_table
Diffstat (limited to 'test/core/transport')
-rw-r--r--test/core/transport/chttp2/hpack_encoder_test.c7
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 1cddecb850..0d3ed54c35 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);