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

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

Issue 845973005: [New Tab Page] Change the mechanism to intercept online NTP errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved to profile_io_data Created 5 years, 11 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 | « content/browser/plugin_browsertest.cc ('k') | 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 6eb3c72b86199aeeba02342344b0fbf39f8c1f50..6e454f410e02c82047e70a51aec861856050f8f4 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
« no previous file with comments | « content/browser/plugin_browsertest.cc ('k') | 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