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 6eb3c72b86199aeeba02342344b0fbf39f8c1f50..027fa7bde444a7efb7819a81c47ea94975762a23 100644 |
--- a/net/test/url_request/url_request_mock_http_job.h |
+++ b/net/test/url_request/url_request_mock_http_job.h |
@@ -49,8 +49,8 @@ class URLRequestMockHTTPJob : public URLRequestFileJob { |
void GetResponseInfo(HttpResponseInfo* info) override; |
bool IsRedirectResponse(GURL* location, int* http_status_code) override; |
- // Adds the testing URLs to the URLRequestFilter. |
- static void AddUrlHandler( |
+ // Adds the testing URLs to the URLRequestFilter, both under HTTP and HTTPS. |
+ static void AddUrlHandlers( |
const base::FilePath& base_path, |
const scoped_refptr<base::SequencedWorkerPool>& worker_pool); |
@@ -64,6 +64,7 @@ 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 base::FilePath& path); |
+ static GURL GetMockHttpsUrl(const base::FilePath& path); |
// Given the path to a file relative to the path passed to AddUrlHandler(), |
// construct a mock URL that reports |net_error| at given |phase| of the |
@@ -91,6 +92,8 @@ class URLRequestMockHTTPJob : public URLRequestFileJob { |
~URLRequestMockHTTPJob() override; |
private: |
+ static GURL GetMockUrlForScheme(const base::FilePath& path, |
+ const std::string& scheme); |
void GetResponseInfoConst(HttpResponseInfo* info) const; |
void SetHeadersAndStart(const std::string& raw_headers); |
// Checks query part of request url, and reports an error if it matches. |