Minor fixes

pull/9545/head
yang-g 8 years ago
parent a3310f8e1d
commit ded7f8250c
  1. 4
      test/cpp/util/cli_call.cc
  2. 2
      test/cpp/util/proto_file_parser.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()),

@ -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);

Loading…
Cancel
Save