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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 12489: Remove file_util::kPathSeparator from posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « net/url_request/url_request_unittest.h ('k') | webkit/glue/dom_serializer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
===================================================================
--- net/url_request/url_request_unittest.cc (revision 6039)
+++ net/url_request/url_request_unittest.cc (working copy)
@@ -395,17 +395,13 @@
}
TEST_F(URLRequestTest, FileTest) {
- std::wstring app_path;
+ FilePath app_path;
PathService::Get(base::FILE_EXE, &app_path);
+ GURL app_url = net::FilePathToFileURL(app_path.ToWStringHack());
- std::string app_url = WideToUTF8(app_path);
- std::replace(app_url.begin(), app_url.end(),
- file_util::kPathSeparator, L'/');
- app_url.insert(0, "file:///");
-
TestDelegate d;
{
- TestURLRequest r(GURL(app_url), &d);
+ TestURLRequest r(app_url, &d);
r.Start();
EXPECT_TRUE(r.is_pending());
« no previous file with comments | « net/url_request/url_request_unittest.h ('k') | webkit/glue/dom_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698