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 if (is_android) { | 10 if (is_android) { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
349 | 349 |
350 deps = [ | 350 deps = [ |
351 "//base", | 351 "//base", |
352 "//base/test:test_support", | 352 "//base/test:test_support", |
353 "//components/autofill/core/browser:unit_tests", | 353 "//components/autofill/core/browser:unit_tests", |
354 "//components/autofill/core/common:unit_tests", | 354 "//components/autofill/core/common:unit_tests", |
355 "//components/bookmarks/browser:unit_tests", | 355 "//components/bookmarks/browser:unit_tests", |
356 "//components/bookmarks/managed:unit_tests", | 356 "//components/bookmarks/managed:unit_tests", |
357 "//components/compression:unit_tests", | 357 "//components/compression:unit_tests", |
358 "//components/content_settings/core/browser:unit_tests", | 358 "//components/content_settings/core/browser:unit_tests", |
359 "//components/content_settings/core/common", | |
359 "//components/content_settings/core/common:unit_tests", | 360 "//components/content_settings/core/common:unit_tests", |
360 "//components/data_usage/core:unit_tests", | 361 "//components/data_usage/core:unit_tests", |
361 "//components/dom_distiller/core:unit_tests", | 362 "//components/dom_distiller/core:unit_tests", |
362 "//components/enhanced_bookmarks:unit_tests", | 363 "//components/enhanced_bookmarks:unit_tests", |
363 "//components/favicon/core:unit_tests", | 364 "//components/favicon/core:unit_tests", |
364 "//components/favicon_base:unit_tests", | 365 "//components/favicon_base:unit_tests", |
365 "//components/flags_ui:unit_tests", | 366 "//components/flags_ui:unit_tests", |
366 "//components/gcm_driver:unit_tests", | 367 "//components/gcm_driver:unit_tests", |
367 "//components/google/core/browser:unit_tests", | 368 "//components/google/core/browser:unit_tests", |
368 "//components/history/core/browser:unit_tests", | 369 "//components/history/core/browser:unit_tests", |
(...skipping 22 matching lines...) Expand all Loading... | |
391 "//components/translate/core/browser:unit_tests", | 392 "//components/translate/core/browser:unit_tests", |
392 "//components/translate/core/common:unit_tests", | 393 "//components/translate/core/common:unit_tests", |
393 "//components/translate/core/language_detection:unit_tests", | 394 "//components/translate/core/language_detection:unit_tests", |
394 "//components/undo:unit_tests", | 395 "//components/undo:unit_tests", |
395 "//components/update_client:unit_tests", | 396 "//components/update_client:unit_tests", |
396 "//components/upload_list:unit_tests", | 397 "//components/upload_list:unit_tests", |
397 "//components/variations:unit_tests", | 398 "//components/variations:unit_tests", |
398 "//components/variations/service:unit_tests", | 399 "//components/variations/service:unit_tests", |
399 "//components/web_resource:unit_tests", | 400 "//components/web_resource:unit_tests", |
400 "//net", | 401 "//net", |
402 "//testing/gtest", | |
401 "//ui/base", | 403 "//ui/base", |
404 "//ui/gl:test_support", | |
402 "//ui/resources:ui_test_pak", | 405 "//ui/resources:ui_test_pak", |
403 ] | 406 ] |
404 | 407 |
405 if (!is_ios) { | 408 if (is_ios) { |
409 deps += [ | |
410 "//components/signin/ios/browser:unit_tests", | |
411 "//components/translate/ios/browser:unit_tests", | |
412 "//components/webp_transcode:unit_tests", | |
413 ] | |
414 } else { # !iOS | |
406 deps += [ | 415 deps += [ |
407 "//components/auto_login_parser:unit_tests", | 416 "//components/auto_login_parser:unit_tests", |
408 "//components/autofill/content/browser:unit_tests", | 417 "//components/autofill/content/browser:unit_tests", |
409 "//components/autofill/content/renderer:unit_tests", | 418 "//components/autofill/content/renderer:unit_tests", |
410 "//components/bubble:unit_tests", | 419 "//components/bubble:unit_tests", |
411 "//components/captive_portal:unit_tests", | 420 "//components/captive_portal:unit_tests", |
412 "//components/certificate_transparency:unit_tests", | 421 "//components/certificate_transparency:unit_tests", |
413 "//components/cloud_devices/common:unit_tests", | 422 "//components/cloud_devices/common:unit_tests", |
414 "//components/component_updater:unit_tests", | 423 "//components/component_updater:unit_tests", |
415 "//components/crx_file:unit_tests", | 424 "//components/crx_file:unit_tests", |
416 "//components/data_reduction_proxy/content/browser:unit_tests", | 425 "//components/data_reduction_proxy/content/browser:unit_tests", |
417 "//components/data_reduction_proxy/core/browser:unit_tests", | 426 "//components/data_reduction_proxy/core/browser:unit_tests", |
418 "//components/data_reduction_proxy/core/common:unit_tests", | 427 "//components/data_reduction_proxy/core/common:unit_tests", |
419 "//components/data_use_measurement/content:unit_tests", | 428 "//components/data_use_measurement/content:unit_tests", |
420 "//components/device_event_log:unit_tests", | 429 "//components/device_event_log:unit_tests", |
421 "//components/devtools_http_handler:unit_tests", | 430 "//components/devtools_http_handler:unit_tests", |
422 "//components/dom_distiller/content:unit_tests", | 431 "//components/dom_distiller/content/browser:unit_tests", |
423 "//components/domain_reliability:unit_tests", | 432 "//components/domain_reliability:unit_tests", |
424 "//components/error_page/renderer:unit_tests", | 433 "//components/error_page/renderer:unit_tests", |
425 "//components/favicon/content:unit_tests", | 434 "//components/favicon/content:unit_tests", |
426 "//components/gcm_driver/crypto:unit_tests", | 435 "//components/gcm_driver/crypto:unit_tests", |
427 "//components/gcm_driver/instance_id:unit_tests", | |
428 "//components/guest_view/browser:unit_tests", | 436 "//components/guest_view/browser:unit_tests", |
429 "//components/history/content/browser:unit_tests", | 437 "//components/history/content/browser:unit_tests", |
430 "//components/json_schema:unit_tests", | 438 "//components/json_schema:unit_tests", |
431 "//components/keyed_service/content:unit_tests", | 439 "//components/keyed_service/content:unit_tests", |
432 "//components/language_usage_metrics:unit_tests", | 440 "//components/language_usage_metrics:unit_tests", |
433 "//components/login:unit_tests", | 441 "//components/login:unit_tests", |
434 "//components/memory_pressure:unit_tests", | 442 "//components/memory_pressure:unit_tests", |
435 "//components/mime_util:unit_tests", | 443 "//components/mime_util:unit_tests", |
436 "//components/navigation_interception:unit_tests", | 444 "//components/navigation_interception:unit_tests", |
437 "//components/network_hints/renderer:unit_tests", | 445 "//components/network_hints/renderer:unit_tests", |
(...skipping 25 matching lines...) Expand all Loading... | |
463 "//components/wallpaper:unit_tests", | 471 "//components/wallpaper:unit_tests", |
464 "//components/web_cache/browser:unit_tests", | 472 "//components/web_cache/browser:unit_tests", |
465 "//components/webcrypto:unit_tests", | 473 "//components/webcrypto:unit_tests", |
466 "//components/webdata/common:unit_tests", | 474 "//components/webdata/common:unit_tests", |
467 | 475 |
468 # These are the deps required by the code in this target. | 476 # These are the deps required by the code in this target. |
469 "//components/policy:policy_component", | 477 "//components/policy:policy_component", |
470 "//content/test:test_support", | 478 "//content/test:test_support", |
471 ] | 479 ] |
472 | 480 |
473 if (!is_android) { | |
474 deps += [ | |
475 "//components/audio_modem:unit_tests", | |
476 "//components/copresence:unit_tests", | |
477 "//components/feedback:unit_tests", | |
478 "//components/proximity_auth:unit_tests", | |
479 "//components/storage_monitor:unit_tests", | |
480 "//components/web_modal:unit_tests", | |
481 "//components/webusb:unit_tests", | |
482 ] | |
483 } | |
484 data_deps = [ | 481 data_deps = [ |
485 ":components_tests_pak", | 482 ":components_tests_pak", |
486 "//third_party/mesa:osmesa", | 483 "//third_party/mesa:osmesa", |
487 "//ui/resources:ui_test_pak", | 484 "//ui/resources:ui_test_pak", |
488 ] | 485 ] |
486 } # iOS/!iOS | |
489 | 487 |
490 if (enable_rlz_support) { | 488 if (is_android) { |
491 deps += [ "//components/rlz:unit_tests" ] | 489 isolate_file = "components_unittests.isolate" |
492 } | |
493 if (is_android) { | |
494 isolate_file = "components_unittests.isolate" | |
495 | 490 |
496 deps += [ "//content/public/android:content_java" ] | 491 deps += [ |
497 deps -= [ "//components/gcm_driver/instance_id:unit_tests" ] | 492 "//components/invalidation/impl", |
493 "//components/safe_json", | |
494 "//components/signin/core/browser", | |
495 "//content/public/android:content_java", | |
496 "//content/public/browser", | |
497 "//net", | |
498 "//ui/base", | |
499 "//ui/gfx", | |
500 ] | |
498 | 501 |
499 apk_deps = [ | 502 apk_deps = [ |
500 "//components/invalidation/impl:java", | 503 "//components/invalidation/impl:java", |
501 "//components/safe_json/android:safe_json_java", | 504 "//components/safe_json/android:safe_json_java", |
502 "//components/signin/core/browser/android:java", | 505 "//components/signin/core/browser/android:java", |
503 "//components/variations/android:variations_java", | 506 "//components/variations/android:variations_java", |
504 "//content/public/android:content_java", | 507 "//content/public/android:content_java", |
505 "//ui/android:ui_java", | 508 "//ui/android:ui_java", |
506 ] | 509 ] |
507 | |
508 if (enable_configuration_policy) { | |
509 apk_deps += [ "//components/policy/android:policy_java" ] | |
510 } | |
511 } | |
512 if (is_chromeos) { | |
513 deps += [ | |
514 "//components/arc:unit_tests", | |
515 "//components/ownership:unit_tests", | |
516 ] | |
517 } | |
518 | |
519 # TODO(GYP) need this target. | |
520 #'breakpad/app/crash_keys_win_unittest.cc', | |
521 | 510 |
522 if (enable_configuration_policy) { | 511 if (enable_configuration_policy) { |
523 deps += [ | 512 apk_deps += [ "//components/policy/android:policy_java" ] |
524 "//components/policy/core/browser:unit_tests", | |
525 "//components/policy/core/common:unit_tests", | |
526 ] | |
527 } | 513 } |
528 } else { | 514 } |
515 | |
516 # Desktop-only deps. | |
517 if (!is_android && !is_ios) { | |
529 deps += [ | 518 deps += [ |
530 "//components/signin/ios/browser:unit_tests", | 519 "//components/audio_modem:unit_tests", |
531 "//components/translate/ios/browser:unit_tests", | 520 "//components/copresence:unit_tests", |
532 "//components/webp_transcode:unit_tests", | 521 "//components/feedback:unit_tests", |
522 "//components/gcm_driver/instance_id:unit_tests", | |
523 "//components/proximity_auth:unit_tests", | |
524 "//components/storage_monitor:unit_tests", | |
525 "//components/web_modal:unit_tests", | |
526 "//components/webusb:unit_tests", | |
533 ] | 527 ] |
534 } | 528 } |
535 | 529 |
530 if (enable_rlz_support) { | |
531 deps += [ "//components/rlz:unit_tests" ] | |
Dirk Pranke
2015/12/01 02:11:42
I think this'll now get pulled in on iOS (where en
| |
532 } | |
533 if (is_chromeos) { | |
534 deps += [ | |
535 "//components/arc:unit_tests", | |
536 "//components/ownership:unit_tests", | |
537 ] | |
538 } | |
539 | |
540 # TODO(GYP) need this target. | |
541 #'breakpad/app/crash_keys_win_unittest.cc', | |
542 | |
543 if (enable_configuration_policy) { | |
544 deps += [ | |
545 "//components/policy/core/browser:unit_tests", | |
546 "//components/policy/core/common:unit_tests", | |
547 ] | |
548 } | |
549 | |
536 if (toolkit_views) { | 550 if (toolkit_views) { |
537 # TODO bug 522654 Enable this when the undefined symbol is fixed in | 551 # TODO bug 522654 Enable this when the undefined symbol is fixed in |
538 # web_modal such that this links. | 552 # web_modal such that this links. |
539 #deps += [ "//components/constrained_window:unit_tests" ] | 553 #deps += [ "//components/constrained_window:unit_tests" ] |
540 } | 554 } |
541 | 555 |
542 if (is_win) { | 556 if (is_win) { |
543 deps += [ "//components/browser_watcher:unit_tests" ] | 557 deps += [ "//components/browser_watcher:unit_tests" ] |
544 } | 558 } |
545 | 559 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
611 # The _run targets exist only for compatibility w/ GYP. | 625 # The _run targets exist only for compatibility w/ GYP. |
612 group("components_browsertests_run") { | 626 group("components_browsertests_run") { |
613 testonly = true | 627 testonly = true |
614 deps = [ | 628 deps = [ |
615 ":components_browsertests", | 629 ":components_browsertests", |
616 ] | 630 ] |
617 } | 631 } |
618 | 632 |
619 test("components_browsertests") { | 633 test("components_browsertests") { |
620 sources = [] | 634 sources = [] |
635 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
636 data = [] | |
637 deps = [ | |
638 "//base", | |
639 "//base/test:test_support", | |
640 "//components/strings", | |
641 "//testing/gmock", | |
642 "//testing/gtest", | |
643 ] | |
644 | |
645 if (is_mac) { | |
646 data += [ "$root_out_dir/Content Shell.app/" ] | |
647 } | |
648 | |
621 if (!is_ios) { | 649 if (!is_ios) { |
622 sources = [ | 650 sources = [ |
623 "autofill/content/browser/risk/fingerprint_browsertest.cc", | 651 "autofill/content/browser/risk/fingerprint_browsertest.cc", |
624 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", | 652 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", |
625 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc", | 653 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc", |
626 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc" , | 654 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc" , |
627 "dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc", | 655 "dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc", |
628 "password_manager/content/renderer/credential_manager_client_browsertest.c c", | 656 "password_manager/content/renderer/credential_manager_client_browsertest.c c", |
629 "tracing/child_trace_message_filter_browsertest.cc", | 657 "tracing/child_trace_message_filter_browsertest.cc", |
630 ] | 658 ] |
631 | 659 |
632 data = [ | 660 data += [ |
633 "$root_out_dir/components_tests_resources.pak", | 661 "$root_out_dir/components_tests_resources.pak", |
634 "$root_out_dir/content_shell.pak", | 662 "$root_out_dir/content_shell.pak", |
635 ] | |
636 } | |
637 if (is_android || is_linux || is_mac || is_win) { | |
638 data += [ | |
639 "test/data/", | 663 "test/data/", |
640 "dom_distiller/core/javascript/", | 664 "dom_distiller/core/javascript/", |
641 "//third_party/dom_distiller_js/dist/test/data/", | 665 "//third_party/dom_distiller_js/dist/test/data/", |
642 ] | 666 ] |
643 } | |
644 | 667 |
645 if (is_mac) { | |
646 data += [ "$root_out_dir/Content Shell.app/" ] | |
647 } | |
648 | |
649 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
650 deps = [ | |
651 "//base", | |
652 "//base/test:test_support", | |
653 "//components/strings", | |
654 "//testing/gmock", | |
655 "//testing/gtest", | |
656 ] | |
657 if (!is_ios) { | |
658 deps += [ | 668 deps += [ |
659 "//components/autofill/content/browser", | 669 "//components/autofill/content/browser", |
660 "//components/autofill/content/renderer", | 670 "//components/autofill/content/renderer", |
671 "//components/autofill/core/browser", | |
661 "//components/content_settings/core/common", | 672 "//components/content_settings/core/common", |
662 "//components/dom_distiller/content:content_browser", | 673 "//components/dom_distiller/content/browser", |
663 "//components/dom_distiller/core", | 674 "//components/dom_distiller/core", |
664 "//components/dom_distiller/core:test_support", | 675 "//components/dom_distiller/core:test_support", |
665 "//components/password_manager/content/browser", | 676 "//components/password_manager/content/browser", |
666 "//components/password_manager/content/common", | 677 "//components/password_manager/content/common", |
667 "//components/password_manager/content/renderer", | 678 "//components/password_manager/content/renderer", |
668 "//components/tracing", | 679 "//components/tracing", |
680 "//content/shell:content_shell_lib", | |
669 "//content/test:browsertest_support", | 681 "//content/test:browsertest_support", |
670 "//content/test:test_support", | 682 "//content/test:test_support", |
671 "//device/bluetooth", | 683 "//device/bluetooth", |
684 "//ipc:test_support", | |
685 "//net:test_support", | |
672 "//ui/base", | 686 "//ui/base", |
673 ] | 687 ] |
674 | 688 |
675 data_deps = [ | 689 data_deps = [ |
676 ":components_tests_pak", | 690 ":components_tests_pak", |
677 "//third_party/mesa:osmesa", | 691 "//third_party/mesa:osmesa", |
678 ] | 692 ] |
679 } | 693 } |
680 if (is_android) { | 694 if (is_android) { |
681 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_onl oad.cc" ] | 695 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_onl oad.cc" ] |
682 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] | 696 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] |
683 deps += [ "//testing/android/native_test:native_test_support" ] | 697 deps += [ |
698 "//content/test:layouttest_support", | |
699 "//testing/android/native_test:native_test_support", | |
700 ] | |
684 use_default_launcher = false | 701 use_default_launcher = false |
685 isolate_file = "components_browsertests.isolate" | 702 isolate_file = "components_browsertests.isolate" |
686 android_manifest = | 703 android_manifest = |
687 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml" | 704 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml" |
688 apk_deps = [ | 705 apk_deps = [ |
689 ":components_browsertests_assets", | 706 ":components_browsertests_assets", |
690 ":components_browsertests_java", | 707 ":components_browsertests_java", |
691 ":components_browsertests_manifest", | 708 ":components_browsertests_manifest", |
692 ] | 709 ] |
693 } | 710 } |
694 | 711 |
695 if (is_linux) { | 712 if (is_linux) { |
696 # content_extractor_browsertest is a standalone content extraction tool buil t as | 713 # content_extractor_browsertest is a standalone content extraction tool buil t as |
697 # a MANUAL component_browsertest. | 714 # a MANUAL component_browsertest. |
698 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] | 715 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] |
699 deps += [ | 716 deps += [ |
700 "//base:prefs_test_support", | 717 "//base:prefs_test_support", |
718 "//components/leveldb_proto", | |
701 "//components/pref_registry:test_support", | 719 "//components/pref_registry:test_support", |
702 ] | 720 ] |
703 } | 721 } |
704 | 722 |
705 if (enable_basic_printing || enable_print_preview) { | 723 if (enable_basic_printing || enable_print_preview) { |
706 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] | 724 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] |
707 deps += [ "//components/printing/test:test_support" ] | 725 deps += [ "//components/printing/test:test_support" ] |
708 } | 726 } |
709 } | 727 } |
710 | 728 |
711 test("components_perftests") { | 729 test("components_perftests") { |
712 sources = [ | 730 sources = [ |
713 "scheduler/base/task_queue_manager_delegate_for_test.cc", | 731 "scheduler/base/task_queue_manager_delegate_for_test.cc", |
714 "scheduler/base/task_queue_manager_delegate_for_test.h", | 732 "scheduler/base/task_queue_manager_delegate_for_test.h", |
715 "scheduler/base/task_queue_manager_perftest.cc", | 733 "scheduler/base/task_queue_manager_perftest.cc", |
716 "visitedlink/test/visitedlink_perftest.cc", | 734 "visitedlink/test/visitedlink_perftest.cc", |
717 ] | 735 ] |
718 | 736 |
719 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 737 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
720 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 738 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
721 | 739 |
722 deps = [ | 740 deps = [ |
741 "//base/test:test_support", | |
723 "//testing/gtest", | 742 "//testing/gtest", |
724 "//testing/perf", | 743 "//testing/perf", |
725 ] | 744 ] |
726 if (!is_ios) { | 745 if (!is_ios) { |
727 deps += [ | 746 deps += [ |
728 "//base", | 747 "//base", |
729 "//base/test:test_support_perf", | 748 "//base/test:test_support_perf", |
749 "//components/scheduler", | |
730 "//components/visitedlink/browser", | 750 "//components/visitedlink/browser", |
731 "//content/test:test_support", | 751 "//content/test:test_support", |
732 ] | 752 ] |
733 } | 753 } |
734 } | 754 } |
OLD | NEW |