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

Unified Diff: net/url_request/url_request_test_job.h

Issue 25772002: Allows prefetch requests to live beyond the renderer by delaying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 2 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/loader/resource_scheduler_unittest.cc ('k') | net/url_request/url_request_test_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_job.h
diff --git a/net/url_request/url_request_test_job.h b/net/url_request/url_request_test_job.h
index d7f33d70400d1c96601d63d26eca7b5bb6870946..717cc0f2d8828edcec816732b7fb5fcb72fda918 100644
--- a/net/url_request/url_request_test_job.h
+++ b/net/url_request/url_request_test_job.h
@@ -18,7 +18,7 @@ namespace net {
// probably want to inherit from it to set up the state you want. Then install
// it as the protocol handler for the "test" scheme.
//
-// It will respond to three URLs, which you can retrieve using the test_url*
+// It will respond to several URLs, which you can retrieve using the test_url*
// getters, which will in turn respond with the corresponding responses returned
// by test_data*. Any other URLs that begin with "test:" will return an error,
// which might also be useful, you can use test_url_error() to retreive a
@@ -57,18 +57,21 @@ class NET_EXPORT_PRIVATE URLRequestTestJob : public URLRequestJob {
const std::string& response_data,
bool auto_advance);
- // The three canned URLs this handler will respond to without having been
+ // The canned URLs this handler will respond to without having been
// explicitly initialized with response headers and data.
// FIXME(brettw): we should probably also have a redirect one
static GURL test_url_1();
static GURL test_url_2();
static GURL test_url_3();
+ static GURL test_url_4();
static GURL test_url_error();
+ static GURL test_url_redirect_to_url_2();
// The data that corresponds to each of the URLs above
static std::string test_data_1();
static std::string test_data_2();
static std::string test_data_3();
+ static std::string test_data_4();
// The headers that correspond to each of the URLs above
static std::string test_headers();
@@ -76,6 +79,9 @@ class NET_EXPORT_PRIVATE URLRequestTestJob : public URLRequestJob {
// The headers for a redirect response
static std::string test_redirect_headers();
+ // The headers for a redirect response to the second test url.
+ static std::string test_redirect_to_url_2_headers();
+
// The headers for a server error response
static std::string test_error_headers();
« no previous file with comments | « content/browser/loader/resource_scheduler_unittest.cc ('k') | net/url_request/url_request_test_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698