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

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

Issue 10855075: Clean-up inline members of nested classes (chrome/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « chrome/test/base/menu_model_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/menu_model_test.cc
diff --git a/chrome/test/base/menu_model_test.cc b/chrome/test/base/menu_model_test.cc
index 7fe15b5e4d3d24fc99ede72cc7e7bf72ce07acaa..2c8bd27f62e2c6ace04bade61205749c210bd707 100644
--- a/chrome/test/base/menu_model_test.cc
+++ b/chrome/test/base/menu_model_test.cc
@@ -5,6 +5,26 @@
#include "chrome/test/base/menu_model_test.h"
#include "testing/gtest/include/gtest/gtest.h"
+
+bool MenuModelTest::Delegate::IsCommandIdChecked(int command_id) const {
+ return false;
+}
+
+bool MenuModelTest::Delegate::IsCommandIdEnabled(int command_id) const {
+ ++enable_count_;
+ return true;
+}
+
+bool MenuModelTest::Delegate::GetAcceleratorForCommandId(
+ int command_id,
+ ui::Accelerator* accelerator) {
+ return false;
+}
+
+void MenuModelTest::Delegate::ExecuteCommand(int command_id) {
+ ++execute_count_;
+}
+
// Recursively checks the enabled state and executes a command on every item
// that's not a separator or a submenu parent item. The returned count should
// match the number of times the delegate is called to ensure every item works.
« no previous file with comments | « chrome/test/base/menu_model_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698