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

Unified Diff: chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc

Issue 826743003: Update {virtual,override,final} to follow C++11 style chrome/browser/chromeos/net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698