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") |
7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
8 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
9 | 10 |
10 if (is_android) { | 11 if (is_android) { |
11 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
12 } | 13 } |
13 | 14 |
14 # TODO(GYP): Delete this after we've converted everything to GN. | 15 # TODO(GYP): Delete this after we've converted everything to GN. |
15 # The _run targets exist only for compatibility w/ GYP. | 16 # The _run targets exist only for compatibility w/ GYP. |
16 group("components_unittests_run") { | 17 group("components_unittests_run") { |
(...skipping 22 matching lines...) Expand all Loading... |
39 ] | 40 ] |
40 } | 41 } |
41 | 42 |
42 # Add only ":unit_tests" dependencies here. If your tests have dependencies | 43 # Add only ":unit_tests" dependencies here. If your tests have dependencies |
43 # (this would at least include the component itself), they should be on the | 44 # (this would at least include the component itself), they should be on the |
44 # test source set and not here. | 45 # test source set and not here. |
45 | 46 |
46 deps = [ | 47 deps = [ |
47 "//base", | 48 "//base", |
48 "//base/test:test_support", | 49 "//base/test:test_support", |
49 "//components/autofill/core/browser:unit_tests", | |
50 "//components/autofill/core/common:unit_tests", | |
51 "//components/bookmarks/browser:unit_tests", | 50 "//components/bookmarks/browser:unit_tests", |
52 "//components/bookmarks/managed:unit_tests", | 51 "//components/bookmarks/managed:unit_tests", |
53 "//components/browser_sync/browser:unit_tests", | |
54 "//components/compression:unit_tests", | 52 "//components/compression:unit_tests", |
55 "//components/content_settings/core/browser:unit_tests", | 53 "//components/content_settings/core/browser:unit_tests", |
56 "//components/content_settings/core/common", | 54 "//components/content_settings/core/common", |
57 "//components/content_settings/core/common:unit_tests", | 55 "//components/content_settings/core/common:unit_tests", |
58 "//components/data_usage/core:unit_tests", | 56 "//components/data_usage/core:unit_tests", |
59 "//components/dom_distiller/core:unit_tests", | 57 "//components/dom_distiller/core:unit_tests", |
60 "//components/enhanced_bookmarks:unit_tests", | |
61 "//components/favicon/core:unit_tests", | |
62 "//components/favicon_base:unit_tests", | |
63 "//components/flags_ui:unit_tests", | 58 "//components/flags_ui:unit_tests", |
64 "//components/gcm_driver:unit_tests", | |
65 "//components/google/core/browser:unit_tests", | 59 "//components/google/core/browser:unit_tests", |
66 "//components/history/core/browser:unit_tests", | |
67 "//components/history/core/common:unit_tests", | |
68 "//components/invalidation/impl:unit_tests", | |
69 "//components/keyed_service/core:unit_tests", | 60 "//components/keyed_service/core:unit_tests", |
70 "//components/leveldb_proto:unit_tests", | 61 "//components/leveldb_proto:unit_tests", |
71 "//components/metrics:unit_tests", | 62 "//components/metrics:unit_tests", |
72 "//components/net_log:unit_tests", | 63 "//components/net_log:unit_tests", |
73 "//components/network_time:unit_tests", | 64 "//components/network_time:unit_tests", |
74 "//components/omnibox/browser:unit_tests", | |
75 "//components/open_from_clipboard:unit_tests", | 65 "//components/open_from_clipboard:unit_tests", |
76 "//components/os_crypt:unit_tests", | 66 "//components/os_crypt:unit_tests", |
77 "//components/password_manager/core/browser:unit_tests", | |
78 "//components/password_manager/core/common:unit_tests", | |
79 "//components/password_manager/sync/browser:unit_tests", | |
80 "//components/proxy_config:unit_tests", | 67 "//components/proxy_config:unit_tests", |
81 "//components/rappor:unit_tests", | |
82 "//components/search:unit_tests", | |
83 "//components/search_engines:unit_tests", | |
84 "//components/sessions:unit_tests", | 68 "//components/sessions:unit_tests", |
85 "//components/signin/core/browser:unit_tests", | |
86 "//components/suggestions:unit_tests", | 69 "//components/suggestions:unit_tests", |
87 "//components/sync_driver:unit_tests", | |
88 "//components/syncable_prefs:unit_tests", | 70 "//components/syncable_prefs:unit_tests", |
89 "//components/translate/core/browser:unit_tests", | 71 "//components/translate/core/browser:unit_tests", |
90 "//components/translate/core/common:unit_tests", | 72 "//components/translate/core/common:unit_tests", |
91 "//components/translate/core/language_detection:unit_tests", | 73 "//components/translate/core/language_detection:unit_tests", |
92 "//components/undo:unit_tests", | 74 "//components/undo:unit_tests", |
93 "//components/update_client:unit_tests", | 75 "//components/update_client:unit_tests", |
94 "//components/upload_list:unit_tests", | 76 "//components/upload_list:unit_tests", |
95 "//components/variations:unit_tests", | 77 "//components/variations:unit_tests", |
96 "//components/variations/service:unit_tests", | 78 "//components/variations/service:unit_tests", |
97 "//components/web_resource:unit_tests", | 79 "//components/web_resource:unit_tests", |
98 "//net", | 80 "//net", |
99 "//testing/gtest", | 81 "//testing/gtest", |
100 "//third_party/mojo/src/mojo/edk/embedder:headers", | 82 "//third_party/mojo/src/mojo/edk/embedder:headers", |
101 "//ui/base", | 83 "//ui/base", |
102 "//ui/gl:test_support", | |
103 "//ui/resources:ui_test_pak", | 84 "//ui/resources:ui_test_pak", |
104 ] | 85 ] |
105 | 86 |
106 if (is_ios) { | 87 if (is_ios) { |
107 deps += [ | 88 deps += [ "//components/translate/ios/browser:unit_tests" ] |
108 "//components/signin/ios/browser:unit_tests", | 89 |
109 "//components/translate/ios/browser:unit_tests", | 90 if (target_cpu != "arm") { |
110 "//components/webp_transcode:unit_tests", | 91 # TODO(GYP): iOS arm builds of libwebp don't work yet. |
111 ] | 92 deps += [ "//components/webp_transcode:unit_tests" ] |
| 93 } |
112 } else { # !iOS | 94 } else { # !iOS |
113 deps += [ | 95 deps += [ |
114 "//components/auto_login_parser:unit_tests", | 96 "//components/auto_login_parser:unit_tests", |
115 "//components/autofill/content/browser:unit_tests", | 97 "//components/autofill/content/browser:unit_tests", |
116 "//components/autofill/content/renderer:unit_tests", | 98 "//components/autofill/content/renderer:unit_tests", |
117 "//components/bubble:unit_tests", | 99 "//components/bubble:unit_tests", |
118 "//components/captive_portal:unit_tests", | 100 "//components/captive_portal:unit_tests", |
119 "//components/certificate_transparency:unit_tests", | 101 "//components/certificate_transparency:unit_tests", |
120 "//components/cloud_devices/common:unit_tests", | 102 "//components/cloud_devices/common:unit_tests", |
121 "//components/component_updater:unit_tests", | 103 "//components/component_updater:unit_tests", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 "//components/user_prefs/tracked:unit_tests", | 149 "//components/user_prefs/tracked:unit_tests", |
168 "//components/visitedlink/test:unit_tests", | 150 "//components/visitedlink/test:unit_tests", |
169 "//components/wallpaper:unit_tests", | 151 "//components/wallpaper:unit_tests", |
170 "//components/web_cache/browser:unit_tests", | 152 "//components/web_cache/browser:unit_tests", |
171 "//components/webcrypto:unit_tests", | 153 "//components/webcrypto:unit_tests", |
172 "//components/webdata/common:unit_tests", | 154 "//components/webdata/common:unit_tests", |
173 | 155 |
174 # These are the deps required by the code in this target. | 156 # These are the deps required by the code in this target. |
175 "//components/policy:policy_component", | 157 "//components/policy:policy_component", |
176 "//content/test:test_support", | 158 "//content/test:test_support", |
| 159 "//ui/gl:test_support", |
177 ] | 160 ] |
178 | 161 |
179 data_deps = [ | 162 data_deps = [ |
180 ":components_tests_pak", | 163 ":components_tests_pak", |
181 "//third_party/mesa:osmesa", | 164 "//third_party/mesa:osmesa", |
182 "//ui/resources:ui_test_pak", | 165 "//ui/resources:ui_test_pak", |
183 ] | 166 ] |
184 } # iOS/!iOS | 167 } # iOS/!iOS |
185 | 168 |
186 if (is_android) { | 169 if (is_android) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 # TODO(GYP) need this target. | 218 # TODO(GYP) need this target. |
236 #'breakpad/app/crash_keys_win_unittest.cc', | 219 #'breakpad/app/crash_keys_win_unittest.cc', |
237 | 220 |
238 if (enable_configuration_policy) { | 221 if (enable_configuration_policy) { |
239 deps += [ | 222 deps += [ |
240 "//components/policy/core/browser:unit_tests", | 223 "//components/policy/core/browser:unit_tests", |
241 "//components/policy/core/common:unit_tests", | 224 "//components/policy/core/common:unit_tests", |
242 ] | 225 ] |
243 } | 226 } |
244 | 227 |
| 228 if (!is_ios || ios_use_webrtc) { |
| 229 deps += [ |
| 230 "//components/autofill/core/browser:unit_tests", |
| 231 "//components/autofill/core/common:unit_tests", |
| 232 "//components/browser_sync/browser:unit_tests", |
| 233 "//components/enhanced_bookmarks:unit_tests", |
| 234 "//components/favicon/core:unit_tests", |
| 235 "//components/favicon_base:unit_tests", |
| 236 "//components/gcm_driver:unit_tests", |
| 237 "//components/history/core/browser:unit_tests", |
| 238 "//components/history/core/common:unit_tests", |
| 239 "//components/invalidation/impl:unit_tests", |
| 240 "//components/omnibox/browser:unit_tests", |
| 241 "//components/password_manager/core/browser:unit_tests", |
| 242 "//components/password_manager/core/common:unit_tests", |
| 243 "//components/password_manager/sync/browser:unit_tests", |
| 244 "//components/rappor:unit_tests", |
| 245 "//components/search:unit_tests", |
| 246 "//components/signin/core/browser:unit_tests", |
| 247 "//components/sync_driver:unit_tests", |
| 248 ] |
| 249 } |
| 250 |
| 251 if (ios_use_webrtc) { |
| 252 deps += [ "//components/signin/ios/browser:unit_tests" ] |
| 253 } |
| 254 |
245 if (toolkit_views) { | 255 if (toolkit_views) { |
246 # TODO bug 522654 Enable this when the undefined symbol is fixed in | 256 # TODO bug 522654 Enable this when the undefined symbol is fixed in |
247 # web_modal such that this links. | 257 # web_modal such that this links. |
248 #deps += [ "//components/constrained_window:unit_tests" ] | 258 #deps += [ "//components/constrained_window:unit_tests" ] |
249 } | 259 } |
250 | 260 |
251 if (is_win) { | 261 if (is_win) { |
252 deps += [ "//components/browser_watcher:unit_tests" ] | 262 deps += [ "//components/browser_watcher:unit_tests" ] |
253 } | 263 } |
254 | 264 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 "visitedlink/test/visitedlink_perftest.cc", | 439 "visitedlink/test/visitedlink_perftest.cc", |
430 ] | 440 ] |
431 | 441 |
432 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 442 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
433 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 443 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
434 | 444 |
435 deps = [ | 445 deps = [ |
436 "//base/test:test_support", | 446 "//base/test:test_support", |
437 "//testing/gtest", | 447 "//testing/gtest", |
438 "//testing/perf", | 448 "//testing/perf", |
| 449 "//url", |
439 ] | 450 ] |
440 if (!is_ios) { | 451 if (!is_ios) { |
441 deps += [ | 452 deps += [ |
442 "//base", | 453 "//base", |
443 "//base/test:test_support_perf", | 454 "//base/test:test_support_perf", |
444 "//components/scheduler", | 455 "//components/scheduler", |
445 "//components/visitedlink/browser", | 456 "//components/visitedlink/browser", |
446 "//content/test:test_support", | 457 "//content/test:test_support", |
447 ] | 458 ] |
448 } | 459 } |
449 } | 460 } |
OLD | NEW |