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

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

Issue 1138993009: Revert of [Android] Refactor the native test wrappers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc b/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
index 6b15e3c5c3068bb6668c9d97c2c2429dfa81bf18..e47b8403f8f8b3cd24abc101373d6b9a56eb7bf2 100644
--- a/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
+++ b/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
@@ -2,23 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/android/base_jni_registrar.h"
#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/shell_jni_registrar.h"
#include "content/shell/app/shell_main_delegate.h"
-#include "testing/android/native_test/native_test_launcher.h"
namespace {
bool RegisterJNI(JNIEnv* env) {
- return base::android::RegisterJni(env) &&
- content::android::RegisterShellJni(env) &&
- content::NestedMessagePumpAndroid::RegisterJni(env) &&
- testing::android::RegisterNativeTestJNI(env);
+ return content::android::RegisterShellJni(env) &&
+ content::NestedMessagePumpAndroid::RegisterJni(env) &&
+ components::RegisterComponentsBrowserTestsAndroid(env);
}
bool Init() {

Powered by Google App Engine
This is Rietveld 408576698