Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
y-zeng committed Aug 16, 2016
1 parent 02139a0 commit 302763f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions test/cpp/util/cli_credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace testing {

class CliCredentials {
public:
virtual ~CliCredentials() {};
virtual std::shared_ptr<grpc::ChannelCredentials> GetCredentials() const;
virtual const grpc::string GetCredentialUsage() const;
};
Expand Down
15 changes: 9 additions & 6 deletions test/cpp/util/proto_file_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 302763f

Please sign in to comment.