diff options
author | ncteisen <ncteisen@gmail.com> | 2018-03-07 00:34:37 -0800 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-03-07 00:34:37 -0800 |
commit | 09703ea30089464820dd56a07711f81a2d1e0f3c (patch) | |
tree | 9c0c473f4e23843ee9c2c9a6f7f21af4def449e1 /test/cpp/util | |
parent | bec1a61c26625364825dae396cc02a49926668c7 (diff) |
Add severity
Diffstat (limited to 'test/cpp/util')
-rw-r--r-- | test/cpp/util/channel_trace_proto_helper.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/cpp/util/channel_trace_proto_helper.cc b/test/cpp/util/channel_trace_proto_helper.cc index be00dd1424..fbc9f1501c 100644 --- a/test/cpp/util/channel_trace_proto_helper.cc +++ b/test/cpp/util/channel_trace_proto_helper.cc @@ -22,6 +22,7 @@ #include <google/protobuf/util/json_util.h> #include <grpc/grpc.h> +#include <grpc/support/log.h> #include <gtest/gtest.h> #include "src/proto/grpc/channelz/channelz.pb.h" @@ -32,14 +33,14 @@ namespace testing { void ValidateChannelTraceProtoJsonTranslation(char* tracer_json_c_str) { std::string tracer_json_str(tracer_json_c_str); grpc::channelz::ChannelTrace channel_trace; - google::protobuf::util::JsonParseOptions options; + google::protobuf::util::JsonParseOptions parse_options; // If the following line is failing, then uncomment the last line of the // comment, and uncomment the lines that print the two strings. You can // then compare the output, and determine what fields are missing. // // options.ignore_unknown_fields = true; ASSERT_EQ(google::protobuf::util::JsonStringToMessage( - tracer_json_str, &channel_trace, options), + tracer_json_str, &channel_trace, parse_options), google::protobuf::util::Status::OK); std::string proto_json_str; ASSERT_EQ(google::protobuf::util::MessageToJsonString(channel_trace, |