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 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 deps += [ | 217 deps += [ |
218 "//components/copresence", | 218 "//components/copresence", |
219 "//components/storage_monitor", | 219 "//components/storage_monitor", |
220 ] | 220 ] |
221 } | 221 } |
222 | 222 |
223 if (!is_ios) { | 223 if (!is_ios) { |
224 deps += [ | 224 deps += [ |
225 "//components/app_modal", | 225 "//components/app_modal", |
226 "//components/browsing_data", | 226 "//components/browsing_data", |
| 227 "//components/scheduler", |
227 ] | 228 ] |
228 } | 229 } |
229 | 230 |
230 if (toolkit_views) { | 231 if (toolkit_views) { |
231 deps += [ "//components/constrained_window" ] | 232 deps += [ "//components/constrained_window" ] |
232 } | 233 } |
233 } | 234 } |
234 | 235 |
235 # To add a unit test to this target, make a "unit_test" source_set in your | 236 # To add a unit test to this target, make a "unit_test" source_set in your |
236 # component (it's important to use a source_set instead of a static library or | 237 # component (it's important to use a source_set instead of a static library or |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 if (toolkit_views) { | 300 if (toolkit_views) { |
300 # TODO(GYP) enable this as above. | 301 # TODO(GYP) enable this as above. |
301 #deps += [ "//components/constrained_window:unit_tests" ] | 302 #deps += [ "//components/constrained_window:unit_tests" ] |
302 } | 303 } |
303 if (is_win) { | 304 if (is_win) { |
304 deps += [ "//components/browser_watcher:unit_tests" ] | 305 deps += [ "//components/browser_watcher:unit_tests" ] |
305 } | 306 } |
306 if (is_ios) { | 307 if (is_ios) { |
307 deps -= [ "//components/devtools_http_handler:unit_tests" ] | 308 deps -= [ "//components/devtools_http_handler:unit_tests" ] |
308 } | 309 } |
| 310 |
| 311 if (!is_ios) { |
| 312 deps += [ "//components/scheduler:unit_tests" ] |
| 313 } |
309 } | 314 } |
310 | 315 |
311 repack("components_tests_pak") { | 316 repack("components_tests_pak") { |
312 sources = [ | 317 sources = [ |
313 "$root_gen_dir/components/components_resources.pak", | 318 "$root_gen_dir/components/components_resources.pak", |
314 "$root_gen_dir/components/strings/components_strings_en-US.pak", | 319 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
315 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 320 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
316 "$root_gen_dir/ui/resources/webui_resources.pak", | 321 "$root_gen_dir/ui/resources/webui_resources.pak", |
317 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 322 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
318 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 323 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] | 377 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] |
373 deps += [ | 378 deps += [ |
374 "pref_registry:test_support", | 379 "pref_registry:test_support", |
375 "//base:prefs_test_support", | 380 "//base:prefs_test_support", |
376 ] | 381 ] |
377 } | 382 } |
378 } | 383 } |
379 | 384 |
380 test("components_perftests") { | 385 test("components_perftests") { |
381 sources = [ | 386 sources = [ |
| 387 "scheduler/child/task_queue_manager_perftest.cc", |
382 "visitedlink/test/visitedlink_perftest.cc", | 388 "visitedlink/test/visitedlink_perftest.cc", |
383 ] | 389 ] |
384 | 390 |
385 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 391 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
386 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 392 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
387 | 393 |
388 deps = [ | 394 deps = [ |
389 "//base", | 395 "//base", |
390 "//base/test:test_support_perf", | 396 "//base/test:test_support_perf", |
391 "//testing/gtest", | 397 "//testing/gtest", |
| 398 "//testing/perf", |
392 "//content/test:test_support", | 399 "//content/test:test_support", |
393 "//components/visitedlink/browser", | 400 "//components/visitedlink/browser", |
394 ] | 401 ] |
395 } | 402 } |
OLD | NEW |