aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util/proto_file_parser.h
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-08-15 17:25:57 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-08-15 17:25:57 -0700
commit302763f8989595c62b6c4b7e1ef851d85d414c0d (patch)
tree1a0eb955b71ceb6efe48a2bc1c1ffe6210b1bb56 /test/cpp/util/proto_file_parser.h
parent02139a05dc928ac4fa27c7b794a859e42f3b0831 (diff)
Address review comments
Diffstat (limited to 'test/cpp/util/proto_file_parser.h')
-rw-r--r--test/cpp/util/proto_file_parser.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/cpp/util/proto_file_parser.h b/test/cpp/util/proto_file_parser.h
index 300b5789bc..b9e4a1ec2b 100644
--- a/test/cpp/util/proto_file_parser.h
+++ b/test/cpp/util/proto_file_parser.h
@@ -48,15 +48,18 @@ class ErrorPrinter;
// Find method and associated request/response types.
class ProtoFileParser {
public:
- // The given proto file_name will be searched in a source tree rooted from
- // proto_path. The method could be a partial string such as Service.Method or
- // even just Method. It will log an error if there is ambiguity.
- ProtoFileParser(std::shared_ptr<grpc::Channel> channel,
- const grpc::string& proto_path,
- const grpc::string& protofiles);
+ // The parser will search proto files using the server reflection service
+ // provided on the given channel. The given protofiles in a source tree rooted
+ // from proto_path will also be searched.
+ explicit ProtoFileParser(std::shared_ptr<grpc::Channel> channel,
+ const grpc::string& proto_path,
+ const grpc::string& protofiles);
~ProtoFileParser();
+ // The input method name in the following four functions could be a partial
+ // string such as Service.Method or even just Method. It will log an error if
+ // there is ambiguity.
// Full method name is in the form of Service.Method, it's good to be used in
// descriptor database queries.
grpc::string GetFullMethodName(const grpc::string& method);