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("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
9 | 9 |
10 # Collection of all components. You wouldn't link to this, but this is rather | 10 # Collection of all components. You wouldn't link to this, but this is rather |
11 # to reference the files so they can be compiled by the build system. | 11 # to reference the files so they can be compiled by the build system. |
12 group("all_components") { | 12 group("all_components") { |
13 testonly = true # You shouldn't actually link to this. | 13 testonly = true # You shouldn't actually link to this. |
14 visibility = [ "//:*" ] # Only for the root targets to bring in. | 14 visibility = [ "//:*" ] # Only for the root targets to bring in. |
15 | 15 |
16 deps = [ | 16 deps = [ |
17 "//components/about_handler", | |
18 "//components/auto_login_parser", | |
19 "//components/autofill/content/browser", | |
20 "//components/autofill/content/common", | |
21 "//components/autofill/content/renderer", | |
22 "//components/bookmarks/browser", | 17 "//components/bookmarks/browser", |
23 "//components/bookmarks/common", | 18 "//components/bookmarks/common", |
24 "//components/bookmarks/managed", | 19 "//components/bookmarks/managed", |
25 "//components/bookmarks/test", | 20 "//components/bookmarks/test", |
26 "//components/bubble", | 21 "//components/bubble", |
27 "//components/captive_portal", | 22 "//components/captive_portal", |
28 "//components/cdm/browser", | |
29 "//components/cdm/common", | |
30 "//components/cdm/renderer", | |
31 "//components/certificate_reporting", | |
32 "//components/cloud_devices/common", | |
33 "//components/chrome_apps", | 23 "//components/chrome_apps", |
34 "//components/component_updater", | 24 "//components/component_updater", |
35 "//components/compression", | 25 "//components/compression", |
36 "//components/content_settings/core/browser", | |
37 "//components/content_settings/core/common", | |
38 "//components/crash/core/common", | |
39 "//components/crash/content/app", | |
40 "//components/crash/content/browser", | |
41 "//components/crx_file", | 26 "//components/crx_file", |
42 "//components/data_reduction_proxy/core/browser", | 27 "//components/data_reduction_proxy/core/browser", |
43 "//components/data_reduction_proxy/core/common", | 28 "//components/data_reduction_proxy/core/common", |
44 "//components/device_event_log", | 29 "//components/device_event_log", |
45 "//components/devtools_discovery", | |
46 "//components/devtools_http_handler", | |
47 "//components/dom_distiller/core", | |
48 "//components/domain_reliability", | |
49 "//components/enhanced_bookmarks", | |
50 "//components/favicon/core", | |
51 "//components/favicon_base", | |
52 "//components/feedback", | |
53 "//components/gcm_driver", | |
54 "//components/gcm_driver/crypto", | |
55 "//components/gcm_driver/instance_id", | |
56 "//components/google/core/browser", | |
57 "//components/history/content/browser", | |
58 "//components/history/core/browser", | |
59 "//components/history/core/common", | |
60 "//components/history/core/test", | |
61 "//components/infobars/core", | |
62 "//components/invalidation/impl", | |
63 "//components/json_schema", | |
64 "//components/keyed_service/content", | |
65 "//components/language_usage_metrics", | |
66 "//components/leveldb_proto", | |
67 "//components/login", | |
68 "//components/memory_pressure", | |
69 "//components/metrics", | |
70 "//components/mime_util", | |
71 "//components/navigation_interception", | |
72 "//components/navigation_metrics", | |
73 "//components/net_log", | |
74 "//components/network_hints/browser", | |
75 "//components/network_hints/common", | |
76 "//components/network_hints/renderer", | |
77 "//components/network_time", | |
78 "//components/offline_pages", | |
79 "//components/omnibox/browser", | |
80 "//components/onc", | |
81 "//components/open_from_clipboard", | |
82 "//components/os_crypt", | |
83 "//components/packed_ct_ev_whitelist", | |
84 "//components/pairing", | |
85 "//components/password_manager/content/browser", | |
86 "//components/password_manager/core/browser", | |
87 "//components/password_manager/core/common", | |
88 "//components/pdf/browser", | |
89 "//components/pdf/common", | |
90 "//components/pdf/renderer", | |
91 "//components/plugins/common", | |
92 "//components/plugins/renderer", | |
93 "//components/policy", | |
94 "//components/power", | |
95 "//components/precache/core", | |
96 "//components/precache/content", | |
97 "//components/proxy_config", | |
98 "//components/pref_registry", | |
99 "//components/query_parser", | |
100 "//components/rappor", | |
101 "//components/renderer_context_menu", | |
102 "//components/resources:components_resources", | |
103 "//components/search", | |
104 "//components/search_engines", | |
105 "//components/search_provider_logos", | |
106 "//components/security_interstitials/core", | |
107 "//components/sessions", | |
108 "//components/signin/core/browser", | |
109 "//components/ssl_errors", | |
110 "//components/startup_metric_utils", | |
111 "//components/strings", | |
112 "//components/sync_driver", | |
113 "//components/syncable_prefs", | |
114 "//components/tracing", | |
115 "//components/tracing:startup_tracing", | |
116 "//components/translate/content/browser", | |
117 "//components/translate/content/common", | |
118 "//components/translate/content/renderer", | |
119 "//components/translate/core/browser", | |
120 "//components/translate/core/common", | |
121 "//components/ui/zoom", | |
122 "//components/undo", | |
123 "//components/update_client", | |
124 "//components/upload_list", | |
125 "//components/url_formatter", | |
126 "//components/url_matcher", | |
127 "//components/user_manager", | |
128 "//components/user_prefs", | |
129 "//components/user_prefs/tracked:user_prefs_tracked", | |
130 "//components/variations", | |
131 "//components/variations/service", | |
132 "//components/version_info", | |
133 "//components/visitedlink/browser", | |
134 "//components/visitedlink/common", | |
135 "//components/visitedlink/renderer", | |
136 "//components/wallpaper", | |
137 "//components/web_cache/browser", | |
138 "//components/web_cache/common", | |
139 "//components/web_cache/renderer", | |
140 "//components/web_modal", | |
141 "//components/web_resource", | |
142 "//components/webdata/common", | |
143 "//components/wifi", | |
144 "//components/wifi_sync", | |
145 ] | 30 ] |
146 | 31 |
147 if (!is_android && !is_ios) { | 32 if (!is_ios) { |
148 deps += [ | 33 deps += [ |
149 "//components/audio_modem", | 34 "//components/dom_distiller/core", |
150 "//components/proximity_auth", | 35 "//components/enhanced_bookmarks", |
151 "//components/proximity_auth/cryptauth", | 36 "//components/certificate_reporting", |
152 "//components/webusb", | 37 "//components/cdm/browser", |
153 ] | 38 "//components/about_handler", |
154 } | 39 "//components/auto_login_parser", |
155 | 40 "//components/autofill/content/browser", |
156 if (!enable_configuration_policy) { | 41 "//components/autofill/content/common", |
157 deps -= [ "//components/policy" ] | 42 "//components/autofill/content/renderer", |
158 } | 43 "//components/bubble", |
159 | 44 "//components/captive_portal", |
160 if (!is_win && !is_mac) { | 45 "//components/cdm/browser", |
161 deps -= [ "//components/wifi" ] | 46 "//components/cdm/common", |
162 } | 47 "//components/cdm/renderer", |
163 if (!is_chromeos) { | 48 "//components/cloud_devices/common", |
164 deps -= [ | 49 "//components/chrome_apps", |
50 "//components/compression", | |
51 "//components/content_settings/core/browser", | |
52 "//components/content_settings/core/common", | |
53 "//components/crash/content/app", | |
54 "//components/crash/content/browser", | |
55 "//components/crx_file", | |
56 "//components/data_reduction_proxy/core/browser", | |
57 "//components/data_reduction_proxy/core/common", | |
58 "//components/device_event_log", | |
59 "//components/devtools_discovery", | |
60 "//components/devtools_http_handler", | |
61 "//components/dom_distiller/core", | |
62 "//components/domain_reliability", | |
63 "//components/favicon/core", | |
64 "//components/favicon_base", | |
65 "//components/feedback", | |
66 "//components/gcm_driver", | |
67 "//components/gcm_driver/crypto", | |
68 "//components/gcm_driver/instance_id", | |
69 "//components/google/core/browser", | |
70 "//components/history/content/browser", | |
71 "//components/history/core/browser", | |
72 "//components/history/core/common", | |
73 "//components/history/core/test", | |
74 "//components/infobars/core", | |
75 "//components/invalidation/impl", | |
76 "//components/json_schema", | |
77 "//components/keyed_service/content", | |
78 "//components/language_usage_metrics", | |
79 "//components/leveldb_proto", | |
80 "//components/login", | |
81 "//components/memory_pressure", | |
82 "//components/metrics", | |
83 "//components/mime_util", | |
84 "//components/navigation_interception", | |
85 "//components/navigation_metrics", | |
86 "//components/network_hints/browser", | |
87 "//components/network_hints/common", | |
88 "//components/network_hints/renderer", | |
89 "//components/network_time", | |
90 "//components/offline_pages", | |
91 "//components/omnibox/browser", | |
92 "//components/onc", | |
93 "//components/open_from_clipboard", | |
94 "//components/os_crypt", | |
95 "//components/packed_ct_ev_whitelist", | |
165 "//components/pairing", | 96 "//components/pairing", |
166 "//components/wifi_sync", | 97 "//components/password_manager/content/browser", |
167 ] | 98 "//components/password_manager/core/browser", |
168 } | 99 "//components/password_manager/core/common", |
169 | |
170 if (!is_chromeos || !enable_extensions) { | |
171 deps -= [ "//components/chrome_apps" ] | |
172 } | |
173 | |
174 if (is_ios) { | |
175 deps -= [ | |
176 "//components/history/content/browser", | |
177 "//components/keyed_service/content", | |
178 "//components/network_hints/renderer", | |
179 ] | |
180 } | |
181 | |
182 if (!enable_plugins) { | |
183 deps -= [ | |
184 "//components/pdf/browser", | 100 "//components/pdf/browser", |
185 "//components/pdf/common", | 101 "//components/pdf/common", |
186 "//components/pdf/renderer", | 102 "//components/pdf/renderer", |
103 "//components/plugins/common", | |
104 "//components/plugins/renderer", | |
105 "//components/policy", | |
106 "//components/power", | |
107 "//components/precache/core", | |
108 "//components/precache/content", | |
109 "//components/proxy_config", | |
110 "//components/pref_registry", | |
111 "//components/query_parser", | |
112 "//components/rappor", | |
113 "//components/renderer_context_menu", | |
114 "//components/resources:components_resources", | |
115 "//components/search_engines", | |
116 "//components/search_provider_logos", | |
117 "//components/security_interstitials/core", | |
118 "//components/sessions", | |
119 "//components/signin/core/browser", | |
120 "//components/startup_metric_utils", | |
121 "//components/strings", | |
122 "//components/sync_driver", | |
123 "//components/tracing", | |
124 "//components/tracing:startup_tracing", | |
125 "//components/translate/content/browser", | |
126 "//components/translate/content/common", | |
127 "//components/translate/content/renderer", | |
128 "//components/translate/core/browser", | |
129 "//components/translate/core/common", | |
130 "//components/ui/zoom", | |
131 "//components/undo", | |
132 "//components/update_client", | |
133 "//components/upload_list", | |
134 "//components/url_formatter", | |
135 "//components/url_matcher", | |
136 "//components/user_manager", | |
137 "//components/user_prefs", | |
138 "//components/user_prefs/tracked:user_prefs_tracked", | |
139 "//components/variations", | |
140 "//components/variations/service", | |
141 "//components/version_info", | |
142 "//components/visitedlink/browser", | |
143 "//components/visitedlink/common", | |
144 "//components/visitedlink/renderer", | |
145 "//components/wallpaper", | |
146 "//components/web_cache/browser", | |
147 "//components/web_cache/common", | |
148 "//components/web_cache/renderer", | |
149 "//components/web_modal", | |
150 "//components/web_resource", | |
151 "//components/webcrypto", | |
152 "//components/webdata/common", | |
153 "//components/wifi", | |
154 "//components/wifi_sync", | |
155 "//components/app_modal", | |
156 "//components/browsing_data", | |
157 "//components/certificate_transparency", | |
158 "//components/guest_view/browser", | |
159 "//components/guest_view/common", | |
160 "//components/guest_view/renderer", | |
161 "//components/safe_json", | |
162 "//components/scheduler", | |
163 "//components/test_runner", | |
164 "//components/webcrypto", | |
187 ] | 165 ] |
166 | |
167 if (!is_chromeos || !enable_extensions) { | |
168 deps -= [ "//components/chrome_apps" ] | |
169 } | |
170 | |
171 if (!enable_plugins) { | |
172 deps -= [ | |
173 "//components/pdf/browser", | |
174 "//components/pdf/common", | |
175 "//components/pdf/renderer", | |
176 ] | |
177 } | |
178 | |
179 if (!is_android) { | |
180 # TODO(agrieve): Add to main deps list once compile errors are resolved. | |
181 deps += [ | |
182 "//components/audio_modem", | |
183 "//components/proximity_auth", | |
184 "//components/proximity_auth/cryptauth", | |
185 "//components/webusb", | |
186 "//components/copresence", | |
187 "//components/storage_monitor", | |
188 ] | |
189 } | |
190 | |
191 if (!is_win && !is_mac) { | |
192 deps -= [ "//components/wifi" ] | |
193 } | |
194 | |
195 if (!is_chromeos) { | |
196 deps -= [ | |
197 "//components/pairing", | |
198 "//components/wifi_sync", | |
199 ] | |
200 } | |
201 } | |
202 | |
203 if (toolkit_views) { | |
204 deps += [ "//components/constrained_window" ] | |
188 } | 205 } |
189 | 206 |
190 if (is_android) { | 207 if (is_android) { |
191 deps -= [ | 208 deps -= [ |
192 "//components/autofill/content/browser", # Blocked on content/blink. | 209 "//components/autofill/content/browser", # Blocked on content/blink. |
193 "//components/autofill/content/common", # Blocked on content. | 210 "//components/autofill/content/common", # Blocked on content. |
194 "//components/autofill/content/renderer", # Blocked on content/blink. | 211 "//components/autofill/content/renderer", # Blocked on content/blink. |
195 "//components/crash/content/app", # Should work, needs checking. | 212 "//components/crash/content/app", # Should work, needs checking. |
196 "//components/crash/content/browser", # Should work, needs checking. | 213 "//components/crash/content/browser", # Should work, needs checking. |
197 "//components/captive_portal", # Should work, needs checking. | 214 "//components/captive_portal", # Should work, needs checking. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 "//components/translate/content/renderer", # Blocked on content. | 252 "//components/translate/content/renderer", # Blocked on content. |
236 "//components/user_prefs", # Blocked on content. | 253 "//components/user_prefs", # Blocked on content. |
237 "//components/visitedlink/browser", # Blocked on content. | 254 "//components/visitedlink/browser", # Blocked on content. |
238 "//components/visitedlink/common", # Blocked on content. | 255 "//components/visitedlink/common", # Blocked on content. |
239 "//components/visitedlink/renderer", # Blocked on blink | 256 "//components/visitedlink/renderer", # Blocked on blink |
240 "//components/web_cache/browser", # Blocked on content and blink. | 257 "//components/web_cache/browser", # Blocked on content and blink. |
241 "//components/web_cache/renderer", # Blocked on content and blink. | 258 "//components/web_cache/renderer", # Blocked on content and blink. |
242 "//components/web_modal", # Blocked on content. | 259 "//components/web_modal", # Blocked on content. |
243 ] | 260 ] |
244 } | 261 } |
245 | |
246 if (!is_ios && !is_android) { | |
247 deps += [ | |
248 "//components/copresence", | |
249 "//components/storage_monitor", | |
250 ] | |
251 } | |
252 | |
253 if (!is_ios) { | |
254 deps += [ | |
255 "//components/app_modal", | |
256 "//components/browsing_data", | |
257 "//components/certificate_transparency", | |
258 "//components/guest_view/browser", | |
259 "//components/guest_view/common", | |
260 "//components/guest_view/renderer", | |
261 "//components/page_load_metrics/browser", | |
262 "//components/page_load_metrics/common", | |
263 "//components/page_load_metrics/renderer", | |
264 "//components/safe_json", | |
265 "//components/scheduler", | |
266 "//components/test_runner", | |
267 "//components/webcrypto", | |
268 ] | |
269 } | |
270 | |
271 if (toolkit_views) { | |
272 deps += [ "//components/constrained_window" ] | |
273 } | |
274 } | 262 } |
275 | 263 |
276 # TODO(GYP): Delete this after we've converted everything to GN. | 264 # TODO(GYP): Delete this after we've converted everything to GN. |
277 # The _run targets exist only for compatibility w/ GYP. | 265 # The _run targets exist only for compatibility w/ GYP. |
278 group("components_unittests_run") { | 266 group("components_unittests_run") { |
279 testonly = true | 267 testonly = true |
280 deps = [ | 268 deps = [ |
281 ":components_unittests", | 269 ":components_unittests", |
282 ] | 270 ] |
283 } | 271 } |
(...skipping 13 matching lines...) Expand all Loading... | |
297 | 285 |
298 # TODO(dpranke): Remove the next two lines after GN has rolled to 339778. | 286 # TODO(dpranke): Remove the next two lines after GN has rolled to 339778. |
299 "$root_out_dir/components_tests_resources.pak", | 287 "$root_out_dir/components_tests_resources.pak", |
300 "$root_out_dir/ui_test.pak", | 288 "$root_out_dir/ui_test.pak", |
301 ] | 289 ] |
302 } | 290 } |
303 | 291 |
304 # Add only ":unit_tests" dependencies here. If your tests have dependencies | 292 # Add only ":unit_tests" dependencies here. If your tests have dependencies |
305 # (this would at least include the component itself), they should be on the | 293 # (this would at least include the component itself), they should be on the |
306 # test source set and not here. | 294 # test source set and not here. |
295 | |
307 deps = [ | 296 deps = [ |
308 "//components/auto_login_parser:unit_tests", | |
309 "//components/autofill/content/browser:unit_tests", | |
310 "//components/autofill/content/renderer:unit_tests", | |
311 "//components/autofill/core/browser:unit_tests", | |
312 "//components/autofill/core/common:unit_tests", | |
313 "//components/bookmarks/browser:unit_tests", | |
314 "//components/bookmarks/managed:unit_tests", | |
315 "//components/bubble:unit_tests", | |
316 "//components/captive_portal:unit_tests", | |
317 "//components/certificate_transparency:unit_tests", | |
318 "//components/cloud_devices/common:unit_tests", | |
319 "//components/component_updater:unit_tests", | |
320 "//components/content_settings/core/browser:unit_tests", | |
321 "//components/content_settings/core/common:unit_tests", | |
322 "//components/crash/core/common:unit_tests", | |
323 "//components/crx_file:unit_tests", | |
324 "//components/data_reduction_proxy/content/browser:unit_tests", | |
325 "//components/data_reduction_proxy/core/browser:unit_tests", | |
326 "//components/data_reduction_proxy/core/common:unit_tests", | |
327 "//components/device_event_log:unit_tests", | |
328 "//components/devtools_http_handler:unit_tests", | |
329 "//components/dom_distiller/content:unit_tests", | |
330 "//components/dom_distiller/core:unit_tests", | |
331 "//components/domain_reliability:unit_tests", | |
332 "//components/enhanced_bookmarks:unit_tests", | |
333 "//components/favicon/content:unit_tests", | |
334 "//components/favicon/core:unit_tests", | |
335 "//components/favicon_base:unit_tests", | |
336 "//components/gcm_driver/crypto:unit_tests", | |
337 "//components/gcm_driver/instance_id:unit_tests", | |
338 "//components/gcm_driver:unit_tests", | |
339 "//components/google/core/browser:unit_tests", | |
340 "//components/history/content/browser:unit_tests", | |
341 "//components/history/core/browser:unit_tests", | |
342 "//components/history/core/common:unit_tests", | |
343 "//components/invalidation/impl:unit_tests", | |
344 "//components/json_schema:unit_tests", | |
345 "//components/keyed_service/content:unit_tests", | |
346 "//components/keyed_service/core:unit_tests", | |
347 "//components/language_usage_metrics:unit_tests", | |
348 "//components/leveldb_proto:unit_tests", | |
349 "//components/login:unit_tests", | |
350 "//components/memory_pressure:unit_tests", | |
351 "//components/metrics:unit_tests", | |
352 "//components/mime_util:unit_tests", | |
353 "//components/net_log:unit_tests", | |
354 "//components/network_time:unit_tests", | |
355 "//components/offline_pages:unit_tests", | |
356 "//components/omnibox/browser:unit_tests", | |
357 "//components/open_from_clipboard:unit_tests", | |
358 "//components/os_crypt:unit_tests", | |
359 "//components/packed_ct_ev_whitelist:unit_tests", | |
360 "//components/password_manager/content/browser:unit_tests", | |
361 "//components/password_manager/core/browser:unit_tests", | |
362 "//components/password_manager/core/common:unit_tests", | |
363 "//components/password_manager/sync/browser:unit_tests", | |
364 "//components/precache/content:unit_tests", | |
365 "//components/precache/core:unit_tests", | |
366 "//components/proxy_config:unit_tests", | |
367 "//components/query_parser:unit_tests", | |
368 "//components/rappor:unit_tests", | |
369 "//components/search:unit_tests", | |
370 "//components/search_engines:unit_tests", | |
371 "//components/search_provider_logos:unit_tests", | |
372 "//components/signin/core/browser:unit_tests", | |
373 "//components/suggestions:unit_tests", | |
374 "//components/sync_driver:unit_tests", | |
375 "//components/syncable_prefs:unit_tests", | |
376 "//components/translate/core/browser:unit_tests", | |
377 "//components/translate/core/common:unit_tests", | |
378 "//components/translate/core/language_detection:unit_tests", | |
379 "//components/undo:unit_tests", | |
380 "//components/url_formatter:unit_tests", | |
381 "//components/url_matcher:unit_tests", | |
382 "//components/update_client:unit_tests", | |
383 "//components/upload_list:unit_tests", | |
384 "//components/user_prefs/tracked:unit_tests", | |
385 "//components/variations:unit_tests", | |
386 "//components/variations/service:unit_tests", | |
387 "//components/wallpaper:unit_tests", | |
388 "//components/web_resource:unit_tests", | |
389 "//components/webcrypto:unit_tests", | |
390 "//components/webdata/common:unit_tests", | |
391 | |
392 # These are the deps required by the code in this target. | |
393 "//base", | 297 "//base", |
394 "//base/test:test_support", | 298 "//base/test:test_support", |
395 "//components/policy:policy_component", | 299 "//components/bookmarks/browser:unit_tests", |
396 "//content/test:test_support", | 300 "//components/content_settings/core/common", |
397 "//net", | 301 "//net", |
398 "//ui/base", | 302 "//ui/base", |
399 "//ui/resources:ui_test_pak", | 303 "//ui/resources:ui_test_pak", |
400 ] | 304 ] |
401 | 305 |
402 data_deps = [ | 306 if (!is_ios) { |
403 ":components_tests_pak", | 307 deps += [ |
404 "//third_party/mesa:osmesa", | 308 "//components/enhanced_bookmarks:unit_tests", |
405 "//ui/resources:ui_test_pak", | 309 "//components/error_page/renderer:unit_tests", |
406 ] | 310 "//components/guest_view/browser:unit_tests", |
407 | 311 "//components/navigation_interception:unit_tests", |
408 if (enable_rlz_support) { | 312 "//components/network_hints/renderer:unit_tests", |
409 deps += [ "//components/rlz:unit_tests" ] | 313 "//components/power:unit_tests", |
410 } | 314 "//components/safe_json:unit_tests", |
411 | 315 "//components/scheduler:unit_tests", |
412 if (is_android) { | 316 "//components/test_runner:test_runner", |
413 isolate_file = "components_unittests.isolate" | 317 "//components/ui/zoom:unit_tests", |
414 | 318 "//components/visitedlink/test:unit_tests", |
415 deps += [ "//content/public/android:content_java" ] | 319 "//components/web_cache/browser:unit_tests", |
416 deps -= [ | 320 "//components/auto_login_parser:unit_tests", |
321 "//components/autofill/content/browser:unit_tests", | |
322 "//components/autofill/content/renderer:unit_tests", | |
323 "//components/autofill/core/browser:unit_tests", | |
324 "//components/autofill/core/common:unit_tests", | |
325 "//components/bubble:unit_tests", | |
326 "//components/captive_portal:unit_tests", | |
327 "//components/cloud_devices/common:unit_tests", | |
328 "//components/component_updater:unit_tests", | |
329 "//components/content_settings/core/browser:unit_tests", | |
330 "//components/content_settings/core/common:unit_tests", | |
331 "//components/crx_file:unit_tests", | |
332 "//components/data_reduction_proxy/content/browser:unit_tests", | |
333 "//components/data_reduction_proxy/core/browser:unit_tests", | |
334 "//components/data_reduction_proxy/core/common:unit_tests", | |
335 "//components/device_event_log:unit_tests", | |
336 "//components/devtools_http_handler:unit_tests", | |
337 "//components/dom_distiller/content:unit_tests", | |
338 "//components/dom_distiller/core:unit_tests", | |
339 "//components/domain_reliability:unit_tests", | |
340 "//components/favicon/content:unit_tests", | |
341 "//components/favicon/core:unit_tests", | |
342 "//components/favicon_base:unit_tests", | |
343 "//components/gcm_driver/crypto:unit_tests", | |
344 "//components/gcm_driver/instance_id:unit_tests", | |
417 "//components/gcm_driver:unit_tests", | 345 "//components/gcm_driver:unit_tests", |
418 "//components/gcm_driver/instance_id:unit_tests", | 346 "//components/google/core/browser:unit_tests", |
347 "//components/history/content/browser:unit_tests", | |
348 "//components/history/core/browser:unit_tests", | |
349 "//components/history/core/common:unit_tests", | |
350 "//components/invalidation/impl:unit_tests", | |
351 "//components/json_schema:unit_tests", | |
352 "//components/keyed_service/content:unit_tests", | |
353 "//components/keyed_service/core:unit_tests", | |
354 "//components/language_usage_metrics:unit_tests", | |
355 "//components/leveldb_proto:unit_tests", | |
356 "//components/login:unit_tests", | |
357 "//components/memory_pressure:unit_tests", | |
358 "//components/metrics:unit_tests", | |
359 "//components/mime_util:unit_tests", | |
360 "//components/network_time:unit_tests", | |
361 "//components/offline_pages:unit_tests", | |
362 "//components/omnibox/browser:unit_tests", | |
363 "//components/open_from_clipboard:unit_tests", | |
364 "//components/os_crypt:unit_tests", | |
365 "//components/packed_ct_ev_whitelist:unit_tests", | |
419 "//components/password_manager/content/browser:unit_tests", | 366 "//components/password_manager/content/browser:unit_tests", |
420 "//components/password_manager/core/browser:unit_tests", | 367 "//components/password_manager/core/browser:unit_tests", |
421 "//components/password_manager/core/common:unit_tests", | 368 "//components/password_manager/core/common:unit_tests", |
422 "//components/password_manager/sync/browser:unit_tests", | 369 "//components/password_manager/sync/browser:unit_tests", |
370 "//components/precache/content:unit_tests", | |
371 "//components/precache/core:unit_tests", | |
372 "//components/proxy_config:unit_tests", | |
373 "//components/query_parser:unit_tests", | |
374 "//components/rappor:unit_tests", | |
375 "//components/search:unit_tests", | |
376 "//components/search_engines:unit_tests", | |
377 "//components/search_provider_logos:unit_tests", | |
378 "//components/signin/core/browser:unit_tests", | |
379 "//components/suggestions:unit_tests", | |
380 "//components/sync_driver:unit_tests", | |
381 "//components/translate/core/browser:unit_tests", | |
382 "//components/translate/core/common:unit_tests", | |
383 "//components/translate/core/language_detection:unit_tests", | |
384 "//components/undo:unit_tests", | |
385 "//components/url_formatter:unit_tests", | |
386 "//components/url_matcher:unit_tests", | |
387 "//components/update_client:unit_tests", | |
388 "//components/upload_list:unit_tests", | |
389 "//components/user_prefs/tracked:unit_tests", | |
390 "//components/variations:unit_tests", | |
blundell
2015/10/15 08:41:39
It looks like this CL didn't move over //component
| |
391 "//components/wallpaper:unit_tests", | |
392 "//components/web_resource:unit_tests", | |
393 "//components/webcrypto:unit_tests", | |
394 "//components/webdata/common:unit_tests", | |
395 | |
396 # These are the deps required by the code in this target. | |
397 "//components/policy:policy_component", | |
398 "//content/test:test_support", | |
423 ] | 399 ] |
424 } | |
425 | 400 |
426 if (!is_android && !is_ios) { | 401 if (!is_android) { |
427 deps += [ | 402 deps += [ |
428 "//components/audio_modem:unit_tests", | 403 "//components/audio_modem:unit_tests", |
429 "//components/copresence:unit_tests", | 404 "//components/copresence:unit_tests", |
430 "//components/feedback:unit_tests", | 405 "//components/feedback:unit_tests", |
431 "//components/proximity_auth:unit_tests", | 406 "//components/proximity_auth:unit_tests", |
432 "//components/sessions:unit_tests", | 407 "//components/sessions:unit_tests", |
433 "//components/storage_monitor:unit_tests", | 408 "//components/storage_monitor:unit_tests", |
434 "//components/tracing:unit_tests", | 409 "//components/tracing:unit_tests", |
435 "//components/webusb:unit_tests", | 410 "//components/webusb:unit_tests", |
411 ] | |
412 } | |
413 data_deps = [ | |
414 ":components_tests_pak", | |
415 "//third_party/mesa:osmesa", | |
416 "//ui/resources:ui_test_pak", | |
436 ] | 417 ] |
437 } | |
438 | 418 |
439 if (is_chromeos) { | 419 if (enable_rlz_support) { |
440 deps += [ "//components/ownership:unit_tests" ] | 420 deps += [ "//components/rlz:unit_tests" ] |
441 } | 421 } |
422 if (is_android) { | |
423 isolate_file = "components_unittests.isolate" | |
442 | 424 |
443 # TODO(GYP) need this target. | 425 deps += [ "//content/public/android:content_java" ] |
444 #'breakpad/app/crash_keys_win_unittest.cc', | 426 deps -= [ |
427 "//components/gcm_driver:unit_tests", | |
428 "//components/gcm_driver/instance_id:unit_tests", | |
429 "//components/password_manager/content/browser:unit_tests", | |
430 "//components/password_manager/core/browser:unit_tests", | |
431 "//components/password_manager/core/common:unit_tests", | |
432 "//components/password_manager/sync/browser:unit_tests", | |
433 ] | |
434 } | |
435 if (is_chromeos) { | |
436 deps += [ "//components/ownership:unit_tests" ] | |
437 } | |
445 | 438 |
446 if (enable_configuration_policy) { | 439 # TODO(GYP) need this target. |
447 deps += [ | 440 #'breakpad/app/crash_keys_win_unittest.cc', |
448 "//components/policy/core/browser:unit_tests", | 441 |
449 "//components/policy/core/common:unit_tests", | 442 if (enable_configuration_policy) { |
450 ] | 443 deps += [ |
444 "//components/policy/core/browser:unit_tests", | |
445 "//components/policy/core/common:unit_tests", | |
446 ] | |
447 } | |
451 } | 448 } |
452 | 449 |
453 if (toolkit_views) { | 450 if (toolkit_views) { |
454 # TODO bug 522654 Enable this when the undefined symbol is fixed in | 451 # TODO bug 522654 Enable this when the undefined symbol is fixed in |
455 # web_modal such that this links. | 452 # web_modal such that this links. |
456 #deps += [ "//components/constrained_window:unit_tests" ] | 453 #deps += [ "//components/constrained_window:unit_tests" ] |
457 } | 454 } |
455 | |
458 if (is_win) { | 456 if (is_win) { |
459 deps += [ "//components/browser_watcher:unit_tests" ] | 457 deps += [ "//components/browser_watcher:unit_tests" ] |
460 } | 458 } |
461 if (is_ios) { | |
462 deps += [ "//components/signin/core/browser:unit_tests" ] | |
463 deps -= [ "//components/devtools_http_handler:unit_tests" ] | |
464 } else { | |
465 # Non-iOS tests. | |
466 deps += [ | |
467 "//components/error_page/renderer:unit_tests", | |
468 "//components/guest_view/browser:unit_tests", | |
469 "//components/navigation_interception:unit_tests", | |
470 "//components/network_hints/renderer:unit_tests", | |
471 "//components/page_load_metrics/browser:unit_tests", | |
472 "//components/page_load_metrics/renderer:unit_tests", | |
473 "//components/power:unit_tests", | |
474 "//components/safe_json:unit_tests", | |
475 "//components/scheduler:unit_tests", | |
476 "//components/test_runner:test_runner", | |
477 "//components/ui/zoom:unit_tests", | |
478 "//components/visitedlink/test:unit_tests", | |
479 "//components/web_cache/browser:unit_tests", | |
480 ] | |
481 } | |
482 | 459 |
483 if (enable_basic_printing || enable_print_preview) { | 460 if (enable_basic_printing || enable_print_preview) { |
484 deps += [ | 461 deps += [ |
485 "//components/printing/browser", | 462 "//components/printing/browser", |
486 "//components/printing/common", | 463 "//components/printing/common", |
487 "//components/printing/renderer", | 464 "//components/printing/renderer", |
488 ] | 465 ] |
489 } | 466 } |
490 } | 467 } |
491 | 468 |
492 repack("components_tests_pak") { | 469 repack("components_tests_pak") { |
493 sources = [ | 470 sources = [ |
494 "$root_gen_dir/components/components_resources.pak", | 471 "$root_gen_dir/components/components_resources.pak", |
495 "$root_gen_dir/components/strings/components_strings_en-US.pak", | 472 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
496 ] | 473 ] |
497 | 474 |
498 output = "$root_out_dir/components_tests_resources.pak" | 475 output = "$root_out_dir/components_tests_resources.pak" |
499 | |
500 deps = [ | 476 deps = [ |
501 "//components/resources", | 477 "//components/resources", |
502 "//components/strings", | 478 "//components/strings", |
503 ] | 479 ] |
504 } | 480 } |
505 | 481 |
506 # TODO(GYP): Delete this after we've converted everything to GN. | 482 # TODO(GYP): Delete this after we've converted everything to GN. |
507 # The _run targets exist only for compatibility w/ GYP. | 483 # The _run targets exist only for compatibility w/ GYP. |
508 group("components_browsertests_run") { | 484 group("components_browsertests_run") { |
509 testonly = true | 485 testonly = true |
510 deps = [ | 486 deps = [ |
511 ":components_browsertests", | 487 ":components_browsertests", |
512 ] | 488 ] |
513 } | 489 } |
514 | 490 |
515 test("components_browsertests") { | 491 test("components_browsertests") { |
516 sources = [ | 492 sources = [] |
517 "autofill/content/browser/risk/fingerprint_browsertest.cc", | 493 if (!is_ios) { |
518 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", | 494 sources = [ |
519 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc", | 495 "autofill/content/browser/risk/fingerprint_browsertest.cc", |
520 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc", | 496 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", |
521 "dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc", | 497 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc", |
522 "password_manager/content/renderer/credential_manager_client_browsertest.cc" , | 498 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc" , |
523 ] | 499 "dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc", |
500 "password_manager/content/renderer/credential_manager_client_browsertest.c c", | |
501 ] | |
524 | 502 |
525 data = [ | 503 data = [ |
526 "$root_out_dir/components_tests_resources.pak", | 504 "$root_out_dir/components_tests_resources.pak", |
527 "$root_out_dir/content_shell.pak", | 505 "$root_out_dir/content_shell.pak", |
528 ] | 506 ] |
529 | 507 } |
530 if (is_android || is_linux || is_mac || is_win) { | 508 if (is_android || is_linux || is_mac || is_win) { |
531 data += [ | 509 data += [ |
532 "test/data/", | 510 "test/data/", |
533 "dom_distiller/core/javascript/", | 511 "dom_distiller/core/javascript/", |
534 "//third_party/dom_distiller_js/dist/test/data/", | 512 "//third_party/dom_distiller_js/dist/test/data/", |
535 ] | 513 ] |
536 } | 514 } |
537 | 515 |
538 if (is_mac) { | 516 if (is_mac) { |
539 data += [ "$root_out_dir/Content Shell.app/" ] | 517 data += [ "$root_out_dir/Content Shell.app/" ] |
540 } | 518 } |
541 | 519 |
542 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 520 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
543 | |
544 deps = [ | 521 deps = [ |
545 "autofill/content/browser", | |
546 "autofill/content/renderer", | |
547 "content_settings/core/common", | |
548 "dom_distiller/content:content_browser", | |
549 "dom_distiller/core", | |
550 "dom_distiller/core:test_support", | |
551 "password_manager/content/browser", | |
552 "password_manager/content/common", | |
553 "password_manager/content/renderer", | |
554 "strings", | 522 "strings", |
555 "//base", | 523 "//base", |
556 "//base/test:test_support", | 524 "//base/test:test_support", |
557 "//content/test:browsertest_support", | |
558 "//content/test:test_support", | |
559 "//device/bluetooth", | |
560 "//testing/gmock", | 525 "//testing/gmock", |
561 "//testing/gtest", | 526 "//testing/gtest", |
562 "//ui/base", | |
563 ] | 527 ] |
528 if (!is_ios) { | |
529 deps += [ | |
530 "autofill/content/browser", | |
531 "autofill/content/renderer", | |
532 "content_settings/core/common", | |
533 "dom_distiller/content:content_browser", | |
534 "dom_distiller/core", | |
535 "dom_distiller/core:test_support", | |
536 "password_manager/content/browser", | |
537 "password_manager/content/common", | |
538 "password_manager/content/renderer", | |
539 "//content/test:browsertest_support", | |
540 "//content/test:test_support", | |
541 "//device/bluetooth", | |
542 "//ui/base", | |
543 ] | |
564 | 544 |
565 data_deps = [ | 545 data_deps = [ |
566 ":components_tests_pak", | 546 ":components_tests_pak", |
567 "//third_party/mesa:osmesa", | 547 "//third_party/mesa:osmesa", |
568 ] | 548 ] |
569 | 549 } |
570 if (is_android) { | 550 if (is_android) { |
571 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_onl oad.cc" ] | 551 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_onl oad.cc" ] |
572 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] | 552 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] |
573 deps += [ "//testing/android/native_test:native_test_support" ] | 553 deps += [ "//testing/android/native_test:native_test_support" ] |
574 use_launcher = false | 554 use_launcher = false |
575 isolate_file = "components_browsertests.isolate" | 555 isolate_file = "components_browsertests.isolate" |
576 } | 556 } |
577 | 557 |
578 if (is_linux) { | 558 if (is_linux) { |
579 # content_extractor_browsertest is a standalone content extraction tool buil t as | 559 # content_extractor_browsertest is a standalone content extraction tool buil t as |
(...skipping 14 matching lines...) Expand all Loading... | |
594 test("components_perftests") { | 574 test("components_perftests") { |
595 sources = [ | 575 sources = [ |
596 "scheduler/child/task_queue_manager_perftest.cc", | 576 "scheduler/child/task_queue_manager_perftest.cc", |
597 "visitedlink/test/visitedlink_perftest.cc", | 577 "visitedlink/test/visitedlink_perftest.cc", |
598 ] | 578 ] |
599 | 579 |
600 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 580 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
601 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 581 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
602 | 582 |
603 deps = [ | 583 deps = [ |
604 "//base", | |
605 "//base/test:test_support_perf", | |
606 "//testing/gtest", | 584 "//testing/gtest", |
607 "//testing/perf", | 585 "//testing/perf", |
608 "//content/test:test_support", | |
609 "//components/visitedlink/browser", | |
610 ] | 586 ] |
587 if (!is_ios) { | |
588 deps += [ | |
589 "//base", | |
590 "//base/test:test_support_perf", | |
591 "//content/test:test_support", | |
592 "//components/visitedlink/browser", | |
593 ] | |
594 } | |
611 } | 595 } |
OLD | NEW |