| Index: chrome/test/ui/ui_test.cc
|
| diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
|
| index c8063c143c90bbac4ded945519b442228373354a..6678b67cf5fd062ad6e89c4b28155f87c43df0d9 100644
|
| --- a/chrome/test/ui/ui_test.cc
|
| +++ b/chrome/test/ui/ui_test.cc
|
| @@ -549,9 +549,10 @@ void UITest::StartHttpServerWithPort(const FilePath& root_directory,
|
| int port) {
|
| scoped_ptr<CommandLine> cmd_line(CreateHttpServerCommandLine());
|
| ASSERT_TRUE(cmd_line.get());
|
| - cmd_line->AppendSwitchASCII("server", "start");
|
| - cmd_line->AppendSwitch("register_cygwin");
|
| - cmd_line->AppendSwitchPath("root", root_directory);
|
| + cmd_line->AppendArg("--server=start");
|
| + cmd_line->AppendArg("--register_cygwin");
|
| + cmd_line->AppendArgNative(FILE_PATH_LITERAL("--root=") +
|
| + root_directory.value());
|
|
|
| FilePath layout_tests_dir;
|
| PathService::Get(base::DIR_SOURCE_ROOT, &layout_tests_dir);
|
| @@ -560,18 +561,19 @@ void UITest::StartHttpServerWithPort(const FilePath& root_directory,
|
| .AppendASCII("data")
|
| .AppendASCII("layout_tests")
|
| .AppendASCII("LayoutTests");
|
| - cmd_line->AppendSwitchPath("layout_tests_dir", layout_tests_dir);
|
| + cmd_line->AppendArgNative(FILE_PATH_LITERAL("--layout_tests_dir=") +
|
| + layout_tests_dir.value());
|
|
|
| // 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 (base::win::GetVersion() >= base::win::VERSION_WIN7)
|
| - cmd_line->AppendSwitch("run_background");
|
| + cmd_line->AppendArg("--run_background");
|
| #endif
|
|
|
| if (port)
|
| - cmd_line->AppendSwitchASCII("port", base::IntToString(port));
|
| + cmd_line->AppendArg("--port=" + base::IntToString(port));
|
|
|
| #if defined(OS_WIN)
|
| // TODO(phajdan.jr): is this needed?
|
| @@ -587,7 +589,7 @@ void UITest::StartHttpServerWithPort(const FilePath& root_directory,
|
| void UITest::StopHttpServer() {
|
| scoped_ptr<CommandLine> cmd_line(CreateHttpServerCommandLine());
|
| ASSERT_TRUE(cmd_line.get());
|
| - cmd_line->AppendSwitchASCII("server", "stop");
|
| + cmd_line->AppendArg("--server=stop");
|
|
|
| #if defined(OS_WIN)
|
| // TODO(phajdan.jr): is this needed?
|
|
|