diff options
Diffstat (limited to 'chrome/test/selenium/selenium_test.cc')
-rw-r--r-- | chrome/test/selenium/selenium_test.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/test/selenium/selenium_test.cc b/chrome/test/selenium/selenium_test.cc index f2ef32d..f5710f7 100644 --- a/chrome/test/selenium/selenium_test.cc +++ b/chrome/test/selenium/selenium_test.cc @@ -92,17 +92,17 @@ class SeleniumTest : public UITest { }; *failed = kBogusFailures[base::RandInt(0, 2)]; #else - std::wstring test_path; + FilePath test_path; PathService::Get(chrome::DIR_TEST_DATA, &test_path); - file_util::UpOneDirectory(&test_path); - file_util::UpOneDirectory(&test_path); - file_util::UpOneDirectory(&test_path); - file_util::AppendToPath(&test_path, L"data"); - file_util::AppendToPath(&test_path, L"selenium_core"); - file_util::AppendToPath(&test_path, L"core"); - file_util::AppendToPath(&test_path, L"TestRunner.html"); - - GURL test_url(net::FilePathToFileURL(FilePath::FromWStringHack(test_path))); + test_path = test_path.DirName(); + test_path = test_path.DirName(); + test_path = test_path.DirName(); + test_path = test_path.AppendASCII("data"); + test_path = test_path.AppendASCII("selenium_core"); + test_path = test_path.AppendASCII("core"); + test_path = test_path.AppendASCII("TestRunner.html"); + + GURL test_url(net::FilePathToFileURL(test_path)); scoped_refptr<TabProxy> tab(GetActiveTab()); tab->NavigateToURL(test_url); |