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

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: Address comments 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
« no previous file with comments | « build/config/ios/rules.gni ('k') | ios/build/config.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/BUILD.gn
diff --git a/components/BUILD.gn b/components/BUILD.gn
index 67d9218500ebf0394158d9f1869608d2fc548938..54f2799d6806ee0ca8dbf8383fe1958b9e91225d 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
@@ -264,6 +268,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698