Index: chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc |
diff --git a/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc b/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc |
index dd357a82daf5c520564ecadc6aff5007ea129c3b..946cc85ae7508535cf6f0152e8489eb987fc5150 100644 |
--- a/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc |
+++ b/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc |
@@ -29,20 +29,18 @@ class NotificationObserver : public message_center::MessageCenterObserver { |
NotificationObserver() : add_count_(0), remove_count_(0), update_count_(0) {} |
// Overridden from message_center::MessageCenterObserver: |
- virtual void OnNotificationAdded( |
- const std::string& notification_id) override { |
+ void OnNotificationAdded(const std::string& notification_id) override { |
if (notification_id == kNotificationId) |
++add_count_; |
} |
- virtual void OnNotificationRemoved(const std::string& notification_id, |
- bool /* by_user */) override { |
+ void OnNotificationRemoved(const std::string& notification_id, |
+ bool /* by_user */) override { |
if (notification_id == kNotificationId) |
++remove_count_; |
} |
- virtual void OnNotificationUpdated( |
- const std::string& notification_id) override { |
+ void OnNotificationUpdated(const std::string& notification_id) override { |
if (notification_id == kNotificationId) |
++update_count_; |
} |
@@ -64,16 +62,16 @@ class NotificationObserver : public message_center::MessageCenterObserver { |
class NetworkPortalNotificationControllerTest : public testing::Test { |
public: |
NetworkPortalNotificationControllerTest() {} |
- virtual ~NetworkPortalNotificationControllerTest() {} |
+ ~NetworkPortalNotificationControllerTest() override {} |
- virtual void SetUp() override { |
+ void SetUp() override { |
base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); |
cl->AppendSwitch(switches::kEnableNetworkPortalNotification); |
MessageCenter::Initialize(); |
MessageCenter::Get()->AddObserver(&observer_); |
} |
- virtual void TearDown() override { |
+ void TearDown() override { |
MessageCenter::Get()->RemoveObserver(&observer_); |
MessageCenter::Shutdown(); |
} |