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

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

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.h
diff --git a/chrome/browser/tab_contents/render_view_context_menu_test_util.h b/chrome/browser/tab_contents/render_view_context_menu_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..ffe36ff30efc7b9dd3d9adb6157ee44b7047a6df
--- /dev/null
+++ b/chrome/browser/tab_contents/render_view_context_menu_test_util.h
@@ -0,0 +1,32 @@
+// 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.
+
+#ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_
+#define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_
+
+#include "base/basictypes.h"
+#include "chrome/browser/tab_contents/render_view_context_menu.h"
+
+class TestRenderViewContextMenu : public RenderViewContextMenu {
+ public:
+ TestRenderViewContextMenu(content::WebContents* web_contents,
+ content::ContextMenuParams params);
+ virtual ~TestRenderViewContextMenu();
+
+ virtual void PlatformInit() OVERRIDE;
+ virtual void PlatformCancel() OVERRIDE;
+ virtual bool GetAcceleratorForCommandId(
+ int command_id,
+ ui::Accelerator* accelerator) OVERRIDE;
+
+ // Returns true if command specified by |command_id| is present
+ // in the menu.
+ // List of command ids can be found in chrome/app/chrome_command_ids.h.
+ bool IsItemPresent(int command_id);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu);
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698