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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu_test_util.cc

Issue 11471027: Added more tests for IncognitoModeAvailability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style issues. Created 7 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
Index: chrome/browser/tab_contents/render_view_context_menu_test_util.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu_test_util.cc b/chrome/browser/tab_contents/render_view_context_menu_test_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d1f2cb05bcd9d9ec896607022f8a2ee2b6d891ba
--- /dev/null
+++ b/chrome/browser/tab_contents/render_view_context_menu_test_util.cc
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/tab_contents/render_view_context_menu_test_util.h"
+
+TestRenderViewContextMenu::TestRenderViewContextMenu(
+ content::WebContents* web_contents,
+ content::ContextMenuParams params)
+ : RenderViewContextMenu(web_contents, params) {}
+
+TestRenderViewContextMenu::~TestRenderViewContextMenu() {}
+
+void TestRenderViewContextMenu::PlatformInit() {}
+
+void TestRenderViewContextMenu::PlatformCancel() {}
+
+bool TestRenderViewContextMenu::GetAcceleratorForCommandId(
+ int command_id,
+ ui::Accelerator* accelerator) {
+ return false;
+}
+
+bool TestRenderViewContextMenu::IsItemPresent(int command_id) {
+ return menu_model_.GetIndexOfCommandId(command_id) != -1;
+}

Powered by Google App Engine
This is Rietveld 408576698