diff options
author | Craig Tiller <ctiller@google.com> | 2016-12-27 08:38:35 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-12-27 08:38:35 -0800 |
commit | 0704727c2d5bcdbf7a0c60de5b810ed79186f59e (patch) | |
tree | f09e088a030e6fb29fc82527d6e8c6b480561c98 /test/core/surface | |
parent | 6997c3473b0e152b00cb5696cf5717e5adb37cb6 (diff) | |
parent | 22b28264f9242b6d049f9e6d5b792bd5be048a97 (diff) |
Merge github.com:grpc/grpc into slice_with_exec_ctx
Diffstat (limited to 'test/core/surface')
-rw-r--r-- | test/core/surface/channel_create_test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/core/surface/channel_create_test.c b/test/core/surface/channel_create_test.c index ad7970aab9..654e5324d9 100644 --- a/test/core/surface/channel_create_test.c +++ b/test/core/surface/channel_create_test.c @@ -31,9 +31,14 @@ * */ +#include <string.h> + #include <grpc/grpc.h> #include <grpc/support/log.h> + #include "src/core/ext/client_channel/resolver_registry.h" +#include "src/core/lib/channel/channel_stack.h" +#include "src/core/lib/surface/channel.h" #include "test/core/util/test_config.h" void test_unknown_scheme_target(void) { @@ -44,6 +49,13 @@ void test_unknown_scheme_target(void) { chan = grpc_insecure_channel_create("blah://blah", NULL, NULL); GPR_ASSERT(chan != NULL); + + grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; + grpc_channel_element *elem = + grpc_channel_stack_element(grpc_channel_get_channel_stack(chan), 0); + GPR_ASSERT(0 == strcmp(elem->filter->name, "lame-client")); + grpc_exec_ctx_finish(&exec_ctx); + grpc_channel_destroy(chan); } |