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

Unified Diff: components/test/run_all_unittests.cc

Issue 1684153002: Web restrictions component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use source_set for test_support Created 4 years, 10 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
« no previous file with comments | « components/components_tests.gyp ('k') | components/web_restrictions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test/run_all_unittests.cc
diff --git a/components/test/run_all_unittests.cc b/components/test/run_all_unittests.cc
index 4263b424ad5bbfcf8bad578f47f9e225408d3447..2e5a89375a0017d63810fa3c1f0b6b2038a33156 100644
--- a/components/test/run_all_unittests.cc
+++ b/components/test/run_all_unittests.cc
@@ -29,6 +29,7 @@
#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"
@@ -60,14 +61,15 @@ class ComponentsTestSuite : public base::TestSuite {
#if defined(OS_ANDROID)
// Register JNI bindings for android.
JNIEnv* env = base::android::AttachCurrentThread();
+ ASSERT_TRUE(content::RegisterJniForTesting(env));
ASSERT_TRUE(gfx::android::RegisterJni(env));
- ASSERT_TRUE(ui::android::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(content::RegisterJniForTesting(env));
+ ASSERT_TRUE(ui::android::RegisterJni(env));
+ ASSERT_TRUE(web_restrictions::MockWebRestrictionsClient::Register(env));
#endif
ui::RegisterPathProvider();
« no previous file with comments | « components/components_tests.gyp ('k') | components/web_restrictions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698