diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 02:07:25 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 02:07:25 +0000 |
commit | b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78 (patch) | |
tree | d723b8556ad386a0b8a6e999e3a842e0bfe6f9b0 /chrome/test/ui/ui_test.cc | |
parent | 1976d41ac728fcceb30f2df3c243cb7417f538f1 (diff) | |
download | chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.zip chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.gz chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.bz2 |
Use ASCII strings for switch names.
Review URL: http://codereview.chromium.org/270062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.cc')
-rw-r--r-- | chrome/test/ui/ui_test.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index cf49227..c4a37e2 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -77,17 +77,17 @@ std::wstring UITest::log_level_ = L""; // Specify the time (in milliseconds) that the ui_tests should wait before // timing out. This is used to specify longer timeouts when running under Purify // which requires much more time. -const wchar_t kUiTestTimeout[] = L"ui-test-timeout"; -const wchar_t kUiTestActionTimeout[] = L"ui-test-action-timeout"; -const wchar_t kUiTestActionMaxTimeout[] = L"ui-test-action-max-timeout"; -const wchar_t kUiTestSleepTimeout[] = L"ui-test-sleep-timeout"; -const wchar_t kUiTestTerminateTimeout[] = L"ui-test-terminate-timeout"; +const char kUiTestTimeout[] = "ui-test-timeout"; +const char kUiTestActionTimeout[] = "ui-test-action-timeout"; +const char kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout"; +const char kUiTestSleepTimeout[] = "ui-test-sleep-timeout"; +const char kUiTestTerminateTimeout[] = "ui-test-terminate-timeout"; -const wchar_t kExtraChromeFlagsSwitch[] = L"extra-chrome-flags"; +const char kExtraChromeFlagsSwitch[] = "extra-chrome-flags"; // By default error dialogs are hidden, which makes debugging failures in the // slave process frustrating. By passing this in error dialogs are enabled. -const wchar_t kEnableErrorDialogs[] = L"enable-errdialogs"; +const char kEnableErrorDialogs[] = "enable-errdialogs"; // Uncomment this line to have the spawned process wait for the debugger to // attach. This only works on Windows. On posix systems, you can set the @@ -308,16 +308,16 @@ static void RunCommand(const CommandLine& cmd_line) { void UITest::StartHttpServer(const FilePath& root_directory) { scoped_ptr<CommandLine> cmd_line(CreateHttpServerCommandLine()); ASSERT_TRUE(cmd_line.get()); - cmd_line->AppendSwitchWithValue(L"server", L"start"); - cmd_line->AppendSwitch(L"register_cygwin"); - cmd_line->AppendSwitchWithValue(L"root", root_directory.ToWStringHack()); + cmd_line->AppendSwitchWithValue("server", "start"); + cmd_line->AppendSwitch("register_cygwin"); + cmd_line->AppendSwitchWithValue("root", root_directory.ToWStringHack()); // For Windows 7, if we start the lighttpd server on the foreground mode, // it will mess up with the command window and cause conhost.exe to crash. To // work around this, we start the http server on the background mode. #if defined(OS_WIN) if (win_util::GetWinVersion() >= win_util::WINVERSION_WIN7) - cmd_line->AppendSwitch(L"run_background"); + cmd_line->AppendSwitch("run_background"); #endif RunCommand(*cmd_line.get()); @@ -326,7 +326,7 @@ void UITest::StartHttpServer(const FilePath& root_directory) { void UITest::StopHttpServer() { scoped_ptr<CommandLine> cmd_line(CreateHttpServerCommandLine()); ASSERT_TRUE(cmd_line.get()); - cmd_line->AppendSwitchWithValue(L"server", L"stop"); + cmd_line->AppendSwitchWithValue("server", "stop"); RunCommand(*cmd_line.get()); } |