diff options
author | yang-g <yangg@google.com> | 2016-03-30 16:19:43 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-03-30 16:19:43 -0700 |
commit | 24ba7c12e2e63345d28c9464d135f9efa82eef22 (patch) | |
tree | 9d383409c005bec83dd1990853a0b4417e5021f4 /test/core/transport | |
parent | a863b8e4ef911c1d18808822f5524b891e7f486f (diff) |
Handle staic metatada string
Diffstat (limited to 'test/core/transport')
-rw-r--r-- | test/core/transport/metadata_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/transport/metadata_test.c b/test/core/transport/metadata_test.c index 6037f9b896..7787b32308 100644 --- a/test/core/transport/metadata_test.c +++ b/test/core/transport/metadata_test.c @@ -43,6 +43,7 @@ #include "src/core/ext/transport/chttp2/transport/bin_encoder.h" #include "src/core/lib/support/string.h" +#include "src/core/lib/transport/static_metadata.h" #include "test/core/util/test_config.h" #define LOG_TEST(x) gpr_log(GPR_INFO, "%s", x) @@ -302,6 +303,10 @@ static void test_mdelem_sizes_in_hpack(void) { verify_binary_header_size("hello-bin", binary_value, i); } + const char *static_metadata = grpc_static_metadata_strings[0]; + memcpy(binary_value, static_metadata, strlen(static_metadata)); + verify_binary_header_size("hello-bin", binary_value, strlen(static_metadata)); + grpc_shutdown(); } |