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

Side by Side Diff: chrome/test/BUILD.gn

Issue 1439973004: [PoC] Reformat all BUILD.gn and *.gni files with new gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-sort-deps
Patch Set: Synchronize with new version of gn patch Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//chrome/chrome_tests.gni") 10 import("//chrome/chrome_tests.gni")
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 "//components/metrics:test_support", 111 "//components/metrics:test_support",
112 "//components/omnibox/browser:test_support", 112 "//components/omnibox/browser:test_support",
113 "//components/password_manager/core/browser:test_support", 113 "//components/password_manager/core/browser:test_support",
114 "//components/pref_registry:test_support", 114 "//components/pref_registry:test_support",
115 "//components/rappor:test_support", 115 "//components/rappor:test_support",
116 "//components/search_engines:test_support", 116 "//components/search_engines:test_support",
117 "//components/signin/core/browser:test_support", 117 "//components/signin/core/browser:test_support",
118 "//components/sync_driver:test_support", 118 "//components/sync_driver:test_support",
119 "//components/sync_sessions:test_support", 119 "//components/sync_sessions:test_support",
120 "//components/syncable_prefs:test_support", 120 "//components/syncable_prefs:test_support",
121 "//components/ui/zoom:test_support",
121 "//components/update_client:test_support", 122 "//components/update_client:test_support",
122 "//components/ui/zoom:test_support",
123 "//content/public/app:both", 123 "//content/public/app:both",
124 "//ui/gfx:test_support",
125 "//net", 124 "//net",
126 "//net:test_support", 125 "//net:test_support",
127 "//skia", 126 "//skia",
128 "//sql", 127 "//sql",
129 "//sql:test_support", 128 "//sql:test_support",
130 "//sync", 129 "//sync",
131 "//testing/gmock", 130 "//testing/gmock",
132 "//testing/gtest", 131 "//testing/gtest",
133 "//third_party/zlib", 132 "//third_party/zlib",
133 "//ui/gfx:test_support",
134 "//ui/message_center:test_support", 134 "//ui/message_center:test_support",
135 ] 135 ]
136 136
137 if (!is_ios) { 137 if (!is_ios) {
138 deps += [ 138 deps += [
139 "//chrome/child", 139 "//chrome/child",
140 "//chrome/plugin", 140 "//chrome/plugin",
141 "//chrome/renderer", 141 "//chrome/renderer",
142 "//chrome/utility", 142 "//chrome/utility",
143 "//content/public/child",
144 "//content/public/common",
145 "//content/public/plugin",
146 "//content/public/renderer",
147 "//content/public/utility",
148 "//components/autofill/core/browser:test_support", 143 "//components/autofill/core/browser:test_support",
149 "//components/captive_portal:test_support", 144 "//components/captive_portal:test_support",
150 "//components/guest_view/browser:test_support", 145 "//components/guest_view/browser:test_support",
151 "//components/infobars/core", 146 "//components/infobars/core",
152 "//components/sessions:test_support", 147 "//components/sessions:test_support",
153 "//components/user_manager:test_support", 148 "//components/user_manager:test_support",
154 "//components/web_resource:test_support", 149 "//components/web_resource:test_support",
150 "//content/public/child",
151 "//content/public/common",
152 "//content/public/plugin",
153 "//content/public/renderer",
154 "//content/public/utility",
155 "//google_apis:test_support", 155 "//google_apis:test_support",
156 "//ipc:test_support", 156 "//ipc:test_support",
157 "//media:test_support", 157 "//media:test_support",
158 "//ppapi/shared_impl", 158 "//ppapi/shared_impl",
159 "//sql:test_support", 159 "//sql:test_support",
160 "//third_party/leveldatabase", 160 "//third_party/leveldatabase",
161 "//ui/base", 161 "//ui/base",
162 "//ui/events:events_base", 162 "//ui/events:events_base",
163 "//ui/gl", 163 "//ui/gl",
164 ] 164 ]
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 data += [ "$root_out_dir/libppapi_tests.so" ] 322 data += [ "$root_out_dir/libppapi_tests.so" ]
323 } 323 }
324 324
325 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 325 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
326 ldflags = [] 326 ldflags = []
327 327
328 deps = [ 328 deps = [
329 ":test_support", 329 ":test_support",
330 ":test_support_ui", 330 ":test_support_ui",
331 "//base/allocator", 331 "//base/allocator",
332 "//chrome:packed_extra_resources",
333 "//chrome:packed_resources",
334 "//chrome:resources",
335 "//chrome:strings",
332 "//chrome/browser", 336 "//chrome/browser",
333 "//chrome/browser/devtools", 337 "//chrome/browser/devtools",
334 "//chrome/renderer", 338 "//chrome/renderer",
335 "//chrome:resources",
336 "//chrome:strings",
337 "//chrome:packed_extra_resources",
338 "//chrome:packed_resources",
339 "//components/resources", 339 "//components/resources",
340 "//content/app/resources", 340 "//content/app/resources",
341 "//crypto:platform", 341 "//crypto:platform",
342 "//crypto:test_support", 342 "//crypto:test_support",
343 "//google_apis:test_support", 343 "//google_apis:test_support",
344 "//net", 344 "//net",
345 "//net:net_resources", 345 "//net:net_resources",
346 "//net:test_support", 346 "//net:test_support",
347 "//skia", 347 "//skia",
348 "//sync", 348 "//sync",
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 ] 578 ]
579 deps = [ 579 deps = [
580 ":test_support", 580 ":test_support",
581 "//base", 581 "//base",
582 "//chrome", 582 "//chrome",
583 "//components/invalidation/impl", 583 "//components/invalidation/impl",
584 "//components/invalidation/impl:test_support", 584 "//components/invalidation/impl:test_support",
585 "//net", 585 "//net",
586 "//skia", 586 "//skia",
587 "//sync", 587 "//sync",
588 "//sync:test_support_sync_fake_server",
588 "//sync:test_support_sync_testserver", 589 "//sync:test_support_sync_testserver",
589 "//sync:test_support_sync_fake_server",
590 "//ui/app_list:test_support", 590 "//ui/app_list:test_support",
591 ] 591 ]
592 592
593 if (is_mac) { 593 if (is_mac) {
594 sources -= [ 594 sources -= [
595 "../browser/sync/test/integration/dictionary_helper.cc", 595 "../browser/sync/test/integration/dictionary_helper.cc",
596 "../browser/sync/test/integration/dictionary_helper.h", 596 "../browser/sync/test/integration/dictionary_helper.h",
597 "../browser/sync/test/integration/dictionary_load_observer.cc", 597 "../browser/sync/test/integration/dictionary_load_observer.cc",
598 "../browser/sync/test/integration/dictionary_load_observer.h", 598 "../browser/sync/test/integration/dictionary_load_observer.h",
599 ] 599 ]
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 "//chrome:packed_extra_resources", 1317 "//chrome:packed_extra_resources",
1318 "//chrome:packed_resources", 1318 "//chrome:packed_resources",
1319 "//chrome:resources", 1319 "//chrome:resources",
1320 "//chrome:strings", 1320 "//chrome:strings",
1321 "//chrome/common", 1321 "//chrome/common",
1322 "//chrome/renderer", 1322 "//chrome/renderer",
1323 "//crypto:platform", 1323 "//crypto:platform",
1324 "//sync", 1324 "//sync",
1325 "//testing/gmock", 1325 "//testing/gmock",
1326 "//testing/gtest", 1326 "//testing/gtest",
1327 "//third_party/WebKit/public:blink",
1327 "//third_party/icu", 1328 "//third_party/icu",
1328 "//third_party/leveldatabase", 1329 "//third_party/leveldatabase",
1329 "//third_party/WebKit/public:blink",
1330 ] 1330 ]
1331 1331
1332 data_deps = [ 1332 data_deps = [
1333 "//third_party/mesa:osmesa", 1333 "//third_party/mesa:osmesa",
1334 ] 1334 ]
1335 1335
1336 if (cld_version == 2) { 1336 if (cld_version == 2) {
1337 # Language detection is irrelevant to sync, so it can depend on any 1337 # Language detection is irrelevant to sync, so it can depend on any
1338 # implementation for CLD2. Dynamic is smaller, so go with dynamic. 1338 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1339 deps += [ "//third_party/cld_2:cld2_dynamic" ] 1339 deps += [ "//third_party/cld_2:cld2_dynamic" ]
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 # dependencies block below, rather than here. 1538 # dependencies block below, rather than here.
1539 # Unit tests should only depend on: 1539 # Unit tests should only depend on:
1540 # 1) everything that the chrome binaries depend on: 1540 # 1) everything that the chrome binaries depend on:
1541 "//chrome:browser_dependencies", 1541 "//chrome:browser_dependencies",
1542 "//chrome:child_dependencies", 1542 "//chrome:child_dependencies",
1543 1543
1544 # 2) test-specific support libraries: 1544 # 2) test-specific support libraries:
1545 ":test_support_unit", 1545 ":test_support_unit",
1546 "//base/test:test_support", 1546 "//base/test:test_support",
1547 "//chrome/test:test_support", 1547 "//chrome/test:test_support",
1548 "//components/content_settings/core/test:test_support",
1548 "//components/resources", 1549 "//components/resources",
1549 "//components/content_settings/core/test:test_support", 1550 "//content/public/app:both",
1550 "//content/test:test_support", 1551 "//content/test:test_support",
1551 "//content/public/app:both",
1552 "//crypto:platform", 1552 "//crypto:platform",
1553 "//crypto:test_support", 1553 "//crypto:test_support",
1554 "//net", 1554 "//net",
1555 "//net:test_support", 1555 "//net:test_support",
1556 "//sync:test_support_sync_api", 1556 "//sync:test_support_sync_api",
1557 "//sync:test_support_sync_core", 1557 "//sync:test_support_sync_core",
1558 "//sync:test_support_sync_internal_api", 1558 "//sync:test_support_sync_internal_api",
1559 "//testing/gmock", 1559 "//testing/gmock",
1560 "//testing/gtest", 1560 "//testing/gtest",
1561 1561
(...skipping 21 matching lines...) Expand all
1583 if (!is_ios) { 1583 if (!is_ios) {
1584 deps += [ 1584 deps += [
1585 ":unit_tests_js", 1585 ":unit_tests_js",
1586 "//components/autofill/content/browser/wallet:test_support", 1586 "//components/autofill/content/browser/wallet:test_support",
1587 "//components/autofill/content/renderer:test_support", 1587 "//components/autofill/content/renderer:test_support",
1588 "//components/data_reduction_proxy/core/browser:test_support", 1588 "//components/data_reduction_proxy/core/browser:test_support",
1589 "//components/data_use_measurement/core", 1589 "//components/data_use_measurement/core",
1590 "//components/metrics/proto", 1590 "//components/metrics/proto",
1591 "//components/safe_browsing_db", 1591 "//components/safe_browsing_db",
1592 "//components/safe_json:test_support", 1592 "//components/safe_json:test_support",
1593 "//components/strings",
1593 "//components/webdata_services:test_support", 1594 "//components/webdata_services:test_support",
1594 "//components/strings", 1595 "//content/app/resources",
1595 "//device/bluetooth:mocks", 1596 "//device/bluetooth:mocks",
1596 "//content/app/resources",
1597 "//gpu:test_support", 1597 "//gpu:test_support",
1598 "//media:test_support", 1598 "//media:test_support",
1599 1599
1600 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP) 1600 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP)
1601 "//third_party/leveldatabase", 1601 "//third_party/leveldatabase",
1602 "//third_party/libaddressinput", 1602 "//third_party/libaddressinput",
1603 "//third_party/libjingle", 1603 "//third_party/libjingle",
1604 "//third_party/libphonenumber", 1604 "//third_party/libphonenumber",
1605 "//third_party/webrtc/modules/desktop_capture", 1605 "//third_party/webrtc/modules/desktop_capture",
1606 "//tools/json_schema_compiler/test", 1606 "//tools/json_schema_compiler/test",
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 1716
1717 # We eventually want to compile both in Win Aura builds, see 1717 # We eventually want to compile both in Win Aura builds, see
1718 # http://crbug.com/155545. 1718 # http://crbug.com/155545.
1719 if (!is_win) { 1719 if (!is_win) {
1720 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ] 1720 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ]
1721 } 1721 }
1722 } 1722 }
1723 if (use_aura) { 1723 if (use_aura) {
1724 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] 1724 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ]
1725 deps += [ 1725 deps += [
1726 "//ui/wm",
1727 "//ui/aura:test_support", 1726 "//ui/aura:test_support",
1728 "//ui/views:test_support", 1727 "//ui/views:test_support",
1728 "//ui/wm",
1729 ] 1729 ]
1730 } 1730 }
1731 if (!is_chromeos && is_linux) { 1731 if (!is_chromeos && is_linux) {
1732 sources += rebase_path( 1732 sources += rebase_path(
1733 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s, 1733 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s,
1734 ".", 1734 ".",
1735 "//chrome") 1735 "//chrome")
1736 } 1736 }
1737 if (!is_chromeos && !use_ozone && is_linux) { 1737 if (!is_chromeos && !use_ozone && is_linux) {
1738 deps += [ 1738 deps += [
1739 "//build/linux:gio",
1739 "//chrome/browser/ui/libgtk2ui", 1740 "//chrome/browser/ui/libgtk2ui",
1740 "//build/linux:gio",
1741 ] 1741 ]
1742 } 1742 }
1743 1743
1744 if (enable_task_manager) { 1744 if (enable_task_manager) {
1745 sources += rebase_path( 1745 sources += rebase_path(
1746 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources , 1746 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources ,
1747 ".", 1747 ".",
1748 "//chrome") 1748 "//chrome")
1749 } 1749 }
1750 if (enable_mdns) { 1750 if (enable_mdns) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 "//chrome") 1936 "//chrome")
1937 } 1937 }
1938 if (is_android) { 1938 if (is_android) {
1939 sources += rebase_path( 1939 sources += rebase_path(
1940 chrome_tests_unit_gypi_values.chrome_unit_tests_android_sources, 1940 chrome_tests_unit_gypi_values.chrome_unit_tests_android_sources,
1941 ".", 1941 ".",
1942 "//chrome") 1942 "//chrome")
1943 } 1943 }
1944 if (!is_mac && !is_ios) { 1944 if (!is_mac && !is_ios) {
1945 deps += [ 1945 deps += [
1946 "//chrome/tools/convert_dict:lib",
1947 "//chrome:packed_extra_resources", 1946 "//chrome:packed_extra_resources",
1948 "//chrome:packed_resources", 1947 "//chrome:packed_resources",
1948 "//chrome/tools/convert_dict:lib",
1949 "//third_party/hunspell", 1949 "//third_party/hunspell",
1950 ] 1950 ]
1951 } 1951 }
1952 if (is_win || is_mac) { 1952 if (is_win || is_mac) {
1953 sources += rebase_path( 1953 sources += rebase_path(
1954 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources, 1954 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources,
1955 ".", 1955 ".",
1956 "//chrome") 1956 "//chrome")
1957 } 1957 }
1958 if (is_win || is_mac || is_chromeos) { 1958 if (is_win || is_mac || is_chromeos) {
(...skipping 11 matching lines...) Expand all
1970 # The PDB gets too large for incremental linking. 1970 # The PDB gets too large for incremental linking.
1971 configs -= [ "//build/config/win:default_incremental_linking" ] 1971 configs -= [ "//build/config/win:default_incremental_linking" ]
1972 configs += [ "//build/config/win:no_incremental_linking" ] 1972 configs += [ "//build/config/win:no_incremental_linking" ]
1973 1973
1974 sources += 1974 sources +=
1975 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_win_sources, 1975 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_win_sources,
1976 ".", 1976 ".",
1977 "//chrome") 1977 "//chrome")
1978 deps += [ 1978 deps += [
1979 "//chrome:other_version", 1979 "//chrome:other_version",
1980 "//chrome/installer/util:strings",
1980 "//chrome_elf:blacklist_test_dll_1", 1981 "//chrome_elf:blacklist_test_dll_1",
1981 "//chrome/installer/util:strings",
1982 "//third_party/iaccessible2", 1982 "//third_party/iaccessible2",
1983 "//third_party/isimpledom", 1983 "//third_party/isimpledom",
1984 "//third_party/wtl", 1984 "//third_party/wtl",
1985 "//ui/resources", 1985 "//ui/resources",
1986 ] 1986 ]
1987 data_deps += [ 1987 data_deps += [
1988 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_1", 1988 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_1",
1989 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_2", 1989 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_2",
1990 ] 1990 ]
1991 1991
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 "../app/resources/resources_unittest.cc", 2100 "../app/resources/resources_unittest.cc",
2101 "../app/signature_validator_win.cc", 2101 "../app/signature_validator_win.cc",
2102 "../app/signature_validator_win.h", 2102 "../app/signature_validator_win.h",
2103 "../app/signature_validator_win_unittest.cc", 2103 "../app/signature_validator_win_unittest.cc",
2104 "../common/crash_keys.cc", 2104 "../common/crash_keys.cc",
2105 "../common/crash_keys.h", 2105 "../common/crash_keys.h",
2106 ] 2106 ]
2107 2107
2108 deps = [ 2108 deps = [
2109 ":test_support", 2109 ":test_support",
2110 "//base/test:run_all_unittests",
2111 "//base/test:test_support",
2110 "//breakpad:client", 2112 "//breakpad:client",
2111 "//chrome/browser", 2113 "//chrome/browser",
2112 "//chrome/child", 2114 "//chrome/child",
2113 "//components/crash/core/common", 2115 "//components/crash/core/common",
2114 "//base/test:run_all_unittests",
2115 "//base/test:test_support",
2116 ] 2116 ]
2117 if (cld_version == 2) { 2117 if (cld_version == 2) {
2118 # Use whatever CLD2 data access mode that the 2118 # Use whatever CLD2 data access mode that the
2119 # application embedder is using. 2119 # application embedder is using.
2120 deps += [ "//third_party/cld_2:cld2_platform_impl" ] 2120 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
2121 } 2121 }
2122 } 2122 }
2123 2123
2124 test("performance_browser_tests") { 2124 test("performance_browser_tests") {
2125 sources = 2125 sources =
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
2201 if (is_android) { 2201 if (is_android) {
2202 android_library("unit_tests_java") { 2202 android_library("unit_tests_java") {
2203 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" 2203 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src"
2204 deps = [ 2204 deps = [
2205 "//base:base_java", 2205 "//base:base_java",
2206 "//chrome/android:chrome_java", 2206 "//chrome/android:chrome_java",
2207 "//content/public/android:content_java", 2207 "//content/public/android:content_java",
2208 ] 2208 ]
2209 } 2209 }
2210 } 2210 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698