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

Unified Diff: chrome/test/selenium/selenium_test.cc

Issue 173418: Avoids the use of ToWStringHack in a few places.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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/privacy_blacklist/blacklist_unittest.cc ('k') | chrome/test/unit/chrome_test_suite.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/selenium/selenium_test.cc
===================================================================
--- chrome/test/selenium/selenium_test.cc (revision 24379)
+++ chrome/test/selenium/selenium_test.cc (working copy)
@@ -92,17 +92,17 @@
};
*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");
+ 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(FilePath::FromWStringHack(test_path)));
+ GURL test_url(net::FilePathToFileURL(test_path));
scoped_refptr<TabProxy> tab(GetActiveTab());
tab->NavigateToURL(test_url);
« no previous file with comments | « chrome/browser/privacy_blacklist/blacklist_unittest.cc ('k') | chrome/test/unit/chrome_test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698