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

Unified Diff: components/test/run_all_unittests.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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/run_all_unittests.cc
diff --git a/components/test/run_all_unittests.cc b/components/test/run_all_unittests.cc
index ce962d3adfe264dc299a949b2c5e4e211d91406b..a82d4e2446d106d1822425bdd3d387b7367e95c7 100644
--- a/components/test/run_all_unittests.cc
+++ b/components/test/run_all_unittests.cc
@@ -28,12 +28,10 @@
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
#include "components/gcm_driver/instance_id/android/component_jni_registrar.h"
-#include "components/gcm_driver/instance_id/scoped_use_fake_instance_id_android.h"
#include "components/invalidation/impl/android/component_jni_registrar.h"
#include "components/policy/core/browser/android/component_jni_registrar.h"
#include "components/safe_json/android/component_jni_registrar.h"
#include "components/signin/core/browser/android/component_jni_registrar.h"
-#include "components/web_restrictions/browser/mock_web_restrictions_client.h"
#include "content/public/test/test_utils.h"
#include "net/android/net_jni_registrar.h"
#include "ui/base/android/ui_base_jni_registrar.h"
@@ -64,14 +62,12 @@ class ComponentsTestSuite : public base::TestSuite {
ASSERT_TRUE(content::RegisterJniForTesting(env));
ASSERT_TRUE(gfx::android::RegisterJni(env));
ASSERT_TRUE(instance_id::android::RegisterInstanceIDJni(env));
- ASSERT_TRUE(instance_id::ScopedUseFakeInstanceIDAndroid::RegisterJni(env));
ASSERT_TRUE(invalidation::android::RegisterInvalidationJni(env));
ASSERT_TRUE(policy::android::RegisterPolicy(env));
ASSERT_TRUE(safe_json::android::RegisterSafeJsonJni(env));
ASSERT_TRUE(signin::android::RegisterSigninJni(env));
ASSERT_TRUE(net::android::RegisterJni(env));
ASSERT_TRUE(ui::android::RegisterJni(env));
- ASSERT_TRUE(web_restrictions::MockWebRestrictionsClient::Register(env));
#endif
ui::RegisterPathProvider();

Powered by Google App Engine
This is Rietveld 408576698