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

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

Issue 2043803003: 👔 Reland #2: Move side-loaded test data /sdcard -> /sdcard/gtestdata (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase atop https://codereview.chromium.org/2041723006 Created 4 years, 6 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
Index: components/cronet/android/test/src/org/chromium/net/MockCertVerifier.java
diff --git a/components/cronet/android/test/src/org/chromium/net/MockCertVerifier.java b/components/cronet/android/test/src/org/chromium/net/MockCertVerifier.java
index bf20bc0f727b806b24e45efeb2d2d7fae6cadf29..dafc97be21103b77ed90edaf4f996db45e0dd9a5 100644
--- a/components/cronet/android/test/src/org/chromium/net/MockCertVerifier.java
+++ b/components/cronet/android/test/src/org/chromium/net/MockCertVerifier.java
@@ -5,6 +5,7 @@
package org.chromium.net;
import org.chromium.base.annotations.JNINamespace;
+import org.chromium.base.test.util.UrlUtils;
/**
* A Java wrapper to supply a net::MockCertVerifier which can be then passed
@@ -22,8 +23,8 @@ public class MockCertVerifier {
* @return a pointer to the newly created net::MockCertVerifier.
*/
public static long createMockCertVerifier(String[] certs) {
- return nativeCreateMockCertVerifier(certs);
+ return nativeCreateMockCertVerifier(certs, UrlUtils.getIsolatedTestRoot());
}
- private static native long nativeCreateMockCertVerifier(String[] certs);
+ private static native long nativeCreateMockCertVerifier(String[] certs, String testDataDir);
}

Powered by Google App Engine
This is Rietveld 408576698