diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 13:15:47 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 13:15:47 +0000 |
commit | ad44ddb7598b1864f12861fd95fa4be2c8563a03 (patch) | |
tree | c1b3c0ce23d8f80d4a9ae69ae16545ed79082847 /chrome/test/selenium | |
parent | 029e76c402c7e86939afbf81ca6c805bdc342438 (diff) | |
download | chromium_src-ad44ddb7598b1864f12861fd95fa4be2c8563a03.zip chromium_src-ad44ddb7598b1864f12861fd95fa4be2c8563a03.tar.gz chromium_src-ad44ddb7598b1864f12861fd95fa4be2c8563a03.tar.bz2 |
file_util: Get rid of most uses of UpOneDirectory.
(Remaining one usage to be fixed, until we can remove it completly.)
BUG=24672
TEST=trybots
Review URL: http://codereview.chromium.org/2841039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/selenium')
-rw-r--r-- | chrome/test/selenium/selenium_test.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/chrome/test/selenium/selenium_test.cc b/chrome/test/selenium/selenium_test.cc index 4811167..0f688cd 100644 --- a/chrome/test/selenium/selenium_test.cc +++ b/chrome/test/selenium/selenium_test.cc @@ -31,7 +31,7 @@ namespace { // This file is a comma separated list of tests that are currently failing. -const wchar_t kExpectedFailuresFileName[] = L"expected_failures.txt"; +const char kExpectedFailuresFileName[] = "expected_failures.txt"; class SeleniumTest : public UITest { public: @@ -66,18 +66,17 @@ class SeleniumTest : public UITest { } // The results file is in trunk/chrome/test/selenium/ - std::wstring GetResultsFilePath() { - std::wstring results_path; + FilePath GetResultsFilePath() { + FilePath results_path; PathService::Get(chrome::DIR_TEST_DATA, &results_path); - file_util::UpOneDirectory(&results_path); - file_util::AppendToPath(&results_path, L"selenium"); - - file_util::AppendToPath(&results_path, kExpectedFailuresFileName); + results_path = results_path.DirName(); + results_path = results_path.AppendASCII("selenium"); + results_path = results_path.AppendASCII(kExpectedFailuresFileName); return results_path; } bool ReadExpectedResults(std::string* results) { - std::wstring results_path = GetResultsFilePath(); + FilePath results_path = GetResultsFilePath(); return file_util::ReadFileToString(results_path, results); } |