Chromium Code Reviews| Index: content/test/net/url_request_failed_job.h |
| =================================================================== |
| --- content/test/net/url_request_failed_job.h (revision 225096) |
| +++ content/test/net/url_request_failed_job.h (working copy) |
| @@ -26,12 +26,15 @@ |
| // Adds the testing URLs to the net::URLRequestFilter. |
| static void AddUrlHandler(); |
| + static void AddUrlHandler(const std::string& hostname); |
|
mmenke
2013/09/27 14:44:05
Function overloading, while done a fair bit in Chr
yuusuke
2013/09/28 10:42:50
Done.
|
| // Given a net error code, constructs a mock URL that will return that error |
| // asynchronously when started. |net_error| must be a valid net error code |
| // other than net::OK and net::ERR_IO_PENDING. |
| static GURL GetMockHttpUrl(int net_error); |
| static GURL GetMockHttpsUrl(int net_error); |
| + static GURL GetMockHttpUrl(int net_error, const std::string& hostname); |
|
mmenke
2013/09/27 14:44:05
Suggest a comment above this line along the lines
yuusuke
2013/09/28 10:42:50
Done.
|
| + static GURL GetMockHttpsUrl(int net_error, const std::string& hostname); |
|
mmenke
2013/09/27 14:44:05
Again, suggest adding a "ForHostname" to the end o
yuusuke
2013/09/28 10:42:50
Done.
|
| private: |
| static net::URLRequestJob* Factory(net::URLRequest* request, |