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

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

Issue 1459993003: [Cronet] Continue UrlRequest with NULL certificate if Client cert is requested. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 5 years, 1 month 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
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();

Powered by Google App Engine
This is Rietveld 408576698