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

Unified Diff: components/cronet/android/test/src/org/chromium/net/MockUrlRequestJobFactory.java

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: Address Helen's comments. 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: components/cronet/android/test/src/org/chromium/net/MockUrlRequestJobFactory.java
diff --git a/components/cronet/android/test/src/org/chromium/net/MockUrlRequestJobFactory.java b/components/cronet/android/test/src/org/chromium/net/MockUrlRequestJobFactory.java
index 505db12d415976566576c716e37f46644f81d496..69a024401e2a06a9c215f08b44dc36bdba42bb69 100644
--- a/components/cronet/android/test/src/org/chromium/net/MockUrlRequestJobFactory.java
+++ b/components/cronet/android/test/src/org/chromium/net/MockUrlRequestJobFactory.java
@@ -54,6 +54,14 @@ public final class MockUrlRequestJobFactory {
}
/**
+ * Constructs a mock URL that will request client certificate and return
+ * the string "data" as the response.
+ */
+ public static String getMockUrlForClientCertificateRequest() {
+ return nativeGetMockUrlForClientCertificateRequest();
+ }
+
+ /**
* Constructs a mock URL that will fail with an SSL certificate error.
*/
public static String getMockUrlForSSLCertificateError() {
@@ -67,5 +75,7 @@ public final class MockUrlRequestJobFactory {
private static native String nativeGetMockUrlForData(String data,
int dataRepeatCount);
+ private static native String nativeGetMockUrlForClientCertificateRequest();
+
private static native String nativeGetMockUrlForSSLCertificateError();
}
« no previous file with comments | « components/cronet/android/test/mock_url_request_job_factory.cc ('k') | net/test/url_request/url_request_mock_data_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698