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

Unified Diff: ash/system/chromeos/power/tray_power_unittest.cc

Issue 800983006: Update {virtual,override,final} to follow C++11 style in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround 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
« no previous file with comments | « ash/system/chromeos/power/tray_power.cc ('k') | ash/system/chromeos/power/video_activity_notifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/tray_power_unittest.cc
diff --git a/ash/system/chromeos/power/tray_power_unittest.cc b/ash/system/chromeos/power/tray_power_unittest.cc
index 50bb141d2f6ad26fb88f7a491acdde43a7776249..23777f7e8a28691dec9214bc14f3b33fd934ab20 100644
--- a/ash/system/chromeos/power/tray_power_unittest.cc
+++ b/ash/system/chromeos/power/tray_power_unittest.cc
@@ -18,17 +18,16 @@ namespace {
class MockMessageCenter : public message_center::FakeMessageCenter {
public:
MockMessageCenter() : add_count_(0), remove_count_(0) {}
- virtual ~MockMessageCenter() {}
+ ~MockMessageCenter() override {}
int add_count() const { return add_count_; }
int remove_count() const { return remove_count_; }
// message_center::FakeMessageCenter overrides:
- virtual void AddNotification(scoped_ptr<Notification> notification) override {
+ void AddNotification(scoped_ptr<Notification> notification) override {
add_count_++;
}
- virtual void RemoveNotification(const std::string& id, bool by_user)
- override {
+ void RemoveNotification(const std::string& id, bool by_user) override {
remove_count_++;
}
@@ -46,19 +45,19 @@ namespace ash {
class TrayPowerTest : public test::AshTestBase {
public:
TrayPowerTest() {}
- virtual ~TrayPowerTest() {}
+ ~TrayPowerTest() override {}
MockMessageCenter* message_center() { return message_center_.get(); }
TrayPower* tray_power() { return tray_power_.get(); }
// test::AshTestBase::SetUp() overrides:
- virtual void SetUp() override {
+ void SetUp() override {
test::AshTestBase::SetUp();
message_center_.reset(new MockMessageCenter());
tray_power_.reset(new TrayPower(NULL, message_center_.get()));
}
- virtual void TearDown() override {
+ void TearDown() override {
tray_power_.reset();
message_center_.reset();
test::AshTestBase::TearDown();
« no previous file with comments | « ash/system/chromeos/power/tray_power.cc ('k') | ash/system/chromeos/power/video_activity_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698