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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_context_menu.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/ui/ash/launcher/launcher_context_menu.h
diff --git a/chrome/browser/ui/ash/launcher/launcher_context_menu.h b/chrome/browser/ui/ash/launcher/launcher_context_menu.h
index 185e6031818a1eae7feab54b4662182ade95940d..b77a5dad73d3ae8bf14bd776ec35d4b9bc58a7ca 100644
--- a/chrome/browser/ui/ash/launcher/launcher_context_menu.h
+++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.h
@@ -8,6 +8,7 @@
#include "ash/launcher/launcher_alignment_menu.h"
#include "ash/launcher/launcher_types.h"
#include "base/basictypes.h"
+#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "ui/base/models/simple_menu_model.h"
@@ -51,6 +52,13 @@ class LauncherContextMenu : public ui::SimpleMenuModel,
virtual void ExecuteCommand(int command_id) OVERRIDE;
private:
+ FRIEND_TEST_ALL_PREFIXES(
+ LauncherContextMenuTest,
+ NewIncognitoWindowMenuIsDisabledWhenIncognitoModeOff);
+ FRIEND_TEST_ALL_PREFIXES(
+ LauncherContextMenuTest,
+ NewWindowMenuIsDisabledWhenIncognitoModeForced);
+
enum MenuItem {
MENU_OPEN_NEW,
MENU_CLOSE,

Powered by Google App Engine
This is Rietveld 408576698