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

Unified Diff: google_apis/drive/drive_api_requests_unittest.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 | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_requests_unittest.cc
diff --git a/google_apis/drive/drive_api_requests_unittest.cc b/google_apis/drive/drive_api_requests_unittest.cc
index ace07f3bfeb5708579661ca4e4fdc56025cabdfb..dfb7fbd745ee72319e97f9adaa92429eeb09d9a3 100644
--- a/google_apis/drive/drive_api_requests_unittest.cc
+++ b/google_apis/drive/drive_api_requests_unittest.cc
@@ -445,8 +445,8 @@ class DriveApiRequestsTest : public testing::Test {
const GURL absolute_url = test_server_.GetURL(request.relative_url);
std::string id;
- if (!test_util::RemovePrefix(
- absolute_url.path(), kTestDownloadPathPrefix, &id) ||
+ if (!test_util::RemovePrefix(absolute_url.path().as_string(),
+ kTestDownloadPathPrefix, &id) ||
absolute_url.query() != kTestDownloadFileQuery) {
return std::unique_ptr<net::test_server::HttpResponse>();
}
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698