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

Unified Diff: chrome/browser/ui/ash/event_rewriter_unittest.cc

Issue 14820030: Move Chrome OS switches to chromeos/chromeos_switches.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 7 years, 7 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/browser/ui/ash/event_rewriter.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/event_rewriter_unittest.cc
diff --git a/chrome/browser/ui/ash/event_rewriter_unittest.cc b/chrome/browser/ui/ash/event_rewriter_unittest.cc
index f908c64557f76bd3f176b030fdb3b68bc0c7ac42..a8fe1b005edea310cca12504b649affd96449eb0 100644
--- a/chrome/browser/ui/ash/event_rewriter_unittest.cc
+++ b/chrome/browser/ui/ash/event_rewriter_unittest.cc
@@ -8,7 +8,6 @@
#include "base/command_line.h"
#include "base/prefs/pref_member.h"
#include "base/stringprintf.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_pref_service_syncable.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -24,6 +23,7 @@
#include "chrome/browser/chromeos/login/mock_user_manager.h"
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/preferences.h"
+#include "chromeos/chromeos_switches.h"
#include "chromeos/ime/mock_xkeyboard.h"
#include "ui/base/x/x11_util.h"
@@ -890,7 +890,7 @@ TEST_F(EventRewriterTest, TestRewriteNumPadKeysWithDiamondKeyFlag) {
// Make sure the num lock works correctly even when Diamond key exists.
const CommandLine original_cl(*CommandLine::ForCurrentProcess());
CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kHasChromeOSDiamondKey, "");
+ chromeos::switches::kHasChromeOSDiamondKey, "");
TestRewriteNumPadKeys();
*CommandLine::ForCurrentProcess() = original_cl;
@@ -944,7 +944,7 @@ TEST_F(EventRewriterTest,
// Makes sure the num lock works correctly even when Diamond key exists.
const CommandLine original_cl(*CommandLine::ForCurrentProcess());
CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kHasChromeOSDiamondKey, "");
+ chromeos::switches::kHasChromeOSDiamondKey, "");
TestRewriteNumPadKeysOnAppleKeyboard();
*CommandLine::ForCurrentProcess() = original_cl;
@@ -1680,7 +1680,7 @@ TEST_F(EventRewriterTest, DISABLED_TestRewriteDiamondKeyWithFlag) {
const CommandLine original_cl(*CommandLine::ForCurrentProcess());
CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kHasChromeOSDiamondKey, "");
+ chromeos::switches::kHasChromeOSDiamondKey, "");
TestingPrefServiceSyncable prefs;
chromeos::Preferences::RegisterUserPrefs(prefs.registry());
@@ -2226,7 +2226,7 @@ TEST_F(EventRewriterTest, TestRewriteExtendedKeysWithSearchRemapped) {
rewriter.set_pref_service_for_testing(&prefs);
CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kHasChromeOSKeyboard, "");
+ chromeos::switches::kHasChromeOSKeyboard, "");
// Alt+Search+Down -> End
EXPECT_EQ(GetExpectedResultAsString(ui::VKEY_END,
« no previous file with comments | « chrome/browser/ui/ash/event_rewriter.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698