diff options
author | Craig Tiller <ctiller@google.com> | 2015-11-20 12:02:17 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-11-20 12:02:17 -0800 |
commit | b2b4261631fcd6e43344feb7dec45eff5ddbc8a8 (patch) | |
tree | a6be9f523c8973864fbdfb3e3d3b70d7f2b129ca /test/core/channel | |
parent | ebdef9d674b33e7bd117e2a4a2da7762c35bbdfc (diff) |
Remove metadata context entirely
Diffstat (limited to 'test/core/channel')
-rw-r--r-- | test/core/channel/channel_stack_test.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/core/channel/channel_stack_test.c b/test/core/channel/channel_stack_test.c index 2a05c608bb..9dbb879300 100644 --- a/test/core/channel/channel_stack_test.c +++ b/test/core/channel/channel_stack_test.c @@ -93,13 +93,10 @@ static void test_create_channel_stack(void) { grpc_call_element *call_elem; grpc_arg arg; grpc_channel_args chan_args; - grpc_mdctx *metadata_context; int *channel_data; int *call_data; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; - metadata_context = grpc_mdctx_create(); - arg.type = GRPC_ARG_INTEGER; arg.key = "test_key"; arg.value.integer = 42; @@ -117,7 +114,7 @@ static void test_create_channel_stack(void) { call_stack = gpr_malloc(channel_stack->call_stack_size); grpc_call_stack_init(&exec_ctx, channel_stack, 0, NULL, NULL, NULL, NULL, - metadata_context, call_stack); + call_stack); GPR_ASSERT(call_stack->count == 1); call_elem = grpc_call_stack_element(call_stack, 0); GPR_ASSERT(call_elem->filter == channel_elem->filter); @@ -133,8 +130,6 @@ static void test_create_channel_stack(void) { grpc_channel_stack_destroy(&exec_ctx, channel_stack); gpr_free(channel_stack); - grpc_mdctx_unref(metadata_context); - grpc_exec_ctx_finish(&exec_ctx); } |