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

Unified Diff: chrome/test/base/menu_model_test.h

Issue 8558032: Add OVERRIDE to chrome/test/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « chrome/test/base/chrome_test_suite.h ('k') | chrome/test/base/test_url_request_context_getter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/menu_model_test.h
diff --git a/chrome/test/base/menu_model_test.h b/chrome/test/base/menu_model_test.h
index d9c341b896f768ae29c2cfa613519b9ba0c3506f..562515f591fb5c3d79069808e9649b8bffcee6f3 100644
--- a/chrome/test/base/menu_model_test.h
+++ b/chrome/test/base/menu_model_test.h
@@ -24,15 +24,17 @@ class MenuModelTest {
public:
Delegate() : execute_count_(0), enable_count_(0) { }
- virtual bool IsCommandIdChecked(int command_id) const { return false; }
- virtual bool IsCommandIdEnabled(int command_id) const {
+ virtual bool IsCommandIdChecked(int command_id) const OVERRIDE {
+ return false;
+ }
+ virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE {
++enable_count_;
return true;
}
virtual bool GetAcceleratorForCommandId(
int command_id,
- ui::Accelerator* accelerator) { return false; }
- virtual void ExecuteCommand(int command_id) { ++execute_count_; }
+ ui::Accelerator* accelerator) OVERRIDE { return false; }
+ virtual void ExecuteCommand(int command_id) OVERRIDE { ++execute_count_; }
int execute_count_;
mutable int enable_count_;
« no previous file with comments | « chrome/test/base/chrome_test_suite.h ('k') | chrome/test/base/test_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698