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

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

Issue 1143053006: Add std::string versions of URLRequestMockHTTPJob::GetMockUrl and GetMockHttpsUrl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | net/test/url_request/url_request_mock_http_job.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.h
diff --git a/net/test/url_request/url_request_mock_http_job.h b/net/test/url_request/url_request_mock_http_job.h
index 06c31009c8b13c61bcacca71de3df3c1f1466494..70839f5292ffd24d5af535e02de96e902a81f7a3 100644
--- a/net/test/url_request/url_request_mock_http_job.h
+++ b/net/test/url_request/url_request_mock_http_job.h
@@ -48,6 +48,11 @@ class URLRequestMockHTTPJob : public URLRequestFileJob {
// Given the path to a file relative to the path passed to AddUrlHandler(),
// construct a mock URL.
+ static GURL GetMockUrl(const std::string& path);
+ static GURL GetMockHttpsUrl(const std::string& path);
+
+ // Like above, but takes a FilePath. These methods are deprecated. Prefer the
+ // std::string versions. See http://crbug.com/496936.
static GURL GetMockUrl(const base::FilePath& path);
static GURL GetMockHttpsUrl(const base::FilePath& path);
« no previous file with comments | « no previous file | net/test/url_request/url_request_mock_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698