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

Unified Diff: net/test/url_request/url_request_mock_http_job.cc

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan Created 4 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/test/embedded_test_server/request_handler_util.cc ('k') | net/tools/quic/quic_in_memory_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_mock_http_job.cc
diff --git a/net/test/url_request/url_request_mock_http_job.cc b/net/test/url_request/url_request_mock_http_job.cc
index 5317b846ed0ce4f6d04f9e161e6d10e34e57f83c..ae1600215d6ebeb6d58b8e516bcb6411268f7cda 100644
--- a/net/test/url_request/url_request_mock_http_job.cc
+++ b/net/test/url_request/url_request_mock_http_job.cc
@@ -62,7 +62,7 @@ class MockJobInterceptor : public URLRequestInterceptor {
// So first we convert base FilePath to a URL, then append the URL
// path to that, and convert the final URL back to a FilePath.
GURL file_url(FilePathToFileURL(base_path_));
- std::string url = file_url.spec() + request->url().path();
+ std::string url = file_url.spec() + request->url().path().as_string();
base::FilePath file_path;
FileURLToFilePath(GURL(url), &file_path);
return file_path;
« no previous file with comments | « net/test/embedded_test_server/request_handler_util.cc ('k') | net/tools/quic/quic_in_memory_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698