Chromium Code Reviews| Index: net/test/url_request/url_request_failed_job.h |
| diff --git a/net/test/url_request/url_request_failed_job.h b/net/test/url_request/url_request_failed_job.h |
| index 45b1911edc86b167c2d09268929e5bfc0fc780f5..60ba207cca5fed3198512645b341f4be0f71cf90 100644 |
| --- a/net/test/url_request/url_request_failed_job.h |
| +++ b/net/test/url_request/url_request_failed_job.h |
| @@ -14,6 +14,8 @@ |
| namespace net { |
| +class SSLCertRequestInfo; |
|
svaldez
2015/11/20 16:30:10
unnecessary? Not used in header?
mef
2015/11/20 16:44:06
Done.
|
| + |
| // This class simulates a URLRequestJob failing with a given error code at |
| // a particular phase while trying to connect. |
| class URLRequestFailedJob : public URLRequestJob { |
| @@ -24,7 +26,8 @@ class URLRequestFailedJob : public URLRequestJob { |
| START = 0, |
| READ_SYNC = 1, |
| READ_ASYNC = 2, |
| - MAX_FAILURE_PHASE = 3, |
| + CERT_REQUESTED = 3, |
| + MAX_FAILURE_PHASE = 4, |
| }; |
| URLRequestFailedJob(URLRequest* request, |
| @@ -42,6 +45,8 @@ class URLRequestFailedJob : public URLRequestJob { |
| int ReadRawData(IOBuffer* buf, int buf_size) override; |
| int GetResponseCode() const override; |
| void GetResponseInfo(HttpResponseInfo* info) override; |
| + void ContinueWithCertificate(X509Certificate* client_cert, |
| + SSLPrivateKey* client_private_key) override; |
| // Adds the testing URLs to the URLRequestFilter. |
| static void AddUrlHandler(); |