aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/transport/chttp2/bin_encoder_test.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-17 12:16:05 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-17 12:16:05 -0800
commit7d4116fa44752dcb10da3a5dee95c05214423ac5 (patch)
tree3f2f8aeb21cf920b92bb175e25454f96691e7425 /test/core/transport/chttp2/bin_encoder_test.c
parent0451c3dbfcf7dcab791a4a2b10f284ac4723da8e (diff)
All core tests compile without grpc_mdstr
Diffstat (limited to 'test/core/transport/chttp2/bin_encoder_test.c')
-rw-r--r--test/core/transport/chttp2/bin_encoder_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/transport/chttp2/bin_encoder_test.c b/test/core/transport/chttp2/bin_encoder_test.c
index 53b55a301e..778606a78c 100644
--- a/test/core/transport/chttp2/bin_encoder_test.c
+++ b/test/core/transport/chttp2/bin_encoder_test.c
@@ -84,7 +84,7 @@ static void expect_combined_equiv(const char *s, size_t len, int line) {
grpc_slice input = grpc_slice_from_copied_buffer(s, len);
grpc_slice base64 = grpc_chttp2_base64_encode(input);
grpc_slice expect = grpc_chttp2_huffman_compress(base64);
- grpc_slice got = grpc_chttp2_base64_encode_and_huffman_compress_impl(input);
+ grpc_slice got = grpc_chttp2_base64_encode_and_huffman_compress(input);
if (0 != grpc_slice_cmp(expect, got)) {
char *t = grpc_dump_slice(input, GPR_DUMP_HEX | GPR_DUMP_ASCII);
char *e = grpc_dump_slice(expect, GPR_DUMP_HEX | GPR_DUMP_ASCII);
@@ -106,7 +106,7 @@ static void expect_combined_equiv(const char *s, size_t len, int line) {
expect_combined_equiv(x, sizeof(x) - 1, __LINE__)
static void expect_binary_header(const char *hdr, int binary) {
- if (grpc_is_binary_header(hdr, strlen(hdr)) != binary) {
+ if (grpc_is_binary_header(grpc_slice_from_static_string(hdr)) != binary) {
gpr_log(GPR_ERROR, "FAILED: expected header '%s' to be %s", hdr,
binary ? "binary" : "not binary");
all_ok = 0;