Index: components/cronet/android/test/mock_cert_verifier.cc |
diff --git a/components/cronet/android/test/mock_cert_verifier.cc b/components/cronet/android/test/mock_cert_verifier.cc |
index 945f5ea2d67e48cbd807c1d1fe9e7a40578fb60e..10089cdf6d275c9d594156a3ace1a48bafb8e9bb 100644 |
--- a/components/cronet/android/test/mock_cert_verifier.cc |
+++ b/components/cronet/android/test/mock_cert_verifier.cc |
@@ -9,8 +9,6 @@ |
#include "base/android/jni_android.h" |
#include "base/android/jni_array.h" |
-#include "base/android/jni_string.h" |
-#include "base/test/test_support_android.h" |
#include "crypto/sha2.h" |
#include "jni/MockCertVerifier_jni.h" |
#include "net/base/net_errors.h" |
@@ -51,15 +49,9 @@ |
} // namespace |
-static jlong CreateMockCertVerifier( |
- JNIEnv* env, |
- const JavaParamRef<jclass>& jcaller, |
- const JavaParamRef<jobjectArray>& jcerts, |
- const JavaParamRef<jstring>& jtest_data_dir) { |
- base::FilePath test_data_dir( |
- base::android::ConvertJavaStringToUTF8(env, jtest_data_dir)); |
- base::InitAndroidTestPaths(test_data_dir); |
- |
+static jlong CreateMockCertVerifier(JNIEnv* env, |
+ const JavaParamRef<jclass>& jcaller, |
+ const JavaParamRef<jobjectArray>& jcerts) { |
std::vector<std::string> certs; |
base::android::AppendJavaStringArrayToStringVector(env, jcerts, &certs); |
net::MockCertVerifier* mock_cert_verifier = new net::MockCertVerifier(); |