[go: nahoru, domu]

Remove unneeded //chrome dependency from sync_integration_tests_support.

Also, assert_no_deps checks to the tests from chromium_builder_perf collection for them being from a dependency on //chrome.

This should speed up 'LTO Perf' builder, as linking some of the tests will start earlier.

BUG=453195
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review-Url: https://codereview.chromium.org/1968803003
Cr-Commit-Position: refs/heads/master@{#393161}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index b1f2a14..c8fff822 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -1000,6 +1000,9 @@
     "//ui/gl",
     "//ui/gl:test_support",
   ]
+
+  # This target should not require the Chrome executable to run.
+  assert_no_deps = [ "//chrome" ]
 }
 # When adding support for isolates, please have a look at run-time dependencies
 # in the cc_unittests_run target in cc_tests.gyp.
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
index fb9c14d2..befd4ac 100644
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -651,7 +651,6 @@
     deps = [
       ":test_support",
       "//base",
-      "//chrome",
       "//components/invalidation/impl",
       "//components/invalidation/impl:test_support",
       "//content/test:browsertest_base",
@@ -1549,6 +1548,9 @@
     if (toolkit_views) {
       deps += [ "//ui/views" ]
     }
+
+    # This target should not require the Chrome executable to run.
+    assert_no_deps = [ "//chrome" ]
   }
 
   # Executable to measure time to load libraries.
@@ -1570,6 +1572,9 @@
         "//third_party/widevine/cdm:widevinecdmadapter",
       ]
     }
+
+    # This target should not require the Chrome executable to run.
+    assert_no_deps = [ "//chrome" ]
   }
 }
 
@@ -2309,6 +2314,9 @@
     if (!is_mac) {
       sources -= [ "perf/mach_ports_performancetest.cc" ]
     }
+
+    # This target should not require the Chrome executable to run.
+    assert_no_deps = [ "//chrome" ]
   }
 }
 
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index 608e4b7..b5db108 100644
--- a/gpu/BUILD.gn
+++ b/gpu/BUILD.gn
@@ -389,4 +389,7 @@
     "//ui/gfx/geometry",
     "//ui/gl",
   ]
+
+  # This target should not require the Chrome executable to run.
+  assert_no_deps = [ "//chrome" ]
 }
diff --git a/media/BUILD.gn b/media/BUILD.gn
index 91d416e..6ac15c2 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -711,6 +711,9 @@
   if (media_use_ffmpeg) {
     deps += [ "//third_party/ffmpeg" ]  # Direct dependency required to inherit config.
   }
+
+  # This target should not require the Chrome executable to run.
+  assert_no_deps = [ "//chrome" ]
 }
 
 # For running the subset of media_unittests that might require audio hardware
diff --git a/media/midi/BUILD.gn b/media/midi/BUILD.gn
index 62719bd8..cfeb0399 100644
--- a/media/midi/BUILD.gn
+++ b/media/midi/BUILD.gn
@@ -195,4 +195,7 @@
   if (use_x11) {
     deps += [ "//tools/xdisplaycheck" ]
   }
+
+  # This target should not require the Chrome executable to run.
+  assert_no_deps = [ "//chrome" ]
 }