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

Unified Diff: components/BUILD.gn

Issue 1812823002: [iOS] Define global assert_no_deps and use it to prevent regressions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@components-invalidation
Patch Set: Created 4 years, 9 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/BUILD.gn
diff --git a/components/BUILD.gn b/components/BUILD.gn
index de57864b2c6c11e25fcf189f1b3ace53e196149f..c0581af0cf65d22bc3dc0814afd2a686fb55b55b 100644
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -11,6 +11,10 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
+if (is_ios) {
+ import("//ios/build/config.gni")
+}
+
# To add a unit test to this target, make a "unit_test" source_set in your
# component (it's important to use a source_set instead of a static library or
# no tests will run) and add a reference here. You can add more than one unit
@@ -261,6 +265,10 @@ test("components_unittests") {
if (safe_browsing_mode == 2) {
deps += [ "//components/safe_browsing_db:unit_tests_mobile" ]
}
+
+ if (is_ios) {
+ assert_no_deps = ios_assert_no_deps
+ }
}
repack("components_tests_pak") {
« no previous file with comments | « build/config/ios/rules.gni ('k') | ios/build/config.gni » ('j') | ios/build/config.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698