aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-10-02 08:29:37 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-10-02 08:29:37 -0700
commitfd2fe1d5c42e95dc7c9a0dc59c6233d70ae85ff4 (patch)
treee909739c2765de6184211509d28e7d792a0864fd /test
parent242d6a58dc3cdf82a393c32e95fa6d2792ad04d1 (diff)
Channelz server listening socket support
Diffstat (limited to 'test')
-rw-r--r--test/core/end2end/tests/channelz.cc2
-rw-r--r--test/cpp/microbenchmarks/bm_call_create.cc10
2 files changed, 8 insertions, 4 deletions
diff --git a/test/core/end2end/tests/channelz.cc b/test/core/end2end/tests/channelz.cc
index 40a0370f0e..678163e1f2 100644
--- a/test/core/end2end/tests/channelz.cc
+++ b/test/core/end2end/tests/channelz.cc
@@ -252,6 +252,8 @@ static void test_channelz(grpc_end2end_test_config config) {
GPR_ASSERT(nullptr != strstr(json, "\"callsStarted\":\"2\""));
GPR_ASSERT(nullptr != strstr(json, "\"callsFailed\":\"1\""));
GPR_ASSERT(nullptr != strstr(json, "\"callsSucceeded\":\"1\""));
+ GPR_ASSERT(nullptr != strstr(json, "\"listenSocket\""));
+ GPR_ASSERT(nullptr != strstr(json, "\"socketId\""));
// channel tracing is not enabled, so these should not be preset.
GPR_ASSERT(nullptr == strstr(json, "\"trace\""));
GPR_ASSERT(nullptr == strstr(json, "\"description\":\"Channel created\""));
diff --git a/test/cpp/microbenchmarks/bm_call_create.cc b/test/cpp/microbenchmarks/bm_call_create.cc
index 9516b2e3e2..f9b5f21c34 100644
--- a/test/cpp/microbenchmarks/bm_call_create.cc
+++ b/test/cpp/microbenchmarks/bm_call_create.cc
@@ -446,11 +446,13 @@ void Destroy(grpc_transport* self) {}
/* implementation of grpc_transport_get_endpoint */
grpc_endpoint* GetEndpoint(grpc_transport* self) { return nullptr; }
+static intptr_t GetSocketUuid(grpc_transport* t) { return 0; }
+
static const grpc_transport_vtable dummy_transport_vtable = {
- 0, "dummy_http2", InitStream,
- SetPollset, SetPollsetSet, PerformStreamOp,
- PerformOp, DestroyStream, Destroy,
- GetEndpoint};
+ 0, "dummy_http2", InitStream,
+ SetPollset, SetPollsetSet, PerformStreamOp,
+ PerformOp, DestroyStream, Destroy,
+ GetEndpoint, GetSocketUuid};
static grpc_transport dummy_transport = {&dummy_transport_vtable};