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