diff options
author | 2017-01-09 15:14:24 -0800 | |
---|---|---|
committer | 2017-01-09 15:14:24 -0800 | |
commit | 9dc0ca0a7099093b4840b845c32508cb430c60ad (patch) | |
tree | 135bbdbadb8938fa9ac86a2a1d30953f0ebfc7a7 /test/cpp/common/channel_arguments_test.cc | |
parent | 56610d4706593cca120ac62c41489438ae589293 (diff) | |
parent | 6cf58c81731343e0ffb134febd3e576425399e5e (diff) |
Merge branch 'master' of https://github.com/grpc/grpc into ruby_advanced_interop_client_side
Diffstat (limited to 'test/cpp/common/channel_arguments_test.cc')
-rw-r--r-- | test/cpp/common/channel_arguments_test.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/cpp/common/channel_arguments_test.cc b/test/cpp/common/channel_arguments_test.cc index 60d3215265..190d32ce06 100644 --- a/test/cpp/common/channel_arguments_test.cc +++ b/test/cpp/common/channel_arguments_test.cc @@ -37,7 +37,11 @@ #include <grpc/grpc.h> #include <grpc/support/useful.h> #include <gtest/gtest.h> + +extern "C" { +#include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/socket_mutator.h" +} namespace grpc { namespace testing { @@ -228,7 +232,11 @@ TEST_F(ChannelArgumentsTest, SetSocketMutator) { EXPECT_FALSE(HasArg(arg0)); // arg0 is destroyed by grpc_socket_mutator_to_arg(mutator1) - arg1.value.pointer.vtable->destroy(arg1.value.pointer.p); + { + grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; + arg1.value.pointer.vtable->destroy(&exec_ctx, arg1.value.pointer.p); + grpc_exec_ctx_finish(&exec_ctx); + } } TEST_F(ChannelArgumentsTest, SetUserAgentPrefix) { |