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

Unified Diff: chrome/test/BUILD.gn

Issue 2009983002: Guard dbus component and config with assert(use_dbus) (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Remove unnecessary //dbus when //dbus:test_support exists Created 4 years, 7 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 | « chrome/browser/ui/BUILD.gn ('k') | dbus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/BUILD.gn
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
index 26bb379a84cf9c3a55ea48d126640ca08c45eb9f..6e3e938af909888d2d5f00e737dfb03d06feb1d5 100644
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -1113,10 +1113,12 @@ if (!is_android) {
"//chromeos/ime:gencode",
"//components/arc:arc_test_support",
"//components/user_manager:test_support",
- "//dbus",
- "//dbus:test_support",
"//ui/login:resources",
]
+
+ if (use_dbus) {
+ deps += [ "//dbus:test_support" ]
+ }
} else {
sources -= [
"../browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_apitest.cc",
@@ -2044,11 +2046,10 @@ test("unit_tests") {
deps += [ "//third_party/libsecret" ]
}
if (is_linux && use_aura) {
- deps += [
- "//dbus",
- "//dbus:test_support",
- "//ui/aura:test_support",
- ]
+ deps += [ "//ui/aura:test_support" ]
+ if (use_dbus) {
+ deps += [ "//dbus:test_support" ]
+ }
}
if (is_linux && is_chrome_branded && current_cpu == "x86") {
ldflags = [ "-Wl,--strip-debug" ]
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | dbus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698