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

Unified Diff: ash/ime/input_method_menu_manager_unittest.cc

Issue 680153002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting 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 | « ash/ime/infolist_window.cc ('k') | ash/ime/mode_indicator_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ime/input_method_menu_manager_unittest.cc
diff --git a/ash/ime/input_method_menu_manager_unittest.cc b/ash/ime/input_method_menu_manager_unittest.cc
index e843cf37bed524f6d3f53a98d8d94016e2ec788b..d4a62b1cbaa08002350ba64bdd6fb214c953cef7 100644
--- a/ash/ime/input_method_menu_manager_unittest.cc
+++ b/ash/ime/input_method_menu_manager_unittest.cc
@@ -18,11 +18,10 @@ TEST(InputMethodMenuManagerTest, TestGetSingleton) {
class MockObserver : public InputMethodMenuManager::Observer {
public:
MockObserver() : input_method_menu_item_changed_count_(0) {}
- virtual ~MockObserver() {}
+ ~MockObserver() override {}
// Called when the list of menu items is changed.
- virtual void InputMethodMenuItemChanged(
- InputMethodMenuManager* manager) override {
+ void InputMethodMenuItemChanged(InputMethodMenuManager* manager) override {
input_method_menu_item_changed_count_++;
}
int input_method_menu_item_changed_count_;
@@ -32,15 +31,13 @@ class InputMethodMenuManagerStatefulTest : public testing::Test{
public:
InputMethodMenuManagerStatefulTest()
: observer_(new MockObserver()) {}
- virtual ~InputMethodMenuManagerStatefulTest() {}
- virtual void SetUp() override {
+ ~InputMethodMenuManagerStatefulTest() override {}
+ void SetUp() override {
menu_manager_ = InputMethodMenuManager::GetInstance();
menu_manager_->AddObserver(observer_.get());
}
- virtual void TearDown() override {
- menu_manager_->RemoveObserver(observer_.get());
- }
+ void TearDown() override { menu_manager_->RemoveObserver(observer_.get()); }
InputMethodMenuManager* menu_manager_;
scoped_ptr<MockObserver> observer_;
« no previous file with comments | « ash/ime/infolist_window.cc ('k') | ash/ime/mode_indicator_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698