Skip to content
Snippets Groups Projects
Commit 6bf1de9a authored by vjpai's avatar vjpai
Browse files

Mark a method with GRPC_OVERRIDE to avoid compiler warning

parent 6b43ac41
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ template <class W, class R> ...@@ -62,7 +62,7 @@ template <class W, class R>
class MockClientReaderWriter GRPC_FINAL class MockClientReaderWriter GRPC_FINAL
: public ClientReaderWriterInterface<W, R> { : public ClientReaderWriterInterface<W, R> {
public: public:
void WaitForInitialMetadata() {} void WaitForInitialMetadata() GRPC_OVERRIDE {}
bool Read(R* msg) GRPC_OVERRIDE { return true; } bool Read(R* msg) GRPC_OVERRIDE { return true; }
bool Write(const W& msg) GRPC_OVERRIDE { return true; } bool Write(const W& msg) GRPC_OVERRIDE { return true; }
bool WritesDone() GRPC_OVERRIDE { return true; } bool WritesDone() GRPC_OVERRIDE { return true; }
...@@ -73,7 +73,7 @@ class MockClientReaderWriter<EchoRequest, EchoResponse> GRPC_FINAL ...@@ -73,7 +73,7 @@ class MockClientReaderWriter<EchoRequest, EchoResponse> GRPC_FINAL
: public ClientReaderWriterInterface<EchoRequest, EchoResponse> { : public ClientReaderWriterInterface<EchoRequest, EchoResponse> {
public: public:
MockClientReaderWriter() : writes_done_(false) {} MockClientReaderWriter() : writes_done_(false) {}
void WaitForInitialMetadata() {} void WaitForInitialMetadata() GRPC_OVERRIDE {}
bool Read(EchoResponse* msg) GRPC_OVERRIDE { bool Read(EchoResponse* msg) GRPC_OVERRIDE {
if (writes_done_) return false; if (writes_done_) return false;
msg->set_message(last_message_); msg->set_message(last_message_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment