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

Unified Diff: components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc

Issue 1075783002: Enable components_browsertests on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN build and add java dependency to components/test/DEPS Created 5 years, 8 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/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
diff --git a/content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc b/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
similarity index 85%
copy from content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc
copy to components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
index 26f93d4a1f2bfc80442f4a5525bf50d1b65b0f5a..e47b8403f8f8b3cd24abc101373d6b9a56eb7bf2 100644
--- a/content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc
+++ b/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
@@ -4,10 +4,10 @@
#include "base/android/jni_android.h"
#include "base/bind.h"
+#include "components/test/android/browsertests_apk/components_browser_tests_android.h"
#include "content/public/app/content_jni_onload.h"
#include "content/public/app/content_main.h"
#include "content/public/test/nested_message_pump_android.h"
-#include "content/shell/android/browsertests_apk/content_browser_tests_android.h"
#include "content/shell/android/shell_jni_registrar.h"
#include "content/shell/app/shell_main_delegate.h"
@@ -15,8 +15,8 @@ namespace {
bool RegisterJNI(JNIEnv* env) {
return content::android::RegisterShellJni(env) &&
- content::NestedMessagePumpAndroid::RegisterJni(env) &&
- content::RegisterContentBrowserTestsAndroid(env);
+ content::NestedMessagePumpAndroid::RegisterJni(env) &&
+ components::RegisterComponentsBrowserTestsAndroid(env);
}
bool Init() {
@@ -26,7 +26,6 @@ bool Init() {
} // namespace
-
// This is called by the VM when the shared library is first loaded.
JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
std::vector<base::android::RegisterCallback> register_callbacks;

Powered by Google App Engine
This is Rietveld 408576698