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

Unified Diff: chrome/test/BUILD.gn

Issue 673663004: Android: Do not build any extensions code except for extensions_constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zoom_controller
Patch Set: fix merge conflict Created 6 years, 2 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: chrome/test/BUILD.gn
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
index ef179040f9a12c5aff7fcfa914e3a575464c13e0..e49cccd0b4de9217f47838c7bf6bcdd9bd3f9e77 100644
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -7,6 +7,7 @@ import("//build/config/ui.gni")
# GYP version: chrome/chrome_tests_unit.gypi:test_support_common
source_set("test_support") {
+ defines = []
testonly = true
sources = [
@@ -109,7 +110,6 @@ source_set("test_support") {
if (!is_ios) {
deps += [
- "//chrome/common/extensions/api",
"//chrome/plugin",
"//chrome/renderer",
"//chrome/utility",
@@ -122,7 +122,6 @@ source_set("test_support") {
"//components/captive_portal:test_support",
"//components/infobars/core",
"//components/sessions:test_support",
- "//extensions:test_support",
"//google_apis:test_support",
"//ipc:test_support",
"//media:test_support",
@@ -164,6 +163,17 @@ source_set("test_support") {
if (toolkit_views) {
deps += [ "//ui/views:test_support" ]
}
+
+ if (enable_background) {
+ defines += [ "ENABLE_BACKGROUND=1" ]
+ }
+
+ if (enable_extensions) {
+ deps += [
+ "//chrome/common/extensions/api",
+ "//extensions:test_support",
+ ]
+ }
}
source_set("test_support_unit") {
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client_unittest.cc ('k') | chrome/test/base/chrome_unit_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698