diff options
author | Noah Eisen <ncteisen@gmail.com> | 2018-09-10 11:12:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 11:12:52 -0700 |
commit | 2edfddb66f84841fb39d01e335d19f13a09519cf (patch) | |
tree | 179d269af2150e2566f08f1afcc160c3a796280f /test/cpp/util | |
parent | 1a09a5931e41cd44e442775f4f20b9b7349507c6 (diff) | |
parent | 2ff5be8c08c75a2c2c0152694788aa1e5ed3d50d (diff) |
Merge pull request #16055 from ncteisen/channelz-subchannels
Channelz Part 4: Add Subchannel Support
Diffstat (limited to 'test/cpp/util')
-rw-r--r-- | test/cpp/util/channel_trace_proto_helper.cc | 4 | ||||
-rw-r--r-- | test/cpp/util/channel_trace_proto_helper.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/cpp/util/channel_trace_proto_helper.cc b/test/cpp/util/channel_trace_proto_helper.cc index b4704bfe6a..e416a0375f 100644 --- a/test/cpp/util/channel_trace_proto_helper.cc +++ b/test/cpp/util/channel_trace_proto_helper.cc @@ -82,5 +82,9 @@ void ValidateGetChannelResponseProtoJsonTranslation(char* json_c_str) { json_c_str); } +void ValidateSubchannelProtoJsonTranslation(char* json_c_str) { + VaidateProtoJsonTranslation<grpc::channelz::v1::Subchannel>(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 18e3d54b6b..a1ebbcd110 100644 --- a/test/cpp/util/channel_trace_proto_helper.h +++ b/test/cpp/util/channel_trace_proto_helper.h @@ -26,6 +26,7 @@ void ValidateChannelTraceProtoJsonTranslation(char* json_c_str); void ValidateChannelProtoJsonTranslation(char* json_c_str); void ValidateGetTopChannelsResponseProtoJsonTranslation(char* json_c_str); void ValidateGetChannelResponseProtoJsonTranslation(char* json_c_str); +void ValidateSubchannelProtoJsonTranslation(char* json_c_str); } // namespace testing } // namespace grpc |