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

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

Issue 1464873002: Run gn --format over all .gn files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 sources -= [ "../browser/ui/views/toolbar/toolbar_button_test.cc" ] 390 sources -= [ "../browser/ui/views/toolbar/toolbar_button_test.cc" ]
391 391
392 if (!is_chromeos) { 392 if (!is_chromeos) {
393 # Desktop linux. 393 # Desktop linux.
394 sources -= [ 394 sources -= [
395 # TODO(port): This times out. Attempts have been made to fix the 395 # TODO(port): This times out. Attempts have been made to fix the
396 # individual failures, but each time I disable a test from these 396 # individual failures, but each time I disable a test from these
397 # suites, it seems like one or another starts timing out too. 397 # suites, it seems like one or another starts timing out too.
398 "../browser/ui/views/keyboard_access_browsertest.cc", 398 "../browser/ui/views/keyboard_access_browsertest.cc",
399 ] 399 ]
400 sources += 400 sources += [ "../browser/ui/libgtk2ui/select_file_dialog_interactive_u itest.cc" ]
401 [ "../browser/ui/libgtk2ui/select_file_dialog_interactive_uitest.c c" ]
402 configs += [ "//build/config/linux/gtk2:gtk2_internal_config" ] 401 configs += [ "//build/config/linux/gtk2:gtk2_internal_config" ]
403 } 402 }
404 } 403 }
405 if (is_chromeos || !use_x11) { 404 if (is_chromeos || !use_x11) {
406 sources -= [ 405 sources -= [
407 "../../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_inter active_uitest.cc", 406 "../../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_inter active_uitest.cc",
408 "../../ui/views/widget/desktop_aura/x11_topmost_window_finder_interact ive_uitest.cc", 407 "../../ui/views/widget/desktop_aura/x11_topmost_window_finder_interact ive_uitest.cc",
409 ] 408 ]
410 } 409 }
411 if (use_aura) { 410 if (use_aura) {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 ] 580 ]
582 deps = [ 581 deps = [
583 ":test_support", 582 ":test_support",
584 "//base", 583 "//base",
585 "//chrome", 584 "//chrome",
586 "//components/invalidation/impl", 585 "//components/invalidation/impl",
587 "//components/invalidation/impl:test_support", 586 "//components/invalidation/impl:test_support",
588 "//net", 587 "//net",
589 "//skia", 588 "//skia",
590 "//sync", 589 "//sync",
590 "//sync:test_support_sync_fake_server",
591 "//sync:test_support_sync_testserver", 591 "//sync:test_support_sync_testserver",
592 "//sync:test_support_sync_fake_server",
593 "//ui/app_list:test_support", 592 "//ui/app_list:test_support",
594 ] 593 ]
595 594
596 if (is_mac) { 595 if (is_mac) {
597 sources -= [ 596 sources -= [
598 "../browser/sync/test/integration/dictionary_helper.cc", 597 "../browser/sync/test/integration/dictionary_helper.cc",
599 "../browser/sync/test/integration/dictionary_helper.h", 598 "../browser/sync/test/integration/dictionary_helper.h",
600 "../browser/sync/test/integration/dictionary_load_observer.cc", 599 "../browser/sync/test/integration/dictionary_load_observer.cc",
601 "../browser/sync/test/integration/dictionary_load_observer.h", 600 "../browser/sync/test/integration/dictionary_load_observer.h",
602 ] 601 ]
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 "//chrome:packed_extra_resources", 1315 "//chrome:packed_extra_resources",
1317 "//chrome:packed_resources", 1316 "//chrome:packed_resources",
1318 "//chrome:resources", 1317 "//chrome:resources",
1319 "//chrome:strings", 1318 "//chrome:strings",
1320 "//chrome/common", 1319 "//chrome/common",
1321 "//chrome/renderer", 1320 "//chrome/renderer",
1322 "//crypto:platform", 1321 "//crypto:platform",
1323 "//sync", 1322 "//sync",
1324 "//testing/gmock", 1323 "//testing/gmock",
1325 "//testing/gtest", 1324 "//testing/gtest",
1325 "//third_party/WebKit/public:blink",
1326 "//third_party/icu", 1326 "//third_party/icu",
1327 "//third_party/leveldatabase", 1327 "//third_party/leveldatabase",
1328 "//third_party/WebKit/public:blink",
1329 ] 1328 ]
1330 1329
1331 data_deps = [ 1330 data_deps = [
1332 "//third_party/mesa:osmesa", 1331 "//third_party/mesa:osmesa",
1333 ] 1332 ]
1334 1333
1335 if (cld_version == 2) { 1334 if (cld_version == 2) {
1336 # Language detection is irrelevant to sync, so it can depend on any 1335 # Language detection is irrelevant to sync, so it can depend on any
1337 # implementation for CLD2. Dynamic is smaller, so go with dynamic. 1336 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1338 deps += [ "//third_party/cld_2:cld2_dynamic" ] 1337 deps += [ "//third_party/cld_2:cld2_dynamic" ]
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 # dependencies block below, rather than here. 1536 # dependencies block below, rather than here.
1538 # Unit tests should only depend on: 1537 # Unit tests should only depend on:
1539 # 1) everything that the chrome binaries depend on: 1538 # 1) everything that the chrome binaries depend on:
1540 "//chrome:browser_dependencies", 1539 "//chrome:browser_dependencies",
1541 "//chrome:child_dependencies", 1540 "//chrome:child_dependencies",
1542 1541
1543 # 2) test-specific support libraries: 1542 # 2) test-specific support libraries:
1544 ":test_support_unit", 1543 ":test_support_unit",
1545 "//base/test:test_support", 1544 "//base/test:test_support",
1546 "//chrome/test:test_support", 1545 "//chrome/test:test_support",
1546 "//components/content_settings/core/test:test_support",
1547 "//components/resources", 1547 "//components/resources",
1548 "//components/content_settings/core/test:test_support", 1548 "//content/public/app:both",
1549 "//content/test:test_support", 1549 "//content/test:test_support",
1550 "//content/public/app:both",
1551 "//crypto:platform", 1550 "//crypto:platform",
1552 "//crypto:test_support", 1551 "//crypto:test_support",
1553 "//net", 1552 "//net",
1554 "//net:test_support", 1553 "//net:test_support",
1555 "//sync:test_support_sync_api", 1554 "//sync:test_support_sync_api",
1556 "//sync:test_support_sync_core", 1555 "//sync:test_support_sync_core",
1557 "//sync:test_support_sync_internal_api", 1556 "//sync:test_support_sync_internal_api",
1558 "//testing/gmock", 1557 "//testing/gmock",
1559 "//testing/gtest", 1558 "//testing/gtest",
1560 1559
(...skipping 21 matching lines...) Expand all
1582 if (!is_ios) { 1581 if (!is_ios) {
1583 deps += [ 1582 deps += [
1584 ":unit_tests_js", 1583 ":unit_tests_js",
1585 "//components/autofill/content/browser/wallet:test_support", 1584 "//components/autofill/content/browser/wallet:test_support",
1586 "//components/autofill/content/renderer:test_support", 1585 "//components/autofill/content/renderer:test_support",
1587 "//components/data_reduction_proxy/core/browser:test_support", 1586 "//components/data_reduction_proxy/core/browser:test_support",
1588 "//components/data_use_measurement/core", 1587 "//components/data_use_measurement/core",
1589 "//components/metrics/proto", 1588 "//components/metrics/proto",
1590 "//components/safe_browsing_db", 1589 "//components/safe_browsing_db",
1591 "//components/safe_json:test_support", 1590 "//components/safe_json:test_support",
1591 "//components/strings",
1592 "//components/webdata_services:test_support", 1592 "//components/webdata_services:test_support",
1593 "//components/strings", 1593 "//content/app/resources",
1594 "//device/bluetooth:mocks", 1594 "//device/bluetooth:mocks",
1595 "//content/app/resources",
1596 "//gpu:test_support", 1595 "//gpu:test_support",
1597 "//media:test_support", 1596 "//media:test_support",
1598 1597
1599 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP) 1598 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP)
1600 "//third_party/leveldatabase", 1599 "//third_party/leveldatabase",
1601 "//third_party/libaddressinput", 1600 "//third_party/libaddressinput",
1602 "//third_party/libjingle", 1601 "//third_party/libjingle",
1603 "//third_party/libphonenumber", 1602 "//third_party/libphonenumber",
1604 "//third_party/webrtc/modules/desktop_capture", 1603 "//third_party/webrtc/modules/desktop_capture",
1605 "//tools/json_schema_compiler/test", 1604 "//tools/json_schema_compiler/test",
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 1714
1716 # We eventually want to compile both in Win Aura builds, see 1715 # We eventually want to compile both in Win Aura builds, see
1717 # http://crbug.com/155545. 1716 # http://crbug.com/155545.
1718 if (!is_win) { 1717 if (!is_win) {
1719 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ] 1718 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ]
1720 } 1719 }
1721 } 1720 }
1722 if (use_aura) { 1721 if (use_aura) {
1723 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] 1722 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ]
1724 deps += [ 1723 deps += [
1725 "//ui/wm",
1726 "//ui/aura:test_support", 1724 "//ui/aura:test_support",
1727 "//ui/views:test_support", 1725 "//ui/views:test_support",
1726 "//ui/wm",
1728 ] 1727 ]
1729 } 1728 }
1730 if (!is_chromeos && is_linux) { 1729 if (!is_chromeos && is_linux) {
1731 sources += rebase_path( 1730 sources += rebase_path(
1732 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s, 1731 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s,
1733 ".", 1732 ".",
1734 "//chrome") 1733 "//chrome")
1735 } 1734 }
1736 if (!is_chromeos && !use_ozone && is_linux) { 1735 if (!is_chromeos && !use_ozone && is_linux) {
1737 deps += [ 1736 deps += [
1737 "//build/linux:gio",
1738 "//chrome/browser/ui/libgtk2ui", 1738 "//chrome/browser/ui/libgtk2ui",
1739 "//build/linux:gio",
1740 ] 1739 ]
1741 } 1740 }
1742 1741
1743 if (enable_task_manager) { 1742 if (enable_task_manager) {
1744 sources += rebase_path( 1743 sources += rebase_path(
1745 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources , 1744 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources ,
1746 ".", 1745 ".",
1747 "//chrome") 1746 "//chrome")
1748 } 1747 }
1749 if (enable_mdns) { 1748 if (enable_mdns) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 "//chrome") 1934 "//chrome")
1936 } 1935 }
1937 if (is_android) { 1936 if (is_android) {
1938 sources += rebase_path( 1937 sources += rebase_path(
1939 chrome_tests_unit_gypi_values.chrome_unit_tests_android_sources, 1938 chrome_tests_unit_gypi_values.chrome_unit_tests_android_sources,
1940 ".", 1939 ".",
1941 "//chrome") 1940 "//chrome")
1942 } 1941 }
1943 if (!is_mac && !is_ios) { 1942 if (!is_mac && !is_ios) {
1944 deps += [ 1943 deps += [
1945 "//chrome/tools/convert_dict:lib",
1946 "//chrome:packed_extra_resources", 1944 "//chrome:packed_extra_resources",
1947 "//chrome:packed_resources", 1945 "//chrome:packed_resources",
1946 "//chrome/tools/convert_dict:lib",
1948 "//third_party/hunspell", 1947 "//third_party/hunspell",
1949 ] 1948 ]
1950 } 1949 }
1951 if (is_win || is_mac) { 1950 if (is_win || is_mac) {
1952 sources += rebase_path( 1951 sources += rebase_path(
1953 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources, 1952 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources,
1954 ".", 1953 ".",
1955 "//chrome") 1954 "//chrome")
1956 } 1955 }
1957 if (is_win || is_mac || is_chromeos) { 1956 if (is_win || is_mac || is_chromeos) {
(...skipping 11 matching lines...) Expand all
1969 # The PDB gets too large for incremental linking. 1968 # The PDB gets too large for incremental linking.
1970 configs -= [ "//build/config/win:default_incremental_linking" ] 1969 configs -= [ "//build/config/win:default_incremental_linking" ]
1971 configs += [ "//build/config/win:no_incremental_linking" ] 1970 configs += [ "//build/config/win:no_incremental_linking" ]
1972 1971
1973 sources += 1972 sources +=
1974 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_win_sources, 1973 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_win_sources,
1975 ".", 1974 ".",
1976 "//chrome") 1975 "//chrome")
1977 deps += [ 1976 deps += [
1978 "//chrome:other_version", 1977 "//chrome:other_version",
1978 "//chrome/installer/util:strings",
1979 "//chrome_elf:blacklist_test_dll_1", 1979 "//chrome_elf:blacklist_test_dll_1",
1980 "//chrome/installer/util:strings",
1981 "//third_party/iaccessible2", 1980 "//third_party/iaccessible2",
1982 "//third_party/isimpledom", 1981 "//third_party/isimpledom",
1983 "//third_party/wtl", 1982 "//third_party/wtl",
1984 "//ui/resources", 1983 "//ui/resources",
1985 ] 1984 ]
1986 data_deps += [ 1985 data_deps += [
1987 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_1", 1986 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_1",
1988 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_2", 1987 "//chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_ test_dll_2",
1989 ] 1988 ]
1990 1989
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 "../app/delay_load_hook_win.h", 2096 "../app/delay_load_hook_win.h",
2098 "../app/resources/resources_unittest.cc", 2097 "../app/resources/resources_unittest.cc",
2099 "../app/signature_validator_win.cc", 2098 "../app/signature_validator_win.cc",
2100 "../app/signature_validator_win.h", 2099 "../app/signature_validator_win.h",
2101 "../app/signature_validator_win_unittest.cc", 2100 "../app/signature_validator_win_unittest.cc",
2102 "../common/crash_keys.cc", 2101 "../common/crash_keys.cc",
2103 "../common/crash_keys.h", 2102 "../common/crash_keys.h",
2104 ] 2103 ]
2105 deps = [ 2104 deps = [
2106 ":test_support", 2105 ":test_support",
2106 "//base/test:run_all_unittests",
2107 "//base/test:test_support",
2107 "//breakpad:client", 2108 "//breakpad:client",
2108 "//chrome/browser", 2109 "//chrome/browser",
2109 "//chrome/child", 2110 "//chrome/child",
2110 "//components/crash/core/common", 2111 "//components/crash/core/common",
2111 "//base/test:run_all_unittests",
2112 "//base/test:test_support",
2113 ] 2112 ]
2114 if (cld_version == 2) { 2113 if (cld_version == 2) {
2115 # Use whatever CLD2 data access mode that the 2114 # Use whatever CLD2 data access mode that the
2116 # application embedder is using. 2115 # application embedder is using.
2117 deps += [ "//third_party/cld_2:cld2_platform_impl" ] 2116 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
2118 } 2117 }
2119 } 2118 }
2120 2119
2121 test("performance_browser_tests") { 2120 test("performance_browser_tests") {
2122 sources = 2121 sources =
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 if (is_android) { 2197 if (is_android) {
2199 android_library("unit_tests_java") { 2198 android_library("unit_tests_java") {
2200 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" 2199 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src"
2201 deps = [ 2200 deps = [
2202 "//base:base_java", 2201 "//base:base_java",
2203 "//chrome/android:chrome_java", 2202 "//chrome/android:chrome_java",
2204 "//content/public/android:content_java", 2203 "//content/public/android:content_java",
2205 ] 2204 ]
2206 } 2205 }
2207 } 2206 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698