Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: ipc/ipc_channel_proxy_unittest.cc

Issue 633563002: replace OVERRIDE and FINAL with override and final in ipc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_channel_proxy.h ('k') | ipc/ipc_channel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_proxy_unittest.cc
diff --git a/ipc/ipc_channel_proxy_unittest.cc b/ipc/ipc_channel_proxy_unittest.cc
index 81b65ec21c4d2c278d520824f3acea3884527917..9042f44d3f7ee96a5e808d07106a9c562072b1fb 100644
--- a/ipc/ipc_channel_proxy_unittest.cc
+++ b/ipc/ipc_channel_proxy_unittest.cc
@@ -49,7 +49,7 @@ class QuitListener : public IPC::Listener {
QuitListener() : bad_message_received_(false) {}
virtual ~QuitListener() {}
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE {
+ virtual bool OnMessageReceived(const IPC::Message& message) override {
IPC_BEGIN_MESSAGE_MAP(QuitListener, message)
IPC_MESSAGE_HANDLER(WorkerMsg_Quit, OnQuit)
IPC_MESSAGE_HANDLER(TestMsg_BadMessage, OnBadMessage)
@@ -57,7 +57,7 @@ class QuitListener : public IPC::Listener {
return true;
}
- virtual void OnBadMessageReceived(const IPC::Message& message) OVERRIDE {
+ virtual void OnBadMessageReceived(const IPC::Message& message) override {
bad_message_received_ = true;
}
@@ -83,7 +83,7 @@ class ChannelReflectorListener : public IPC::Listener {
channel_ = channel;
}
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE {
+ virtual bool OnMessageReceived(const IPC::Message& message) override {
IPC_BEGIN_MESSAGE_MAP(ChannelReflectorListener, message)
IPC_MESSAGE_HANDLER(TestMsg_Bounce, OnTestBounce)
IPC_MESSAGE_HANDLER(TestMsg_SendBadMessage, OnSendBadMessage)
@@ -143,24 +143,24 @@ class MessageCountFilter : public IPC::MessageFilter {
last_filter_event_(NONE),
message_filtering_enabled_(false) {}
- virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE {
+ virtual void OnFilterAdded(IPC::Sender* sender) override {
EXPECT_TRUE(sender);
EXPECT_EQ(NONE, last_filter_event_);
last_filter_event_ = FILTER_ADDED;
}
- virtual void OnChannelConnected(int32_t peer_pid) OVERRIDE {
+ virtual void OnChannelConnected(int32_t peer_pid) override {
EXPECT_EQ(FILTER_ADDED, last_filter_event_);
EXPECT_NE(static_cast<int32_t>(base::kNullProcessId), peer_pid);
last_filter_event_ = CHANNEL_CONNECTED;
}
- virtual void OnChannelError() OVERRIDE {
+ virtual void OnChannelError() override {
EXPECT_EQ(CHANNEL_CONNECTED, last_filter_event_);
last_filter_event_ = CHANNEL_ERROR;
}
- virtual void OnChannelClosing() OVERRIDE {
+ virtual void OnChannelClosing() override {
// We may or may not have gotten OnChannelError; if not, the last event has
// to be OnChannelConnected.
if (last_filter_event_ != CHANNEL_ERROR)
@@ -168,7 +168,7 @@ class MessageCountFilter : public IPC::MessageFilter {
last_filter_event_ = CHANNEL_CLOSING;
}
- virtual void OnFilterRemoved() OVERRIDE {
+ virtual void OnFilterRemoved() override {
// If the channel didn't get a chance to connect, we might see the
// OnFilterRemoved event with no other events preceding it. We still want
// OnFilterRemoved to be called to allow for deleting the Filter.
@@ -177,7 +177,7 @@ class MessageCountFilter : public IPC::MessageFilter {
last_filter_event_ = FILTER_REMOVED;
}
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE {
+ virtual bool OnMessageReceived(const IPC::Message& message) override {
// We should always get the OnFilterAdded and OnChannelConnected events
// prior to any messages.
EXPECT_EQ(CHANNEL_CONNECTED, last_filter_event_);
@@ -204,7 +204,7 @@ class MessageCountFilter : public IPC::MessageFilter {
}
virtual bool GetSupportedMessageClasses(
- std::vector<uint32>* supported_message_classes) const OVERRIDE {
+ std::vector<uint32>* supported_message_classes) const override {
if (is_global_filter_)
return false;
supported_message_classes->push_back(supported_message_class_);
@@ -234,7 +234,7 @@ class IPCChannelProxyTest : public IPCTestBase {
IPCChannelProxyTest() {}
virtual ~IPCChannelProxyTest() {}
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() override {
IPCTestBase::SetUp();
Init("ChannelProxyClient");
@@ -383,7 +383,7 @@ class IPCChannelBadMessageTest : public IPCTestBase {
IPCChannelBadMessageTest() {}
virtual ~IPCChannelBadMessageTest() {}
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() override {
IPCTestBase::SetUp();
Init("ChannelProxyClient");
« no previous file with comments | « ipc/ipc_channel_proxy.h ('k') | ipc/ipc_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698