aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2018-07-18 16:21:51 -0700
committerGravatar GitHub <noreply@github.com>2018-07-18 16:21:51 -0700
commit481c1d57e7fc92f74c79b9aa0f7c8f0eaa51000b (patch)
tree8e1597cad0973f3cc99400238001349bfdf27d67 /test/cpp/util
parent2d5e0f1e72cda4e7466f28fdeaf20eceabef00f3 (diff)
parentb86a74475189e0ed97cdd3ddc48d96e94cec366a (diff)
Merge pull request #16022 from ncteisen/channelz-expose-get-channel
Channelz; Expose New Core API
Diffstat (limited to 'test/cpp/util')
-rw-r--r--test/cpp/util/channel_trace_proto_helper.cc5
-rw-r--r--test/cpp/util/channel_trace_proto_helper.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/test/cpp/util/channel_trace_proto_helper.cc b/test/cpp/util/channel_trace_proto_helper.cc
index 137f278640..b4704bfe6a 100644
--- a/test/cpp/util/channel_trace_proto_helper.cc
+++ b/test/cpp/util/channel_trace_proto_helper.cc
@@ -77,5 +77,10 @@ void ValidateGetTopChannelsResponseProtoJsonTranslation(char* json_c_str) {
json_c_str);
}
+void ValidateGetChannelResponseProtoJsonTranslation(char* json_c_str) {
+ VaidateProtoJsonTranslation<grpc::channelz::v1::GetChannelResponse>(
+ json_c_str);
+}
+
} // namespace testing
} // namespace grpc
diff --git a/test/cpp/util/channel_trace_proto_helper.h b/test/cpp/util/channel_trace_proto_helper.h
index 74c15f04f1..18e3d54b6b 100644
--- a/test/cpp/util/channel_trace_proto_helper.h
+++ b/test/cpp/util/channel_trace_proto_helper.h
@@ -25,6 +25,7 @@ namespace testing {
void ValidateChannelTraceProtoJsonTranslation(char* json_c_str);
void ValidateChannelProtoJsonTranslation(char* json_c_str);
void ValidateGetTopChannelsResponseProtoJsonTranslation(char* json_c_str);
+void ValidateGetChannelResponseProtoJsonTranslation(char* json_c_str);
} // namespace testing
} // namespace grpc