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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//build_overrides/webrtc.gni") | |
8 import("//testing/test.gni") | 7 import("//testing/test.gni") |
9 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
10 | 9 |
11 if (is_android) { | 10 if (is_android) { |
12 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
13 } | 12 } |
14 | 13 |
15 # To add a unit test to this target, make a "unit_test" source_set in your | 14 # To add a unit test to this target, make a "unit_test" source_set in your |
16 # component (it's important to use a source_set instead of a static library or | 15 # component (it's important to use a source_set instead of a static library or |
17 # no tests will run) and add a reference here. You can add more than one unit | 16 # no tests will run) and add a reference here. You can add more than one unit |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 "//components/variations/service:unit_tests", | 69 "//components/variations/service:unit_tests", |
71 "//components/web_resource:unit_tests", | 70 "//components/web_resource:unit_tests", |
72 "//mojo/edk/embedder:headers", | 71 "//mojo/edk/embedder:headers", |
73 "//net", | 72 "//net", |
74 "//testing/gtest", | 73 "//testing/gtest", |
75 "//ui/base", | 74 "//ui/base", |
76 "//ui/resources:ui_test_pak", | 75 "//ui/resources:ui_test_pak", |
77 ] | 76 ] |
78 | 77 |
79 if (is_ios) { | 78 if (is_ios) { |
80 deps += [ "//components/translate/ios/browser:unit_tests" ] | 79 deps += [ |
| 80 "//components/signin/ios/browser:unit_tests", |
| 81 "//components/translate/ios/browser:unit_tests", |
| 82 ] |
81 | 83 |
82 if (target_cpu != "arm") { | 84 if (target_cpu != "arm") { |
83 # TODO(GYP): iOS arm builds of libwebp don't work yet. | 85 # TODO(GYP): iOS arm builds of libwebp don't work yet. |
84 deps += [ "//components/webp_transcode:unit_tests" ] | 86 deps += [ "//components/webp_transcode:unit_tests" ] |
85 } | 87 } |
86 } else { # !iOS | 88 } else { # !iOS |
87 deps += [ | 89 deps += [ |
88 "//components/auto_login_parser:unit_tests", | 90 "//components/auto_login_parser:unit_tests", |
89 "//components/autofill/content/browser:unit_tests", | 91 "//components/autofill/content/browser:unit_tests", |
90 "//components/autofill/content/renderer:unit_tests", | 92 "//components/autofill/content/renderer:unit_tests", |
| 93 "//components/autofill/core/browser:unit_tests", |
| 94 "//components/autofill/core/common:unit_tests", |
| 95 "//components/browser_sync/browser:unit_tests", |
91 "//components/bubble:unit_tests", | 96 "//components/bubble:unit_tests", |
92 "//components/captive_portal:unit_tests", | 97 "//components/captive_portal:unit_tests", |
93 "//components/certificate_transparency:unit_tests", | 98 "//components/certificate_transparency:unit_tests", |
94 "//components/cloud_devices/common:unit_tests", | 99 "//components/cloud_devices/common:unit_tests", |
95 "//components/component_updater:unit_tests", | 100 "//components/component_updater:unit_tests", |
96 "//components/crx_file:unit_tests", | 101 "//components/crx_file:unit_tests", |
97 "//components/data_reduction_proxy/content/browser:unit_tests", | 102 "//components/data_reduction_proxy/content/browser:unit_tests", |
98 "//components/data_reduction_proxy/core/browser:unit_tests", | 103 "//components/data_reduction_proxy/core/browser:unit_tests", |
99 "//components/data_reduction_proxy/core/common:unit_tests", | 104 "//components/data_reduction_proxy/core/common:unit_tests", |
100 "//components/data_use_measurement/content:unit_tests", | 105 "//components/data_use_measurement/content:unit_tests", |
101 "//components/device_event_log:unit_tests", | 106 "//components/device_event_log:unit_tests", |
102 "//components/devtools_http_handler:unit_tests", | 107 "//components/devtools_http_handler:unit_tests", |
103 "//components/dom_distiller/content/browser:unit_tests", | 108 "//components/dom_distiller/content/browser:unit_tests", |
104 "//components/domain_reliability:unit_tests", | 109 "//components/domain_reliability:unit_tests", |
105 "//components/error_page/renderer:unit_tests", | 110 "//components/error_page/renderer:unit_tests", |
106 "//components/favicon/content:unit_tests", | 111 "//components/favicon/content:unit_tests", |
| 112 "//components/favicon/core:unit_tests", |
| 113 "//components/favicon_base:unit_tests", |
| 114 "//components/gcm_driver:unit_tests", |
107 "//components/gcm_driver/crypto:unit_tests", | 115 "//components/gcm_driver/crypto:unit_tests", |
108 "//components/guest_view/browser:unit_tests", | 116 "//components/guest_view/browser:unit_tests", |
109 "//components/history/content/browser:unit_tests", | 117 "//components/history/content/browser:unit_tests", |
| 118 "//components/history/core/browser:unit_tests", |
| 119 "//components/history/core/common:unit_tests", |
| 120 "//components/invalidation/impl:unit_tests", |
110 "//components/json_schema:unit_tests", | 121 "//components/json_schema:unit_tests", |
111 "//components/keyed_service/content:unit_tests", | 122 "//components/keyed_service/content:unit_tests", |
112 "//components/language_usage_metrics:unit_tests", | 123 "//components/language_usage_metrics:unit_tests", |
113 "//components/login:unit_tests", | 124 "//components/login:unit_tests", |
114 "//components/memory_pressure:unit_tests", | 125 "//components/memory_pressure:unit_tests", |
115 "//components/mime_util:unit_tests", | 126 "//components/mime_util:unit_tests", |
116 "//components/navigation_interception:unit_tests", | 127 "//components/navigation_interception:unit_tests", |
117 "//components/network_hints/renderer:unit_tests", | 128 "//components/network_hints/renderer:unit_tests", |
118 "//components/offline_pages:unit_tests", | 129 "//components/offline_pages:unit_tests", |
| 130 "//components/omnibox/browser:unit_tests", |
119 "//components/packed_ct_ev_whitelist:unit_tests", | 131 "//components/packed_ct_ev_whitelist:unit_tests", |
120 "//components/page_load_metrics/browser:unit_tests", | 132 "//components/page_load_metrics/browser:unit_tests", |
121 "//components/page_load_metrics/renderer:unit_tests", | 133 "//components/page_load_metrics/renderer:unit_tests", |
122 "//components/password_manager/content/browser:unit_tests", | 134 "//components/password_manager/content/browser:unit_tests", |
| 135 "//components/password_manager/core/browser:unit_tests", |
| 136 "//components/password_manager/core/common:unit_tests", |
| 137 "//components/password_manager/sync/browser:unit_tests", |
123 "//components/power:unit_tests", | 138 "//components/power:unit_tests", |
124 "//components/precache/content:unit_tests", | 139 "//components/precache/content:unit_tests", |
125 "//components/precache/core:unit_tests", | 140 "//components/precache/core:unit_tests", |
126 "//components/query_parser:unit_tests", | 141 "//components/query_parser:unit_tests", |
| 142 "//components/rappor:unit_tests", |
127 "//components/safe_browsing_db:unit_tests", | 143 "//components/safe_browsing_db:unit_tests", |
128 "//components/safe_json:unit_tests", | 144 "//components/safe_json:unit_tests", |
129 "//components/scheduler:unit_tests", | 145 "//components/scheduler:unit_tests", |
130 "//components/search:unit_tests", | 146 "//components/search:unit_tests", |
131 "//components/search_engines:unit_tests", | 147 "//components/search_engines:unit_tests", |
132 "//components/search_provider_logos:unit_tests", | 148 "//components/search_provider_logos:unit_tests", |
| 149 "//components/signin/core/browser:unit_tests", |
133 "//components/ssl_config:unit_tests", | 150 "//components/ssl_config:unit_tests", |
134 "//components/sync_bookmarks:unit_tests", | 151 "//components/sync_bookmarks:unit_tests", |
| 152 "//components/sync_driver:unit_tests", |
135 "//components/sync_sessions:unit_tests", | 153 "//components/sync_sessions:unit_tests", |
136 "//components/test_runner:test_runner", | 154 "//components/test_runner:test_runner", |
137 "//components/tracing:unit_tests", | 155 "//components/tracing:unit_tests", |
138 "//components/ui/zoom:unit_tests", | 156 "//components/ui/zoom:unit_tests", |
139 "//components/url_formatter:unit_tests", | 157 "//components/url_formatter:unit_tests", |
140 "//components/url_matcher:unit_tests", | 158 "//components/url_matcher:unit_tests", |
141 "//components/user_prefs/tracked:unit_tests", | 159 "//components/user_prefs/tracked:unit_tests", |
142 "//components/visitedlink/test:unit_tests", | 160 "//components/visitedlink/test:unit_tests", |
143 "//components/wallpaper:unit_tests", | 161 "//components/wallpaper:unit_tests", |
144 "//components/web_cache/browser:unit_tests", | 162 "//components/web_cache/browser:unit_tests", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 # TODO(GYP) need this target. | 228 # TODO(GYP) need this target. |
211 #'breakpad/app/crash_keys_win_unittest.cc', | 229 #'breakpad/app/crash_keys_win_unittest.cc', |
212 | 230 |
213 if (enable_configuration_policy) { | 231 if (enable_configuration_policy) { |
214 deps += [ | 232 deps += [ |
215 "//components/policy/core/browser:unit_tests", | 233 "//components/policy/core/browser:unit_tests", |
216 "//components/policy/core/common:unit_tests", | 234 "//components/policy/core/common:unit_tests", |
217 ] | 235 ] |
218 } | 236 } |
219 | 237 |
220 if (!is_ios || ios_use_webrtc) { | |
221 deps += [ | |
222 "//components/autofill/core/browser:unit_tests", | |
223 "//components/autofill/core/common:unit_tests", | |
224 "//components/browser_sync/browser:unit_tests", | |
225 "//components/favicon/core:unit_tests", | |
226 "//components/favicon_base:unit_tests", | |
227 "//components/gcm_driver:unit_tests", | |
228 "//components/history/core/browser:unit_tests", | |
229 "//components/history/core/common:unit_tests", | |
230 "//components/invalidation/impl:unit_tests", | |
231 "//components/omnibox/browser:unit_tests", | |
232 "//components/password_manager/core/browser:unit_tests", | |
233 "//components/password_manager/core/common:unit_tests", | |
234 "//components/password_manager/sync/browser:unit_tests", | |
235 "//components/rappor:unit_tests", | |
236 "//components/search:unit_tests", | |
237 "//components/signin/core/browser:unit_tests", | |
238 "//components/sync_driver:unit_tests", | |
239 ] | |
240 } | |
241 | |
242 if (ios_use_webrtc) { | |
243 deps += [ "//components/signin/ios/browser:unit_tests" ] | |
244 } | |
245 | |
246 if (toolkit_views) { | 238 if (toolkit_views) { |
247 # TODO bug 522654 Enable this when the undefined symbol is fixed in | 239 # TODO bug 522654 Enable this when the undefined symbol is fixed in |
248 # web_modal such that this links. | 240 # web_modal such that this links. |
249 #deps += [ "//components/constrained_window:unit_tests" ] | 241 #deps += [ "//components/constrained_window:unit_tests" ] |
250 } | 242 } |
251 | 243 |
252 if (is_win) { | 244 if (is_win) { |
253 deps += [ "//components/browser_watcher:unit_tests" ] | 245 deps += [ "//components/browser_watcher:unit_tests" ] |
254 } | 246 } |
255 | 247 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 if (!is_ios) { | 430 if (!is_ios) { |
439 deps += [ | 431 deps += [ |
440 "//base", | 432 "//base", |
441 "//base/test:test_support_perf", | 433 "//base/test:test_support_perf", |
442 "//components/scheduler", | 434 "//components/scheduler", |
443 "//components/visitedlink/browser", | 435 "//components/visitedlink/browser", |
444 "//content/test:test_support", | 436 "//content/test:test_support", |
445 ] | 437 ] |
446 } | 438 } |
447 } | 439 } |
OLD | NEW |