| 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 # This turns on e.g. the filename-based detection of which | 7 # This turns on e.g. the filename-based detection of which |
| 8 # platforms to include source files on (e.g. files ending in | 8 # platforms to include source files on (e.g. files ending in |
| 9 # _mac.h or _mac.cc are only compiled on MacOSX). | 9 # _mac.h or _mac.cc are only compiled on MacOSX). |
| 10 'chromium_code': 1, | 10 'chromium_code': 1, |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | 538 'web_modal/web_contents_modal_dialog_manager_unittest.cc', |
| 539 ], | 539 ], |
| 540 'web_resource_unittest_sources': [ | 540 'web_resource_unittest_sources': [ |
| 541 'web_resource/eula_accepted_notifier_unittest.cc', | 541 'web_resource/eula_accepted_notifier_unittest.cc', |
| 542 'web_resource/resource_request_allowed_notifier_unittest.cc', | 542 'web_resource/resource_request_allowed_notifier_unittest.cc', |
| 543 ], | 543 ], |
| 544 'webdata_unittest_sources': [ | 544 'webdata_unittest_sources': [ |
| 545 'webdata/common/web_database_migration_unittest.cc', | 545 'webdata/common/web_database_migration_unittest.cc', |
| 546 ], | 546 ], |
| 547 }, | 547 }, |
| 548 'conditions': [ | 548 'targets': [ |
| 549 ['android_webview_build == 0', { | 549 { |
| 550 'targets': [ | 550 # GN version: //components:components_tests_pak |
| 551 'target_name': 'components_tests_pak', |
| 552 'type': 'none', |
| 553 'dependencies': [ |
| 554 '../ui/resources/ui_resources.gyp:ui_resources', |
| 555 '../ui/strings/ui_strings.gyp:ui_strings', |
| 556 'components_resources.gyp:components_resources', |
| 557 'components_strings.gyp:components_strings', |
| 558 ], |
| 559 'actions': [ |
| 551 { | 560 { |
| 552 # GN version: //components:components_tests_pak | 561 'action_name': 'repack_components_tests_pak', |
| 553 'target_name': 'components_tests_pak', | 562 'variables': { |
| 554 'type': 'none', | 563 'pak_inputs': [ |
| 555 'dependencies': [ | 564 '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pak', |
| 556 '../ui/resources/ui_resources.gyp:ui_resources', | 565 '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_strings_
en-US.pak', |
| 557 '../ui/strings/ui_strings.gyp:ui_strings', | 566 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.
pak', |
| 558 'components_resources.gyp:components_resources', | 567 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak', |
| 559 'components_strings.gyp:components_strings', | 568 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.p
ak', |
| 569 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', |
| 570 ], |
| 571 'pak_output': '<(PRODUCT_DIR)/components_tests_resources.pak', |
| 572 }, |
| 573 'includes': [ '../build/repack_action.gypi' ], |
| 574 }, |
| 575 ], |
| 576 'direct_dependent_settings': { |
| 577 'mac_bundle_resources': [ |
| 578 '<(PRODUCT_DIR)/components_tests_resources.pak', |
| 579 ], |
| 580 }, |
| 581 }, |
| 582 { |
| 583 # GN version: //components:components_unittests |
| 584 'target_name': 'components_unittests', |
| 585 'type': '<(gtest_target_type)', |
| 586 'sources': [ |
| 587 'test/run_all_unittests.cc', |
| 588 |
| 589 '<@(auto_login_parser_unittest_sources)', |
| 590 '<@(autofill_unittest_sources)', |
| 591 '<@(bookmarks_unittest_sources)', |
| 592 '<@(browser_watcher_unittest_sources)', |
| 593 '<@(captive_portal_unittest_sources)', |
| 594 '<@(cloud_devices_unittest_sources)', |
| 595 '<@(content_settings_unittest_sources)', |
| 596 '<@(crash_unittest_sources)', |
| 597 '<@(crx_file_unittest_sources)', |
| 598 '<@(data_reduction_proxy_unittest_sources)', |
| 599 '<@(device_event_log_unittest_sources)', |
| 600 '<@(dom_distiller_unittest_sources)', |
| 601 '<@(domain_reliability_unittest_sources)', |
| 602 '<@(enhanced_bookmarks_unittest_sources)', |
| 603 '<@(favicon_base_unittest_sources)', |
| 604 '<@(gcm_driver_unittest_sources)', |
| 605 '<@(google_unittest_sources)', |
| 606 '<@(history_unittest_sources)', |
| 607 '<@(json_schema_unittest_sources)', |
| 608 '<@(keyed_service_unittest_sources)', |
| 609 '<@(language_usage_metrics_unittest_sources)', |
| 610 '<@(leveldb_proto_unittest_sources)', |
| 611 '<@(login_unittest_sources)', |
| 612 '<@(metrics_unittest_sources)', |
| 613 '<@(network_time_unittest_sources)', |
| 614 '<@(omnibox_unittest_sources)', |
| 615 '<@(os_crypt_unittest_sources)', |
| 616 '<@(ownership_unittest_sources)', |
| 617 '<@(packed_ct_ev_whitelist_unittest_sources)', |
| 618 '<@(password_manager_unittest_sources)', |
| 619 '<@(precache_unittest_sources)', |
| 620 '<@(query_parser_unittest_sources)', |
| 621 '<@(rappor_unittest_sources)', |
| 622 '<@(search_unittest_sources)', |
| 623 '<@(search_provider_logos_unittest_sources)', |
| 624 '<@(sessions_unittest_sources)', |
| 625 '<@(signin_unittest_sources)', |
| 626 '<@(suggestions_unittest_sources)', |
| 627 '<@(sync_driver_unittest_sources)', |
| 628 '<@(translate_unittest_sources)', |
| 629 '<@(update_client_unittest_sources)', |
| 630 '<@(url_fixer_unittest_sources)', |
| 631 '<@(url_matcher_unittest_sources)', |
| 632 '<@(variations_unittest_sources)', |
| 633 '<@(wallpaper_unittest_sources)', |
| 634 '<@(web_resource_unittest_sources)', |
| 635 '<@(webdata_unittest_sources)', |
| 636 ], |
| 637 'include_dirs': [ |
| 638 '..', |
| 639 ], |
| 640 'dependencies': [ |
| 641 '../base/base.gyp:base', |
| 642 '../base/base.gyp:base_prefs_test_support', |
| 643 '../base/base.gyp:test_support_base', |
| 644 # TODO(blundell): Eliminate the need for this dependency in code |
| 645 # that iOS shares. crbug.com/325243 |
| 646 '../content/content_shell_and_tests.gyp:test_support_content', |
| 647 '../google_apis/google_apis.gyp:google_apis_test_support', |
| 648 '../jingle/jingle.gyp:notifier_test_util', |
| 649 '../net/net.gyp:net_test_support', |
| 650 '../sql/sql.gyp:test_support_sql', |
| 651 '../sync/sync.gyp:sync', |
| 652 '../sync/sync.gyp:test_support_sync_api', |
| 653 '../testing/gmock.gyp:gmock', |
| 654 '../testing/gtest.gyp:gtest', |
| 655 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
| 656 '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput_util
', |
| 657 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 658 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber', |
| 659 '../third_party/libxml/libxml.gyp:libxml', |
| 660 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 661 '../ui/base/ui_base.gyp:ui_base', |
| 662 '../ui/gfx/gfx.gyp:gfx', |
| 663 '../ui/gfx/gfx.gyp:gfx_test_support', |
| 664 '../ui/resources/ui_resources.gyp:ui_resources', |
| 665 '../ui/strings/ui_strings.gyp:ui_strings', |
| 666 '../url/url.gyp:url_lib', |
| 667 'components.gyp:auto_login_parser', |
| 668 'components.gyp:autofill_core_browser', |
| 669 'components.gyp:autofill_core_common', |
| 670 'components.gyp:autofill_core_test_support', |
| 671 'components.gyp:bookmarks_browser', |
| 672 'components.gyp:bookmarks_managed', |
| 673 'components.gyp:bookmarks_test_support', |
| 674 'components.gyp:captive_portal_test_support', |
| 675 'components.gyp:cloud_devices_common', |
| 676 'components.gyp:content_settings_core_browser', |
| 677 'components.gyp:content_settings_core_common', |
| 678 'components.gyp:content_settings_core_test_support', |
| 679 'components.gyp:crash_test_support', |
| 680 'components.gyp:crx_file', |
| 681 'components.gyp:data_reduction_proxy_core_browser', |
| 682 'components.gyp:data_reduction_proxy_core_common', |
| 683 'components.gyp:data_reduction_proxy_test_support', |
| 684 'components.gyp:device_event_log_component', |
| 685 'components.gyp:dom_distiller_core', |
| 686 'components.gyp:dom_distiller_protos', |
| 687 'components.gyp:dom_distiller_test_support', |
| 688 'components.gyp:domain_reliability', |
| 689 'components.gyp:enhanced_bookmarks', |
| 690 'components.gyp:enhanced_bookmarks_test_support', |
| 691 'components.gyp:favicon_base', |
| 692 'components.gyp:gcm_driver', |
| 693 'components.gyp:gcm_driver_test_support', |
| 694 'components.gyp:google_core_browser', |
| 695 'components.gyp:history_core_browser', |
| 696 'components.gyp:history_core_common', |
| 697 'components.gyp:history_core_test_support', |
| 698 'components.gyp:invalidation', |
| 699 'components.gyp:invalidation_test_support', |
| 700 'components.gyp:json_schema', |
| 701 'components.gyp:keyed_service_core', |
| 702 'components.gyp:language_usage_metrics', |
| 703 'components.gyp:leveldb_proto', |
| 704 'components.gyp:leveldb_proto_test_support', |
| 705 'components.gyp:login', |
| 706 'components.gyp:metrics', |
| 707 'components.gyp:metrics_gpu', |
| 708 'components.gyp:metrics_net', |
| 709 'components.gyp:metrics_profiler', |
| 710 'components.gyp:metrics_test_support', |
| 711 'components.gyp:network_time', |
| 712 'components.gyp:omnibox', |
| 713 'components.gyp:omnibox_test_support', |
| 714 'components.gyp:os_crypt', |
| 715 'components.gyp:ownership', |
| 716 'components.gyp:packed_ct_ev_whitelist', |
| 717 'components.gyp:password_manager_core_browser', |
| 718 'components.gyp:password_manager_core_browser', |
| 719 'components.gyp:password_manager_core_browser_test_support', |
| 720 'components.gyp:precache_core', |
| 721 'components.gyp:pref_registry_test_support', |
| 722 'components.gyp:query_parser', |
| 723 'components.gyp:rappor', |
| 724 'components.gyp:rappor_test_support', |
| 725 'components.gyp:search', |
| 726 'components.gyp:search_engines', |
| 727 'components.gyp:search_engines_test_support', |
| 728 'components.gyp:search_provider_logos', |
| 729 'components.gyp:sessions_test_support', |
| 730 'components.gyp:signin_core_browser', |
| 731 'components.gyp:signin_core_browser_test_support', |
| 732 'components.gyp:suggestions', |
| 733 'components.gyp:sync_driver_test_support', |
| 734 'components.gyp:translate_core_browser', |
| 735 'components.gyp:translate_core_common', |
| 736 'components.gyp:translate_core_language_detection', |
| 737 'components.gyp:ui_zoom', |
| 738 'components.gyp:update_client', |
| 739 'components.gyp:update_client_test_support', |
| 740 'components.gyp:url_fixer', |
| 741 'components.gyp:variations', |
| 742 'components.gyp:variations_http_provider', |
| 743 'components.gyp:wallpaper', |
| 744 'components.gyp:web_resource', |
| 745 'components.gyp:web_resource_test_support', |
| 746 'components_resources.gyp:components_resources', |
| 747 'components_strings.gyp:components_strings', |
| 748 'components_tests_pak', |
| 749 ], |
| 750 'conditions': [ |
| 751 ['toolkit_views == 1', { |
| 752 'sources': [ |
| 753 'bookmarks/browser/bookmark_node_data_unittest.cc', |
| 754 'constrained_window/constrained_window_views_unittest.cc', |
| 755 ], |
| 756 'dependencies': [ |
| 757 '<(DEPTH)/ui/views/views.gyp:views_test_support', |
| 758 'components.gyp:constrained_window', |
| 759 ] |
| 760 }], |
| 761 ['OS=="win"', { |
| 762 'dependencies': [ |
| 763 'components.gyp:browser_watcher', |
| 764 'components.gyp:browser_watcher_client', |
| 765 ] |
| 766 }], |
| 767 ['OS=="win" and component!="shared_library" and win_use_allocator_shim==
1', { |
| 768 'dependencies': [ |
| 769 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
| 770 ], |
| 771 }], |
| 772 [ 'cld_version==0 or cld_version==2', { |
| 773 'dependencies': [ |
| 774 # Unit tests should always use statically-linked CLD data. |
| 775 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_static', ], |
| 776 }], |
| 777 ['OS != "ios"', { |
| 778 'sources': [ |
| 779 '<@(error_page_unittest_sources)', |
| 780 '<@(navigation_interception_unittest_sources)', |
| 781 '<@(network_hints_unittest_sources)', |
| 782 '<@(power_unittest_sources)', |
| 783 '<@(storage_monitor_unittest_sources)', |
| 784 '<@(ui_unittest_sources)', |
| 785 '<@(visitedlink_unittest_sources)', |
| 786 '<@(web_cache_unittest_sources)', |
| 787 '<@(web_modal_unittest_sources)', |
| 788 ], |
| 789 'dependencies': [ |
| 790 '../skia/skia.gyp:skia', |
| 791 'components.gyp:autofill_content_browser', |
| 792 'components.gyp:autofill_content_renderer', |
| 793 'components.gyp:autofill_content_test_support', |
| 794 'components.gyp:data_reduction_proxy_content_browser', |
| 795 'components.gyp:dom_distiller_content', |
| 796 'components.gyp:error_page_renderer', |
| 797 'components.gyp:history_content_browser', |
| 798 'components.gyp:keyed_service_content', |
| 799 'components.gyp:navigation_interception', |
| 800 'components.gyp:network_hints_renderer', |
| 801 'components.gyp:password_manager_content_browser', |
| 802 'components.gyp:password_manager_content_common', |
| 803 'components.gyp:power', |
| 804 'components.gyp:precache_content', |
| 805 'components.gyp:sessions_content', |
| 806 'components.gyp:storage_monitor', |
| 807 'components.gyp:storage_monitor_test_support', |
| 808 'components.gyp:url_matcher', |
| 809 'components.gyp:visitedlink_browser', |
| 810 'components.gyp:visitedlink_renderer', |
| 811 'components.gyp:web_cache_browser', |
| 812 'components.gyp:web_modal', |
| 813 'components.gyp:web_modal_test_support', |
| 814 ], |
| 815 }, { # 'OS == "ios"' |
| 816 'sources': [ |
| 817 'open_from_clipboard/clipboard_recent_content_ios_unittest.mm', |
| 818 'webp_transcode/webp_decoder_unittest.mm', |
| 819 'webp_transcode/webp_network_client_unittest.mm', |
| 820 ], |
| 821 'sources!': [ |
| 822 'metrics/gpu/gpu_metrics_provider_unittest.cc', |
| 823 'signin/core/browser/mutable_profile_oauth2_token_service_unittest.c
c', |
| 824 ], |
| 825 'sources/': [ |
| 826 # Exclude all tests that depends on //content (based on layered- |
| 827 # component directory structure). |
| 828 ['exclude', '^[^/]*/content/'], |
| 829 ], |
| 830 'dependencies': [ |
| 831 '../ios/ios_tests.gyp:test_support_ios', |
| 832 '../ios/web/ios_web.gyp:test_support_ios_web', |
| 833 '../third_party/ocmock/ocmock.gyp:ocmock', |
| 834 'components.gyp:open_from_clipboard', |
| 835 'components.gyp:sessions_ios', |
| 836 'components.gyp:signin_ios_browser', |
| 837 'components.gyp:translate_ios_browser', |
| 838 'components.gyp:webp_transcode', |
| 560 ], | 839 ], |
| 561 'actions': [ | 840 'actions': [ |
| 562 { | 841 { |
| 563 'action_name': 'repack_components_tests_pak', | 842 'action_name': 'copy_test_data', |
| 564 'variables': { | 843 'variables': { |
| 565 'pak_inputs': [ | 844 'test_data_files': [ |
| 566 '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pa
k', | 845 'test/data', |
| 567 '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_stri
ngs_en-US.pak', | |
| 568 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_perc
ent.pak', | |
| 569 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak', | |
| 570 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-
US.pak', | |
| 571 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', | |
| 572 ], | 846 ], |
| 573 'pak_output': '<(PRODUCT_DIR)/components_tests_resources.pak', | 847 'test_data_prefix': 'components', |
| 574 }, | 848 }, |
| 575 'includes': [ '../build/repack_action.gypi' ], | 849 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 576 }, | 850 }, |
| 577 ], | 851 ], |
| 578 'direct_dependent_settings': { | 852 'conditions': [ |
| 579 'mac_bundle_resources': [ | 853 ['configuration_policy==1', { |
| 580 '<(PRODUCT_DIR)/components_tests_resources.pak', | 854 'sources/': [ |
| 855 ['include', '^policy/'], |
| 856 ], |
| 857 }], |
| 858 ], |
| 859 }], |
| 860 ['disable_nacl==0', { |
| 861 'sources': [ |
| 862 '<@(nacl_unittest_sources)', |
| 863 ], |
| 864 'dependencies': [ |
| 865 'nacl.gyp:nacl_browser', |
| 866 'nacl.gyp:nacl_common', |
| 867 ], |
| 868 }], |
| 869 ['OS == "mac"', { |
| 870 'link_settings': { |
| 871 'libraries': [ |
| 872 '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework', |
| 873 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 874 '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framework', |
| 581 ], | 875 ], |
| 582 }, | 876 }, |
| 583 }, | 877 'sources!': [ |
| 584 { | 878 'password_manager/core/browser/password_store_default_unittest.cc', |
| 585 # GN version: //components:components_unittests | 879 ], |
| 586 'target_name': 'components_unittests', | 880 }], |
| 587 'type': '<(gtest_target_type)', | 881 ['OS == "android"', { |
| 588 'sources': [ | 882 'sources': [ |
| 589 'test/run_all_unittests.cc', | 883 '<@(cronet_unittest_sources)', |
| 590 | 884 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blo
cking_page_unittest.cc', |
| 591 '<@(auto_login_parser_unittest_sources)', | 885 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_res
ource_throttle_unittest.cc', |
| 592 '<@(autofill_unittest_sources)', | 886 'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_
manager_unittest.cc', |
| 593 '<@(bookmarks_unittest_sources)', | 887 'invalidation/invalidation_logger_unittest.cc', |
| 594 '<@(browser_watcher_unittest_sources)', | 888 'invalidation/invalidation_service_android_unittest.cc', |
| 595 '<@(captive_portal_unittest_sources)', | 889 ], |
| 596 '<@(cloud_devices_unittest_sources)', | 890 'sources!': [ |
| 597 '<@(content_settings_unittest_sources)', | 891 'gcm_driver/gcm_account_mapper_unittest.cc', |
| 598 '<@(crash_unittest_sources)', | 892 'gcm_driver/gcm_channel_status_request_unittest.cc', |
| 599 '<@(crx_file_unittest_sources)', | 893 'gcm_driver/gcm_client_impl_unittest.cc', |
| 600 '<@(data_reduction_proxy_unittest_sources)', | 894 'gcm_driver/gcm_delayed_task_controller_unittest.cc', |
| 601 '<@(device_event_log_unittest_sources)', | 895 'gcm_driver/gcm_driver_desktop_unittest.cc', |
| 602 '<@(dom_distiller_unittest_sources)', | 896 'gcm_driver/gcm_stats_recorder_impl_unittest.cc', |
| 603 '<@(domain_reliability_unittest_sources)', | 897 'sessions/session_backend_unittest.cc', |
| 604 '<@(enhanced_bookmarks_unittest_sources)', | 898 'signin/core/browser/mutable_profile_oauth2_token_service_unittest.c
c', |
| 605 '<@(favicon_base_unittest_sources)', | 899 'storage_monitor/media_storage_util_unittest.cc', |
| 606 '<@(gcm_driver_unittest_sources)', | 900 'storage_monitor/storage_info_unittest.cc', |
| 607 '<@(google_unittest_sources)', | 901 'storage_monitor/storage_monitor_unittest.cc', |
| 608 '<@(history_unittest_sources)', | 902 'web_modal/web_contents_modal_dialog_manager_unittest.cc', |
| 609 '<@(json_schema_unittest_sources)', | 903 ], |
| 610 '<@(keyed_service_unittest_sources)', | 904 'dependencies': [ |
| 611 '<@(language_usage_metrics_unittest_sources)', | 905 'components.gyp:cronet_static', |
| 612 '<@(leveldb_proto_unittest_sources)', | 906 'components.gyp:data_reduction_proxy_content', |
| 613 '<@(login_unittest_sources)', | 907 '../testing/android/native_test.gyp:native_test_native_code', |
| 614 '<@(metrics_unittest_sources)', | 908 ], |
| 615 '<@(network_time_unittest_sources)', | 909 'dependencies!': [ |
| 616 '<@(omnibox_unittest_sources)', | 910 'components.gyp:storage_monitor', |
| 617 '<@(os_crypt_unittest_sources)', | 911 'components.gyp:storage_monitor_test_support', |
| 618 '<@(ownership_unittest_sources)', | 912 'components.gyp:web_modal', |
| 619 '<@(packed_ct_ev_whitelist_unittest_sources)', | 913 'components.gyp:web_modal_test_support', |
| 620 '<@(password_manager_unittest_sources)', | 914 ], |
| 621 '<@(precache_unittest_sources)', | 915 }], |
| 622 '<@(query_parser_unittest_sources)', | 916 ['OS != "android"', { |
| 623 '<@(rappor_unittest_sources)', | 917 'sources': [ |
| 624 '<@(search_unittest_sources)', | 918 '<@(invalidation_unittest_sources)', |
| 625 '<@(search_provider_logos_unittest_sources)', | 919 ], |
| 626 '<@(sessions_unittest_sources)', | 920 }], |
| 627 '<@(signin_unittest_sources)', | 921 ['OS != "ios" and OS != "android"', { |
| 628 '<@(suggestions_unittest_sources)', | 922 'sources': [ |
| 629 '<@(sync_driver_unittest_sources)', | 923 '<@(audio_modem_unittest_sources)', |
| 630 '<@(translate_unittest_sources)', | 924 '<@(copresence_unittest_sources)', |
| 631 '<@(update_client_unittest_sources)', | 925 '<@(feedback_unittest_sources)', |
| 632 '<@(url_fixer_unittest_sources)', | 926 '<@(proximity_auth_unittest_sources)', |
| 633 '<@(url_matcher_unittest_sources)', | 927 ], |
| 634 '<@(variations_unittest_sources)', | 928 'dependencies': [ |
| 635 '<@(wallpaper_unittest_sources)', | 929 '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks', |
| 636 '<@(web_resource_unittest_sources)', | |
| 637 '<@(webdata_unittest_sources)', | |
| 638 ], | |
| 639 'include_dirs': [ | |
| 640 '..', | |
| 641 ], | |
| 642 'dependencies': [ | |
| 643 '../base/base.gyp:base', | |
| 644 '../base/base.gyp:base_prefs_test_support', | |
| 645 '../base/base.gyp:test_support_base', | |
| 646 # TODO(blundell): Eliminate the need for this dependency in code | |
| 647 # that iOS shares. crbug.com/325243 | |
| 648 '../content/content_shell_and_tests.gyp:test_support_content', | |
| 649 '../google_apis/google_apis.gyp:google_apis_test_support', | 930 '../google_apis/google_apis.gyp:google_apis_test_support', |
| 650 '../jingle/jingle.gyp:notifier_test_util', | |
| 651 '../net/net.gyp:net_test_support', | |
| 652 '../sql/sql.gyp:test_support_sql', | |
| 653 '../sync/sync.gyp:sync', | |
| 654 '../sync/sync.gyp:test_support_sync_api', | |
| 655 '../testing/gmock.gyp:gmock', | |
| 656 '../testing/gtest.gyp:gtest', | |
| 657 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | |
| 658 '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput_
util', | |
| 659 '../third_party/libjingle/libjingle.gyp:libjingle', | |
| 660 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber', | |
| 661 '../third_party/libxml/libxml.gyp:libxml', | |
| 662 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | 931 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 663 '../ui/base/ui_base.gyp:ui_base', | 932 'components.gyp:audio_modem', |
| 664 '../ui/gfx/gfx.gyp:gfx', | 933 'components.gyp:audio_modem_test_support', |
| 665 '../ui/gfx/gfx.gyp:gfx_test_support', | 934 'components.gyp:copresence', |
| 666 '../ui/resources/ui_resources.gyp:ui_resources', | 935 'components.gyp:copresence_test_support', |
| 667 '../ui/strings/ui_strings.gyp:ui_strings', | 936 'components.gyp:cryptauth', |
| 668 '../url/url.gyp:url_lib', | 937 'components.gyp:cryptauth_test_support', |
| 669 'components.gyp:auto_login_parser', | 938 'components.gyp:feedback_component', |
| 670 'components.gyp:autofill_core_browser', | 939 'components.gyp:proximity_auth', |
| 671 'components.gyp:autofill_core_common', | 940 ], |
| 672 'components.gyp:autofill_core_test_support', | 941 }], |
| 673 'components.gyp:bookmarks_browser', | 942 ['chromeos==1', { |
| 674 'components.gyp:bookmarks_managed', | 943 'sources': [ |
| 675 'components.gyp:bookmarks_test_support', | 944 'pairing/message_buffer_unittest.cc', |
| 676 'components.gyp:captive_portal_test_support', | 945 'timers/alarm_timer_unittest.cc', |
| 677 'components.gyp:cloud_devices_common', | 946 'wifi_sync/wifi_config_delegate_chromeos_unittest.cc', |
| 678 'components.gyp:content_settings_core_browser', | 947 'wifi_sync/wifi_credential_syncable_service_unittest.cc', |
| 679 'components.gyp:content_settings_core_common', | 948 'wifi_sync/wifi_credential_unittest.cc', |
| 680 'components.gyp:content_settings_core_test_support', | 949 'wifi_sync/wifi_security_class_chromeos_unittest.cc', |
| 681 'components.gyp:crash_test_support', | 950 'wifi_sync/wifi_security_class_unittest.cc', |
| 682 'components.gyp:crx_file', | 951 ], |
| 683 'components.gyp:data_reduction_proxy_core_browser', | 952 'sources!': [ |
| 684 'components.gyp:data_reduction_proxy_core_common', | 953 'storage_monitor/storage_monitor_linux_unittest.cc', |
| 685 'components.gyp:data_reduction_proxy_test_support', | 954 ], |
| 686 'components.gyp:device_event_log_component', | 955 'dependencies': [ |
| 687 'components.gyp:dom_distiller_core', | 956 '../chromeos/chromeos.gyp:chromeos_test_support', |
| 688 'components.gyp:dom_distiller_protos', | 957 'components.gyp:pairing', |
| 689 'components.gyp:dom_distiller_test_support', | 958 'components.gyp:user_manager_test_support', |
| 690 'components.gyp:domain_reliability', | 959 'components.gyp:wifi_sync', |
| 691 'components.gyp:enhanced_bookmarks', | 960 ], |
| 692 'components.gyp:enhanced_bookmarks_test_support', | 961 }], |
| 693 'components.gyp:favicon_base', | 962 ['OS=="linux"', { |
| 694 'components.gyp:gcm_driver', | 963 'sources': [ |
| 695 'components.gyp:gcm_driver_test_support', | 964 'metrics/serialization/serialization_utils_unittest.cc', |
| 696 'components.gyp:google_core_browser', | 965 ], |
| 697 'components.gyp:history_core_browser', | 966 'dependencies': [ |
| 698 'components.gyp:history_core_common', | 967 'components.gyp:metrics_serialization', |
| 699 'components.gyp:history_core_test_support', | 968 '../dbus/dbus.gyp:dbus', |
| 700 'components.gyp:invalidation', | 969 '../device/media_transfer_protocol/media_transfer_protocol.gyp:devic
e_media_transfer_protocol', |
| 701 'components.gyp:invalidation_test_support', | 970 ], |
| 702 'components.gyp:json_schema', | 971 }], |
| 703 'components.gyp:keyed_service_core', | 972 ['OS=="linux" and use_udev==0', { |
| 704 'components.gyp:language_usage_metrics', | 973 'dependencies!': [ |
| 705 'components.gyp:leveldb_proto', | 974 'components.gyp:storage_monitor', |
| 706 'components.gyp:leveldb_proto_test_support', | 975 'components.gyp:storage_monitor_test_support', |
| 707 'components.gyp:login', | 976 ], |
| 708 'components.gyp:metrics', | 977 'sources/': [ |
| 709 'components.gyp:metrics_gpu', | 978 ['exclude', '^storage_monitor/'], |
| 710 'components.gyp:metrics_net', | 979 ], |
| 711 'components.gyp:metrics_profiler', | 980 }], |
| 712 'components.gyp:metrics_test_support', | 981 ['OS=="win" and win_use_allocator_shim==1', { |
| 713 'components.gyp:network_time', | 982 'dependencies': [ |
| 714 'components.gyp:omnibox', | 983 '../base/allocator/allocator.gyp:allocator', |
| 715 'components.gyp:omnibox_test_support', | 984 ], |
| 716 'components.gyp:os_crypt', | 985 }], |
| 717 'components.gyp:ownership', | 986 ['OS=="linux" and component=="shared_library" and use_allocator!="none"'
, { |
| 718 'components.gyp:packed_ct_ev_whitelist', | 987 'dependencies': [ |
| 719 'components.gyp:password_manager_core_browser', | 988 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
| 720 'components.gyp:password_manager_core_browser', | 989 ], |
| 721 'components.gyp:password_manager_core_browser_test_support', | 990 'link_settings': { |
| 722 'components.gyp:precache_core', | 991 'ldflags': ['-rdynamic'], |
| 723 'components.gyp:pref_registry_test_support', | 992 }, |
| 724 'components.gyp:query_parser', | 993 }], |
| 725 'components.gyp:rappor', | 994 ['configuration_policy==1', { |
| 726 'components.gyp:rappor_test_support', | 995 'dependencies': [ |
| 727 'components.gyp:search', | 996 'components.gyp:policy_component', |
| 728 'components.gyp:search_engines', | 997 'components.gyp:policy_component_test_support', |
| 729 'components.gyp:search_engines_test_support', | 998 'components.gyp:policy_test_support', |
| 730 'components.gyp:search_provider_logos', | 999 ], |
| 731 'components.gyp:sessions_test_support', | 1000 'sources': [ |
| 732 'components.gyp:signin_core_browser', | 1001 '<@(policy_unittest_sources)', |
| 733 'components.gyp:signin_core_browser_test_support', | 1002 'search_engines/default_search_policy_handler_unittest.cc', |
| 734 'components.gyp:suggestions', | |
| 735 'components.gyp:sync_driver_test_support', | |
| 736 'components.gyp:translate_core_browser', | |
| 737 'components.gyp:translate_core_common', | |
| 738 'components.gyp:translate_core_language_detection', | |
| 739 'components.gyp:ui_zoom', | |
| 740 'components.gyp:update_client', | |
| 741 'components.gyp:update_client_test_support', | |
| 742 'components.gyp:url_fixer', | |
| 743 'components.gyp:variations', | |
| 744 'components.gyp:variations_http_provider', | |
| 745 'components.gyp:wallpaper', | |
| 746 'components.gyp:web_resource', | |
| 747 'components.gyp:web_resource_test_support', | |
| 748 'components_resources.gyp:components_resources', | |
| 749 'components_strings.gyp:components_strings', | |
| 750 'components_tests_pak', | |
| 751 ], | 1003 ], |
| 752 'conditions': [ | 1004 'conditions': [ |
| 753 ['toolkit_views == 1', { | 1005 ['OS=="android"', { |
| 754 'sources': [ | 1006 'sources/': [ |
| 755 'bookmarks/browser/bookmark_node_data_unittest.cc', | 1007 ['exclude', '^policy/core/common/async_policy_provider_unittest\
\.cc'], |
| 756 'constrained_window/constrained_window_views_unittest.cc', | |
| 757 ], | |
| 758 'dependencies': [ | |
| 759 '<(DEPTH)/ui/views/views.gyp:views_test_support', | |
| 760 'components.gyp:constrained_window', | |
| 761 ] | |
| 762 }], | |
| 763 ['OS=="win"', { | |
| 764 'dependencies': [ | |
| 765 'components.gyp:browser_watcher', | |
| 766 'components.gyp:browser_watcher_client', | |
| 767 ] | |
| 768 }], | |
| 769 ['OS=="win" and component!="shared_library" and win_use_allocator_sh
im==1', { | |
| 770 'dependencies': [ | |
| 771 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
| 772 ], | 1008 ], |
| 773 }], | 1009 }], |
| 774 [ 'cld_version==0 or cld_version==2', { | 1010 ['OS=="android" or OS=="ios"', { |
| 775 'dependencies': [ | 1011 # Note: 'sources!' is processed before any 'sources/', so the |
| 776 # Unit tests should always use statically-linked CLD data. | 1012 # ['include', '^policy/'] on iOS above will include all of the |
| 777 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_static', ], | 1013 # policy source files again. Using 'source/' here too will get |
| 778 }], | 1014 # these files excluded as expected. |
| 779 ['OS != "ios"', { | |
| 780 'sources': [ | |
| 781 '<@(error_page_unittest_sources)', | |
| 782 '<@(navigation_interception_unittest_sources)', | |
| 783 '<@(network_hints_unittest_sources)', | |
| 784 '<@(power_unittest_sources)', | |
| 785 '<@(storage_monitor_unittest_sources)', | |
| 786 '<@(ui_unittest_sources)', | |
| 787 '<@(visitedlink_unittest_sources)', | |
| 788 '<@(web_cache_unittest_sources)', | |
| 789 '<@(web_modal_unittest_sources)', | |
| 790 ], | |
| 791 'dependencies': [ | |
| 792 '../skia/skia.gyp:skia', | |
| 793 'components.gyp:autofill_content_browser', | |
| 794 'components.gyp:autofill_content_renderer', | |
| 795 'components.gyp:autofill_content_test_support', | |
| 796 'components.gyp:data_reduction_proxy_content_browser', | |
| 797 'components.gyp:dom_distiller_content', | |
| 798 'components.gyp:error_page_renderer', | |
| 799 'components.gyp:history_content_browser', | |
| 800 'components.gyp:keyed_service_content', | |
| 801 'components.gyp:navigation_interception', | |
| 802 'components.gyp:network_hints_renderer', | |
| 803 'components.gyp:password_manager_content_browser', | |
| 804 'components.gyp:password_manager_content_common', | |
| 805 'components.gyp:power', | |
| 806 'components.gyp:precache_content', | |
| 807 'components.gyp:sessions_content', | |
| 808 'components.gyp:storage_monitor', | |
| 809 'components.gyp:storage_monitor_test_support', | |
| 810 'components.gyp:url_matcher', | |
| 811 'components.gyp:visitedlink_browser', | |
| 812 'components.gyp:visitedlink_renderer', | |
| 813 'components.gyp:web_cache_browser', | |
| 814 'components.gyp:web_modal', | |
| 815 'components.gyp:web_modal_test_support', | |
| 816 ], | |
| 817 }, { # 'OS == "ios"' | |
| 818 'sources': [ | |
| 819 'open_from_clipboard/clipboard_recent_content_ios_unittest.mm', | |
| 820 'webp_transcode/webp_decoder_unittest.mm', | |
| 821 'webp_transcode/webp_network_client_unittest.mm', | |
| 822 ], | |
| 823 'sources!': [ | |
| 824 'metrics/gpu/gpu_metrics_provider_unittest.cc', | |
| 825 'signin/core/browser/mutable_profile_oauth2_token_service_unitte
st.cc', | |
| 826 ], | |
| 827 'sources/': [ | 1015 'sources/': [ |
| 828 # Exclude all tests that depends on //content (based on layered- | 1016 ['exclude', '^policy/core/common/cloud/component_cloud_policy_se
rvice_unittest\\.cc'], |
| 829 # component directory structure). | 1017 ['exclude', '^policy/core/common/cloud/component_cloud_policy_st
ore_unittest\\.cc'], |
| 830 ['exclude', '^[^/]*/content/'], | 1018 ['exclude', '^policy/core/common/cloud/component_cloud_policy_up
dater_unittest\\.cc'], |
| 831 ], | 1019 ['exclude', '^policy/core/common/cloud/external_policy_data_fetc
her_unittest\\.cc'], |
| 832 'dependencies': [ | 1020 ['exclude', '^policy/core/common/cloud/external_policy_data_upda
ter_unittest\\.cc'], |
| 833 '../ios/ios_tests.gyp:test_support_ios', | 1021 ['exclude', '^policy/core/common/cloud/resource_cache_unittest\\
.cc'], |
| 834 '../ios/web/ios_web.gyp:test_support_ios_web', | 1022 ['exclude', '^policy/core/common/config_dir_policy_loader_unitte
st\\.cc'], |
| 835 '../third_party/ocmock/ocmock.gyp:ocmock', | |
| 836 'components.gyp:open_from_clipboard', | |
| 837 'components.gyp:sessions_ios', | |
| 838 'components.gyp:signin_ios_browser', | |
| 839 'components.gyp:translate_ios_browser', | |
| 840 'components.gyp:webp_transcode', | |
| 841 ], | |
| 842 'actions': [ | |
| 843 { | |
| 844 'action_name': 'copy_test_data', | |
| 845 'variables': { | |
| 846 'test_data_files': [ | |
| 847 'test/data', | |
| 848 ], | |
| 849 'test_data_prefix': 'components', | |
| 850 }, | |
| 851 'includes': [ '../build/copy_test_data_ios.gypi' ], | |
| 852 }, | |
| 853 ], | |
| 854 'conditions': [ | |
| 855 ['configuration_policy==1', { | |
| 856 'sources/': [ | |
| 857 ['include', '^policy/'], | |
| 858 ], | |
| 859 }], | |
| 860 ], | |
| 861 }], | |
| 862 ['disable_nacl==0', { | |
| 863 'sources': [ | |
| 864 '<@(nacl_unittest_sources)', | |
| 865 ], | |
| 866 'dependencies': [ | |
| 867 'nacl.gyp:nacl_browser', | |
| 868 'nacl.gyp:nacl_common', | |
| 869 ], | |
| 870 }], | |
| 871 ['OS == "mac"', { | |
| 872 'link_settings': { | |
| 873 'libraries': [ | |
| 874 '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework', | |
| 875 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
| 876 '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framewo
rk', | |
| 877 ], | |
| 878 }, | |
| 879 'sources!': [ | |
| 880 'password_manager/core/browser/password_store_default_unittest.c
c', | |
| 881 ], | |
| 882 }], | |
| 883 ['OS == "android"', { | |
| 884 'sources': [ | |
| 885 '<@(cronet_unittest_sources)', | |
| 886 'data_reduction_proxy/content/browser/data_reduction_proxy_debug
_blocking_page_unittest.cc', | |
| 887 'data_reduction_proxy/content/browser/data_reduction_proxy_debug
_resource_throttle_unittest.cc', | |
| 888 'data_reduction_proxy/content/browser/data_reduction_proxy_debug
_ui_manager_unittest.cc', | |
| 889 'invalidation/invalidation_logger_unittest.cc', | |
| 890 'invalidation/invalidation_service_android_unittest.cc', | |
| 891 ], | |
| 892 'sources!': [ | |
| 893 'gcm_driver/gcm_account_mapper_unittest.cc', | |
| 894 'gcm_driver/gcm_channel_status_request_unittest.cc', | |
| 895 'gcm_driver/gcm_client_impl_unittest.cc', | |
| 896 'gcm_driver/gcm_delayed_task_controller_unittest.cc', | |
| 897 'gcm_driver/gcm_driver_desktop_unittest.cc', | |
| 898 'gcm_driver/gcm_stats_recorder_impl_unittest.cc', | |
| 899 'sessions/session_backend_unittest.cc', | |
| 900 'signin/core/browser/mutable_profile_oauth2_token_service_unitte
st.cc', | |
| 901 'storage_monitor/media_storage_util_unittest.cc', | |
| 902 'storage_monitor/storage_info_unittest.cc', | |
| 903 'storage_monitor/storage_monitor_unittest.cc', | |
| 904 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | |
| 905 ], | |
| 906 'dependencies': [ | |
| 907 'components.gyp:cronet_static', | |
| 908 'components.gyp:data_reduction_proxy_content', | |
| 909 '../testing/android/native_test.gyp:native_test_native_code', | |
| 910 ], | |
| 911 'dependencies!': [ | |
| 912 'components.gyp:storage_monitor', | |
| 913 'components.gyp:storage_monitor_test_support', | |
| 914 'components.gyp:web_modal', | |
| 915 'components.gyp:web_modal_test_support', | |
| 916 ], | |
| 917 }], | |
| 918 ['OS != "android"', { | |
| 919 'sources': [ | |
| 920 '<@(invalidation_unittest_sources)', | |
| 921 ], | |
| 922 }], | |
| 923 ['OS != "ios" and OS != "android"', { | |
| 924 'sources': [ | |
| 925 '<@(audio_modem_unittest_sources)', | |
| 926 '<@(copresence_unittest_sources)', | |
| 927 '<@(feedback_unittest_sources)', | |
| 928 '<@(proximity_auth_unittest_sources)', | |
| 929 ], | |
| 930 'dependencies': [ | |
| 931 '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks', | |
| 932 '../google_apis/google_apis.gyp:google_apis_test_support', | |
| 933 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
| 934 'components.gyp:audio_modem', | |
| 935 'components.gyp:audio_modem_test_support', | |
| 936 'components.gyp:copresence', | |
| 937 'components.gyp:copresence_test_support', | |
| 938 'components.gyp:cryptauth', | |
| 939 'components.gyp:cryptauth_test_support', | |
| 940 'components.gyp:feedback_component', | |
| 941 'components.gyp:proximity_auth', | |
| 942 ], | 1023 ], |
| 943 }], | 1024 }], |
| 944 ['chromeos==1', { | 1025 ['chromeos==1', { |
| 945 'sources': [ | 1026 'sources': [ |
| 946 'pairing/message_buffer_unittest.cc', | 1027 'policy/core/common/proxy_policy_provider_unittest.cc', |
| 947 'timers/alarm_timer_unittest.cc', | |
| 948 'wifi_sync/wifi_config_delegate_chromeos_unittest.cc', | |
| 949 'wifi_sync/wifi_credential_syncable_service_unittest.cc', | |
| 950 'wifi_sync/wifi_credential_unittest.cc', | |
| 951 'wifi_sync/wifi_security_class_chromeos_unittest.cc', | |
| 952 'wifi_sync/wifi_security_class_unittest.cc', | |
| 953 ], | 1028 ], |
| 954 'sources!': [ | 1029 'sources!': [ |
| 955 'storage_monitor/storage_monitor_linux_unittest.cc', | 1030 'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc'
, |
| 956 ], | 1031 'policy/core/common/cloud/user_cloud_policy_store_unittest.cc', |
| 957 'dependencies': [ | |
| 958 '../chromeos/chromeos.gyp:chromeos_test_support', | |
| 959 'components.gyp:pairing', | |
| 960 'components.gyp:user_manager_test_support', | |
| 961 'components.gyp:wifi_sync', | |
| 962 ], | 1032 ], |
| 963 }], | 1033 }], |
| 964 ['OS=="linux"', { | 1034 ['OS=="ios" or OS=="mac"', { |
| 965 'sources': [ | 1035 'sources': [ |
| 966 'metrics/serialization/serialization_utils_unittest.cc', | 1036 'policy/core/common/mac_util_unittest.cc', |
| 967 ], | |
| 968 'dependencies': [ | |
| 969 'components.gyp:metrics_serialization', | |
| 970 '../dbus/dbus.gyp:dbus', | |
| 971 '../device/media_transfer_protocol/media_transfer_protocol.gyp:d
evice_media_transfer_protocol', | |
| 972 ], | 1037 ], |
| 973 }], | 1038 }], |
| 974 ['OS=="linux" and use_udev==0', { | 1039 ], |
| 975 'dependencies!': [ | 1040 }], |
| 976 'components.gyp:storage_monitor', | |
| 977 'components.gyp:storage_monitor_test_support', | |
| 978 ], | |
| 979 'sources/': [ | |
| 980 ['exclude', '^storage_monitor/'], | |
| 981 ], | |
| 982 }], | |
| 983 ['OS=="win" and win_use_allocator_shim==1', { | |
| 984 'dependencies': [ | |
| 985 '../base/allocator/allocator.gyp:allocator', | |
| 986 ], | |
| 987 }], | |
| 988 ['OS=="linux" and component=="shared_library" and use_allocator!="no
ne"', { | |
| 989 'dependencies': [ | |
| 990 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
| 991 ], | |
| 992 'link_settings': { | |
| 993 'ldflags': ['-rdynamic'], | |
| 994 }, | |
| 995 }], | |
| 996 ['configuration_policy==1', { | |
| 997 'dependencies': [ | |
| 998 'components.gyp:policy_component', | |
| 999 'components.gyp:policy_component_test_support', | |
| 1000 'components.gyp:policy_test_support', | |
| 1001 ], | |
| 1002 'sources': [ | |
| 1003 '<@(policy_unittest_sources)', | |
| 1004 'search_engines/default_search_policy_handler_unittest.cc', | |
| 1005 ], | |
| 1006 'conditions': [ | |
| 1007 ['OS=="android"', { | |
| 1008 'sources/': [ | |
| 1009 ['exclude', '^policy/core/common/async_policy_provider_unitt
est\\.cc'], | |
| 1010 ], | |
| 1011 }], | |
| 1012 ['OS=="android" or OS=="ios"', { | |
| 1013 # Note: 'sources!' is processed before any 'sources/', so the | |
| 1014 # ['include', '^policy/'] on iOS above will include all of the | |
| 1015 # policy source files again. Using 'source/' here too will get | |
| 1016 # these files excluded as expected. | |
| 1017 'sources/': [ | |
| 1018 ['exclude', '^policy/core/common/cloud/component_cloud_polic
y_service_unittest\\.cc'], | |
| 1019 ['exclude', '^policy/core/common/cloud/component_cloud_polic
y_store_unittest\\.cc'], | |
| 1020 ['exclude', '^policy/core/common/cloud/component_cloud_polic
y_updater_unittest\\.cc'], | |
| 1021 ['exclude', '^policy/core/common/cloud/external_policy_data_
fetcher_unittest\\.cc'], | |
| 1022 ['exclude', '^policy/core/common/cloud/external_policy_data_
updater_unittest\\.cc'], | |
| 1023 ['exclude', '^policy/core/common/cloud/resource_cache_unitte
st\\.cc'], | |
| 1024 ['exclude', '^policy/core/common/config_dir_policy_loader_un
ittest\\.cc'], | |
| 1025 ], | |
| 1026 }], | |
| 1027 ['chromeos==1', { | |
| 1028 'sources': [ | |
| 1029 'policy/core/common/proxy_policy_provider_unittest.cc', | |
| 1030 ], | |
| 1031 'sources!': [ | |
| 1032 'policy/core/common/cloud/user_cloud_policy_manager_unittest
.cc', | |
| 1033 'policy/core/common/cloud/user_cloud_policy_store_unittest.c
c', | |
| 1034 ], | |
| 1035 }], | |
| 1036 ['OS=="ios" or OS=="mac"', { | |
| 1037 'sources': [ | |
| 1038 'policy/core/common/mac_util_unittest.cc', | |
| 1039 ], | |
| 1040 }], | |
| 1041 ], | |
| 1042 }], | |
| 1043 ], | |
| 1044 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 1045 'msvs_disabled_warnings': [4267, ], | |
| 1046 }, | |
| 1047 ], | 1041 ], |
| 1048 }], | 1042 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1049 ['OS != "ios" and android_webview_build == 0', { | 1043 'msvs_disabled_warnings': [4267, ], |
| 1044 }, |
| 1045 ], |
| 1046 'conditions': [ |
| 1047 ['OS != "ios"', { |
| 1050 'targets': [ | 1048 'targets': [ |
| 1051 { | 1049 { |
| 1052 # GN: //components:components_perftests | 1050 # GN: //components:components_perftests |
| 1053 'target_name': 'components_perftests', | 1051 'target_name': 'components_perftests', |
| 1054 'type': '<(gtest_target_type)', | 1052 'type': '<(gtest_target_type)', |
| 1055 'dependencies': [ | 1053 'dependencies': [ |
| 1056 '../base/base.gyp:base', | 1054 '../base/base.gyp:base', |
| 1057 '../base/base.gyp:test_support_perf', | 1055 '../base/base.gyp:test_support_perf', |
| 1058 '../content/content_shell_and_tests.gyp:test_support_content', | 1056 '../content/content_shell_and_tests.gyp:test_support_content', |
| 1059 '../testing/gtest.gyp:gtest', | 1057 '../testing/gtest.gyp:gtest', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1073 }], | 1071 }], |
| 1074 ['OS=="win" and component!="shared_library" and win_use_allocator_shi
m==1', { | 1072 ['OS=="win" and component!="shared_library" and win_use_allocator_shi
m==1', { |
| 1075 'dependencies': [ | 1073 'dependencies': [ |
| 1076 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | 1074 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
| 1077 ], | 1075 ], |
| 1078 }], | 1076 }], |
| 1079 ], | 1077 ], |
| 1080 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1078 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1081 'msvs_disabled_warnings': [ 4267, ], | 1079 'msvs_disabled_warnings': [ 4267, ], |
| 1082 }, | 1080 }, |
| 1083 ], | |
| 1084 'conditions': [ | |
| 1085 ['OS == "android"', { | |
| 1086 'targets': [ | |
| 1087 { | |
| 1088 'target_name': 'components_unittests_apk', | |
| 1089 'type': 'none', | |
| 1090 'dependencies': [ | |
| 1091 'components_unittests', | |
| 1092 'components.gyp:invalidation_java', | |
| 1093 ], | |
| 1094 'variables': { | |
| 1095 'test_suite_name': 'components_unittests', | |
| 1096 }, | |
| 1097 'includes': [ '../build/apk_test.gypi' ], | |
| 1098 }, | |
| 1099 ], | |
| 1100 }], | |
| 1101 ], | |
| 1102 }], | |
| 1103 ['OS!="ios"', { | |
| 1104 'conditions': [ | |
| 1105 ['test_isolation_mode != "noop"', { | |
| 1106 'targets': [ | |
| 1107 { | |
| 1108 'target_name': 'components_browsertests_run', | |
| 1109 'type': 'none', | |
| 1110 'dependencies': [ 'components_browsertests' ], | |
| 1111 'includes': [ | |
| 1112 '../build/isolate.gypi', | |
| 1113 ], | |
| 1114 'sources': [ | |
| 1115 'components_browsertests.isolate', | |
| 1116 ], | |
| 1117 'conditions': [ | |
| 1118 ['use_x11==1', { | |
| 1119 'dependencies': [ | |
| 1120 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
| 1121 ], | |
| 1122 }], | |
| 1123 ], | |
| 1124 }, | |
| 1125 ], | |
| 1126 }], | |
| 1127 ], | |
| 1128 'targets': [ | |
| 1129 { | 1081 { |
| 1130 'target_name': 'components_browsertests', | 1082 'target_name': 'components_browsertests', |
| 1131 'type': '<(gtest_target_type)', | 1083 'type': '<(gtest_target_type)', |
| 1132 'defines!': ['CONTENT_IMPLEMENTATION'], | 1084 'defines!': ['CONTENT_IMPLEMENTATION'], |
| 1133 'dependencies': [ | 1085 'dependencies': [ |
| 1134 '../content/content.gyp:content_common', | 1086 '../content/content.gyp:content_common', |
| 1135 '../content/content.gyp:content_gpu', | 1087 '../content/content.gyp:content_gpu', |
| 1136 '../content/content.gyp:content_plugin', | 1088 '../content/content.gyp:content_plugin', |
| 1137 '../content/content.gyp:content_renderer', | 1089 '../content/content.gyp:content_renderer', |
| 1138 '../content/content_shell_and_tests.gyp:content_browser_test_support
', | 1090 '../content/content_shell_and_tests.gyp:content_browser_test_support
', |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1166 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1215 'msvs_disabled_warnings': [ 4267, ], | 1167 'msvs_disabled_warnings': [ 4267, ], |
| 1216 }], | 1168 }], |
| 1217 ['OS=="win" and win_use_allocator_shim==1', { | 1169 ['OS=="win" and win_use_allocator_shim==1', { |
| 1218 'dependencies': [ | 1170 'dependencies': [ |
| 1219 '../base/allocator/allocator.gyp:allocator', | 1171 '../base/allocator/allocator.gyp:allocator', |
| 1220 ], | 1172 ], |
| 1221 }], | 1173 }], |
| 1222 ['OS=="mac"', { | 1174 ['OS=="mac"', { |
| 1223 'dependencies': [ | 1175 'dependencies': [ |
| 1224 '../content/content_shell_and_tests.gyp:content_shell', # Needed for Co
ntent Shell.app's Helper. | 1176 '../content/content_shell_and_tests.gyp:content_shell', # Neede
d for Content Shell.app's Helper. |
| 1225 ], | 1177 ], |
| 1226 }], | 1178 }], |
| 1227 ['enable_basic_printing==1 or enable_print_preview==1', { | 1179 ['enable_basic_printing==1 or enable_print_preview==1', { |
| 1228 'dependencies': [ | 1180 'dependencies': [ |
| 1229 'components.gyp:printing_test_support', | 1181 'components.gyp:printing_test_support', |
| 1230 ], | 1182 ], |
| 1231 'sources' : [ | 1183 'sources' : [ |
| 1232 'printing/test/print_web_view_helper_browsertest.cc', | 1184 'printing/test/print_web_view_helper_browsertest.cc', |
| 1233 ], | 1185 ], |
| 1234 }] | 1186 }] |
| 1235 ], | 1187 ], |
| 1236 }, | 1188 }, |
| 1237 ], | 1189 ], |
| 1190 'conditions': [ |
| 1191 ['test_isolation_mode != "noop"', { |
| 1192 'targets': [ |
| 1193 { |
| 1194 'target_name': 'components_browsertests_run', |
| 1195 'type': 'none', |
| 1196 'dependencies': [ 'components_browsertests' ], |
| 1197 'includes': [ |
| 1198 '../build/isolate.gypi', |
| 1199 ], |
| 1200 'sources': [ |
| 1201 'components_browsertests.isolate', |
| 1202 ], |
| 1203 'conditions': [ |
| 1204 ['use_x11==1', { |
| 1205 'dependencies': [ |
| 1206 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 1207 ], |
| 1208 }], |
| 1209 ], |
| 1210 }, |
| 1211 ], |
| 1212 }], |
| 1213 ], |
| 1238 }], | 1214 }], |
| 1239 ['test_isolation_mode != "noop"', { | 1215 ['test_isolation_mode != "noop"', { |
| 1240 'targets': [ | 1216 'targets': [ |
| 1241 { | 1217 { |
| 1242 'target_name': 'components_unittests_run', | 1218 'target_name': 'components_unittests_run', |
| 1243 'type': 'none', | 1219 'type': 'none', |
| 1244 'dependencies': [ | 1220 'dependencies': [ |
| 1245 'components_unittests', | 1221 'components_unittests', |
| 1246 ], | 1222 ], |
| 1247 'includes': [ | 1223 'includes': [ |
| 1248 '../build/isolate.gypi', | 1224 '../build/isolate.gypi', |
| 1249 ], | 1225 ], |
| 1250 'sources': [ | 1226 'sources': [ |
| 1251 'components_unittests.isolate', | 1227 'components_unittests.isolate', |
| 1252 ], | 1228 ], |
| 1253 'conditions': [ | 1229 'conditions': [ |
| 1254 ['use_x11==1', { | 1230 ['use_x11==1', { |
| 1255 'dependencies': [ | 1231 'dependencies': [ |
| 1256 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 1232 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 1257 ], | 1233 ], |
| 1258 }], | 1234 }], |
| 1259 ], | 1235 ], |
| 1260 }, | 1236 }, |
| 1261 ], | 1237 ], |
| 1262 }], | 1238 }], |
| 1239 ['OS == "android"', { |
| 1240 'targets': [ |
| 1241 { |
| 1242 'target_name': 'components_unittests_apk', |
| 1243 'type': 'none', |
| 1244 'dependencies': [ |
| 1245 'components_unittests', |
| 1246 'components.gyp:invalidation_java', |
| 1247 ], |
| 1248 'variables': { |
| 1249 'test_suite_name': 'components_unittests', |
| 1250 }, |
| 1251 'includes': [ '../build/apk_test.gypi' ], |
| 1252 }, |
| 1253 ], |
| 1254 }], |
| 1263 ], | 1255 ], |
| 1264 } | 1256 } |
| OLD | NEW |