diff options
Diffstat (limited to 'ipc/ipc_perftest_support.cc')
-rw-r--r-- | ipc/ipc_perftest_support.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ipc/ipc_perftest_support.cc b/ipc/ipc_perftest_support.cc index ab06ed6..e60de91 100644 --- a/ipc/ipc_perftest_support.cc +++ b/ipc/ipc_perftest_support.cc @@ -81,7 +81,7 @@ class ChannelReflectorListener : public Listener { VLOG(1) << "Client listener up"; } - ~ChannelReflectorListener() override { + virtual ~ChannelReflectorListener() { VLOG(1) << "Client listener down"; latency_tracker_.ShowResults(); } @@ -91,7 +91,7 @@ class ChannelReflectorListener : public Listener { channel_ = channel; } - bool OnMessageReceived(const Message& message) override { + virtual bool OnMessageReceived(const Message& message) override { CHECK(channel_); PickleIterator iter(message); @@ -142,7 +142,9 @@ class PerformanceChannelListener : public Listener { VLOG(1) << "Server listener up"; } - ~PerformanceChannelListener() override { VLOG(1) << "Server listener down"; } + virtual ~PerformanceChannelListener() { + VLOG(1) << "Server listener down"; + } void Init(Sender* sender) { DCHECK(!sender_); @@ -158,7 +160,7 @@ class PerformanceChannelListener : public Listener { payload_ = std::string(msg_size_, 'a'); } - bool OnMessageReceived(const Message& message) override { + virtual bool OnMessageReceived(const Message& message) override { CHECK(sender_); PickleIterator iter(message); |