diff options
Diffstat (limited to 'chrome/browser/wrench_menu_model.h')
-rw-r--r-- | chrome/browser/wrench_menu_model.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/wrench_menu_model.h b/chrome/browser/wrench_menu_model.h index c7f6604..b7dc724 100644 --- a/chrome/browser/wrench_menu_model.h +++ b/chrome/browser/wrench_menu_model.h @@ -23,6 +23,10 @@ namespace menus { class ButtonMenuItemModel; } // namespace menus +namespace { +class MockWrenchMenuModel; +} // namespace + class ToolsMenuModel : public menus::SimpleMenuModel { public: ToolsMenuModel(menus::SimpleMenuModel::Delegate* delegate, Browser* browser); @@ -75,6 +79,10 @@ class WrenchMenuModel : public menus::SimpleMenuModel, const NotificationDetails& details); private: + // Testing constructor used for mocking. + friend class ::MockWrenchMenuModel; + WrenchMenuModel() : menus::SimpleMenuModel(NULL) {} + void Build(); // Adds custom items to the menu. Deprecated in favor of a cross platform |