|
|
|
@ -108,10 +108,7 @@ class SynchronousStreamingClient GRPC_FINAL : public SynchronousClient { |
|
|
|
|
if (stream_) { |
|
|
|
|
SimpleResponse response; |
|
|
|
|
stream_->WritesDone(); |
|
|
|
|
EXPECT_FALSE(stream_->Read(&response)); |
|
|
|
|
|
|
|
|
|
Status s = stream_->Finish(); |
|
|
|
|
EXPECT_TRUE(s.IsOk()); |
|
|
|
|
EXPECT_TRUE(stream_->Finish().IsOk()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -123,7 +120,8 @@ class SynchronousStreamingClient GRPC_FINAL : public SynchronousClient { |
|
|
|
|
} |
|
|
|
|
private: |
|
|
|
|
grpc::ClientContext context_; |
|
|
|
|
std::unique_ptr<grpc::ClientReaderWriter<SimpleRequest,SimpleResponse>> stream_; |
|
|
|
|
std::unique_ptr<grpc::ClientReaderWriter<SimpleRequest, |
|
|
|
|
SimpleResponse>> stream_; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
std::unique_ptr<Client> |
|
|
|
|