diff options
author | Yang Gao <yangg@google.com> | 2017-02-01 21:35:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-01 21:35:29 -0800 |
commit | afe67c0b8571d9b555529a2ca2b5946fd4d6e99a (patch) | |
tree | 54268b810ed52fa2ebb9fc904a99687de2aa7e1a /test/cpp | |
parent | 82c406cc080d8df480ee8e651bccd26b51d505f5 (diff) | |
parent | ded7f8250c282b9fcf120ef2ff47832926660ff4 (diff) |
Merge pull request #9545 from yang-g/fix
Minor fixes
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/util/cli_call.cc | 4 | ||||
-rw-r--r-- | test/cpp/util/proto_file_parser.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/util/cli_call.cc b/test/cpp/util/cli_call.cc index 4d045da098..041cc0e4c3 100644 --- a/test/cpp/util/cli_call.cc +++ b/test/cpp/util/cli_call.cc @@ -111,7 +111,7 @@ bool CliCall::Read(grpc::string* response, return false; } std::vector<grpc::Slice> slices; - recv_buffer.Dump(&slices); + GPR_ASSERT(recv_buffer.Dump(&slices).ok()); response->clear(); for (size_t i = 0; i < slices.size(); i++) { @@ -196,7 +196,7 @@ bool CliCall::ReadAndMaybeNotifyWrite( } std::vector<grpc::Slice> slices; - recv_buffer.Dump(&slices); + GPR_ASSERT(recv_buffer.Dump(&slices).ok()); response->clear(); for (size_t i = 0; i < slices.size(); i++) { response->append(reinterpret_cast<const char*>(slices[i].begin()), diff --git a/test/cpp/util/proto_file_parser.cc b/test/cpp/util/proto_file_parser.cc index d501c3697b..5dd1b00e8a 100644 --- a/test/cpp/util/proto_file_parser.cc +++ b/test/cpp/util/proto_file_parser.cc @@ -83,7 +83,7 @@ ProtoFileParser::ProtoFileParser(std::shared_ptr<grpc::Channel> channel, const grpc::string& protofiles) : has_error_(false), dynamic_factory_(new protobuf::DynamicMessageFactory()) { - std::vector<std::string> service_list; + std::vector<grpc::string> service_list; if (channel) { reflection_db_.reset(new grpc::ProtoReflectionDescriptorDatabase(channel)); reflection_db_->GetServices(&service_list); |