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

Unified Diff: chrome/test/ui/omnibox_uitest.cc

Issue 193047: Fix to use FilePath version of PathService::Get.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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/common/json_value_serializer_perftest.cc ('k') | net/url_request/url_request_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/omnibox_uitest.cc
===================================================================
--- chrome/test/ui/omnibox_uitest.cc (revision 25670)
+++ chrome/test/ui/omnibox_uitest.cc (working copy)
@@ -136,12 +136,12 @@
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();
« no previous file with comments | « chrome/common/json_value_serializer_perftest.cc ('k') | net/url_request/url_request_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698