diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 20:00:13 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 20:00:13 +0000 |
commit | ef5ff1b40f1024d834620f5cede62dfd4aea6e0c (patch) | |
tree | 3935dae6b7f1ab45c01bc8f66d6bfee7338d9a9a /chrome/test/ui/omnibox_uitest.cc | |
parent | 0bbb1b1f9842366babce756ab2f1713832be63de (diff) | |
download | chromium_src-ef5ff1b40f1024d834620f5cede62dfd4aea6e0c.zip chromium_src-ef5ff1b40f1024d834620f5cede62dfd4aea6e0c.tar.gz chromium_src-ef5ff1b40f1024d834620f5cede62dfd4aea6e0c.tar.bz2 |
Fix to use FilePath version of PathService::Get.
BUG=None
TEST=None
Original Review URL: http://codereview.chromium.org/174189
Patch from Thiago Farina <thiago.farina@gmail.com>.
Review URL: http://codereview.chromium.org/193047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/omnibox_uitest.cc')
-rw-r--r-- | chrome/test/ui/omnibox_uitest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/ui/omnibox_uitest.cc b/chrome/test/ui/omnibox_uitest.cc index d583575..af94102 100644 --- a/chrome/test/ui/omnibox_uitest.cc +++ b/chrome/test/ui/omnibox_uitest.cc @@ -136,12 +136,12 @@ TEST_F(OmniboxTest, Measure) { if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunOmniboxTest)) return; - std::wstring omnibox_tests_path; + FilePath omnibox_tests_path; PathService::Get(chrome::DIR_TEST_DATA, &omnibox_tests_path); - file_util::AppendToPath(&omnibox_tests_path, L"omnibox_tests.xml"); + omnibox_tests_path = omnibox_tests_path.AppendASCII("omnibox_tests.xml"); XmlReader reader; - ASSERT_TRUE(reader.LoadFile(WideToASCII(omnibox_tests_path))); + ASSERT_TRUE(reader.LoadFile(WideToASCII(omnibox_tests_path.ToWStringHack()))); while (reader.SkipToElement()) { ASSERT_EQ("omnibox_tests", reader.NodeName()); reader.Read(); |