|
|
|
@ -163,13 +163,13 @@ class FakeClient { |
|
|
|
|
|
|
|
|
|
class TestServiceImpl : public EchoTestService::Service { |
|
|
|
|
public: |
|
|
|
|
Status Echo(ServerContext* context, const EchoRequest* request, |
|
|
|
|
Status Echo(ServerContext* /*context*/, const EchoRequest* request, |
|
|
|
|
EchoResponse* response) override { |
|
|
|
|
response->set_message(request->message()); |
|
|
|
|
return Status::OK; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Status RequestStream(ServerContext* context, |
|
|
|
|
Status RequestStream(ServerContext* /*context*/, |
|
|
|
|
ServerReader<EchoRequest>* reader, |
|
|
|
|
EchoResponse* response) override { |
|
|
|
|
EchoRequest request; |
|
|
|
@ -182,7 +182,7 @@ class TestServiceImpl : public EchoTestService::Service { |
|
|
|
|
return Status::OK; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Status ResponseStream(ServerContext* context, const EchoRequest* request, |
|
|
|
|
Status ResponseStream(ServerContext* /*context*/, const EchoRequest* request, |
|
|
|
|
ServerWriter<EchoResponse>* writer) override { |
|
|
|
|
EchoResponse response; |
|
|
|
|
vector<grpc::string> tokens = split(request->message()); |
|
|
|
@ -194,7 +194,7 @@ class TestServiceImpl : public EchoTestService::Service { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Status BidiStream( |
|
|
|
|
ServerContext* context, |
|
|
|
|
ServerContext* /*context*/, |
|
|
|
|
ServerReaderWriter<EchoResponse, EchoRequest>* stream) override { |
|
|
|
|
EchoRequest request; |
|
|
|
|
EchoResponse response; |
|
|
|
|