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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//chrome/chrome_tests.gni") | 10 import("//chrome/chrome_tests.gni") |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1039 "../browser/ui/panels/panel_extension_browsertest.cc", | 1039 "../browser/ui/panels/panel_extension_browsertest.cc", |
1040 | 1040 |
1041 # inline login UI is disabled on chromeos | 1041 # inline login UI is disabled on chromeos |
1042 "../browser/ui/webui/signin/inline_login_ui_browsertest.cc", | 1042 "../browser/ui/webui/signin/inline_login_ui_browsertest.cc", |
1043 | 1043 |
1044 # chromeos does not use the desktop user manager | 1044 # chromeos does not use the desktop user manager |
1045 "../browser/ui/webui/signin/user_manager_ui_browsertest.cc", | 1045 "../browser/ui/webui/signin/user_manager_ui_browsertest.cc", |
1046 ] | 1046 ] |
1047 deps += [ | 1047 deps += [ |
1048 "//chromeos/ime:gencode", | 1048 "//chromeos/ime:gencode", |
1049 "//components/arc:arc_test_support", | |
1049 "//components/user_manager:test_support", | 1050 "//components/user_manager:test_support", |
1050 "//dbus", | 1051 "//dbus", |
1051 "//dbus:test_support", | 1052 "//dbus:test_support", |
1052 "//ui/login:resources", | 1053 "//ui/login:resources", |
1053 ] | 1054 ] |
1054 } else { | 1055 } else { |
1055 sources -= [ | 1056 sources -= [ |
1056 "../browser/extensions/api/enterprise_device_attributes/enterprise_devic e_attributes_apitest.cc", | 1057 "../browser/extensions/api/enterprise_device_attributes/enterprise_devic e_attributes_apitest.cc", |
1057 "../browser/extensions/api/enterprise_platform_keys/enterprise_platform_ keys_apitest_nss.cc", | 1058 "../browser/extensions/api/enterprise_platform_keys/enterprise_platform_ keys_apitest_nss.cc", |
1058 "../browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc", | 1059 "../browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc", |
1059 "../browser/extensions/api/terminal/terminal_private_apitest.cc", | 1060 "../browser/extensions/api/terminal/terminal_private_apitest.cc", |
1060 "../browser/invalidation/profile_invalidation_provider_factory_browserte st.cc", | 1061 "../browser/invalidation/profile_invalidation_provider_factory_browserte st.cc", |
1061 "../browser/net/nss_context_chromeos_browsertest.cc", | 1062 "../browser/net/nss_context_chromeos_browsertest.cc", |
1062 "data/webui/certificate_viewer_ui_test-inl.h", | 1063 "data/webui/certificate_viewer_ui_test-inl.h", |
1063 ] | 1064 ] |
1064 if (use_ash) { | 1065 if (use_ash) { |
1065 sources -= [ "../browser/ui/ash/keyboard_controller_browsertest.cc" ] | 1066 sources -= [ "../browser/ui/ash/keyboard_controller_browsertest.cc" ] |
1066 } | 1067 } |
1067 if (toolkit_views) { | 1068 if (toolkit_views) { |
1068 sources -= [ "../browser/ui/views/select_file_dialog_extension_browserte st.cc" ] | 1069 sources -= [ "../browser/ui/views/select_file_dialog_extension_browserte st.cc" ] |
1069 } | 1070 } |
1070 } | 1071 } |
1071 if (enable_configuration_policy) { | |
1072 sources += rebase_path( | |
1073 chrome_tests_gypi_values.chrome_browser_tests_policy_sources, | |
1074 ".", | |
1075 "//chrome") | |
1076 if (is_chromeos) { | |
1077 deps += [ "//components/arc:arc_test_support" ] | |
1078 } | |
1079 } | |
1080 if (enable_web_speech) { | 1072 if (enable_web_speech) { |
1081 sources += rebase_path( | 1073 sources += rebase_path( |
1082 chrome_tests_gypi_values.chrome_browser_tests_speech_sources, | 1074 chrome_tests_gypi_values.chrome_browser_tests_speech_sources, |
1083 ".", | 1075 ".", |
1084 "//chrome") | 1076 "//chrome") |
1085 } | 1077 } |
1086 if (safe_browsing_mode == 1) { | 1078 if (safe_browsing_mode == 1) { |
1087 sources += rebase_path( | 1079 sources += rebase_path( |
1088 chrome_tests_gypi_values.chrome_browser_tests_full_safe_browsing_s ources, | 1080 chrome_tests_gypi_values.chrome_browser_tests_full_safe_browsing_s ources, |
1089 ".", | 1081 ".", |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1639 "//ui/gl", | 1631 "//ui/gl", |
1640 "//v8", | 1632 "//v8", |
1641 ] | 1633 ] |
1642 } | 1634 } |
1643 | 1635 |
1644 if (is_android) { | 1636 if (is_android) { |
1645 sources += rebase_path( | 1637 sources += rebase_path( |
1646 chrome_tests_unit_gypi_values.chrome_unit_tests_offline_pages_source s, | 1638 chrome_tests_unit_gypi_values.chrome_unit_tests_offline_pages_source s, |
1647 ".", | 1639 ".", |
1648 "//chrome") | 1640 "//chrome") |
1641 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] | |
1649 deps += [ | 1642 deps += [ |
1650 ":unit_tests_java", | 1643 ":unit_tests_java", |
1651 "//components/offline_pages:test_support", | 1644 "//components/offline_pages:test_support", |
1652 "//v8:v8_external_startup_data_assets", | 1645 "//v8:v8_external_startup_data_assets", |
1653 google_play_services_resources, | 1646 google_play_services_resources, |
1654 ] | 1647 ] |
1655 deps -= [ "//third_party/libaddressinput" ] | 1648 deps -= [ "//third_party/libaddressinput" ] |
1656 | 1649 |
1657 android_manifest = | 1650 android_manifest = |
1658 "//chrome/test/android/unit_tests_apk/AndroidManifest.xml" | 1651 "//chrome/test/android/unit_tests_apk/AndroidManifest.xml" |
1659 enable_multidex = true | 1652 enable_multidex = true |
1660 isolate_file = "../unit_tests.isolate" | 1653 isolate_file = "../unit_tests.isolate" |
1661 | 1654 |
1662 # Some android targets still depend on --gc-sections to link. | 1655 # Some android targets still depend on --gc-sections to link. |
1663 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). | 1656 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). |
1664 ldflags = [ "-Wl,--gc-sections" ] | 1657 ldflags = [ "-Wl,--gc-sections" ] |
1665 } else { | 1658 } else { |
1666 sources += rebase_path( | 1659 sources += rebase_path( |
1667 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_sources, | 1660 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_sources, |
1668 ".", | 1661 ".", |
1669 "//chrome") | 1662 "//chrome") |
1670 sources -= | 1663 sources -= |
1671 [ "../browser/download/download_request_infobar_delegate_unittest.cc" ] | 1664 [ "../browser/download/download_request_infobar_delegate_unittest.cc" ] |
1672 } | 1665 } |
1673 | 1666 |
1674 if (!is_ios && !is_android) { | 1667 if (!is_ios && !is_android) { |
1675 deps += [ ":unit_tests_js" ] | 1668 deps += [ |
1669 ":unit_tests_js", | |
1670 "//components/bubble:test_support", | |
1671 ] | |
1676 sources += rebase_path( | 1672 sources += rebase_path( |
1677 chrome_tests_unit_gypi_values.chrome_unit_tests_non_mobile_sources, | 1673 chrome_tests_unit_gypi_values.chrome_unit_tests_non_mobile_sources, |
1678 ".", | 1674 ".", |
1679 "//chrome") | 1675 "//chrome") |
Andrew T Wilson (Slow)
2016/03/22 00:01:27
nit: remove blank line?
| |
1676 | |
1680 data += [ | 1677 data += [ |
1681 "$root_out_dir/test_data/chrome/browser/resources/google_now/", | 1678 "$root_out_dir/test_data/chrome/browser/resources/google_now/", |
1682 "$root_out_dir/test_data/chrome/browser/resources/print_preview/", | 1679 "$root_out_dir/test_data/chrome/browser/resources/print_preview/", |
1683 "$root_out_dir/test_data/chrome/renderer/resources/extensions/", | 1680 "$root_out_dir/test_data/chrome/renderer/resources/extensions/", |
1684 "$root_out_dir/test_data/ui/webui/", | 1681 "$root_out_dir/test_data/ui/webui/", |
1685 ] | 1682 ] |
1686 } | 1683 } |
1687 | 1684 |
1688 if (is_ios || is_chromeos) { | 1685 if (is_ios || is_chromeos) { |
1689 sources -= [ "../browser/signin/chrome_signin_status_metrics_provider_delega te_unittest.cc" ] | 1686 sources -= [ "../browser/signin/chrome_signin_status_metrics_provider_delega te_unittest.cc" ] |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1723 sources += rebase_path( | 1720 sources += rebase_path( |
1724 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_sources, | 1721 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_sources, |
1725 ".", | 1722 ".", |
1726 "//chrome") | 1723 "//chrome") |
1727 deps += [ | 1724 deps += [ |
1728 "//chrome/common/extensions/api", | 1725 "//chrome/common/extensions/api", |
1729 "//components/audio_modem:test_support", | 1726 "//components/audio_modem:test_support", |
1730 "//extensions:extensions_resources", | 1727 "//extensions:extensions_resources", |
1731 "//extensions/strings", | 1728 "//extensions/strings", |
1732 ] | 1729 ] |
1733 if (enable_configuration_policy) { | |
1734 sources += rebase_path( | |
1735 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_policy_ sources, | |
1736 ".", | |
1737 "//chrome") | |
1738 } | |
1739 if (enable_service_discovery) { | 1730 if (enable_service_discovery) { |
1740 sources += rebase_path( | 1731 sources += rebase_path( |
1741 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_service _discovery_sources, | 1732 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_service _discovery_sources, |
1742 ".", | 1733 ".", |
1743 "//chrome") | 1734 "//chrome") |
1744 } | 1735 } |
1745 if (!is_chromeos) { | 1736 if (!is_chromeos) { |
1746 sources += rebase_path( | 1737 sources += rebase_path( |
1747 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_chr omeos_sources, | 1738 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_chr omeos_sources, |
1748 ".", | 1739 ".", |
(...skipping 25 matching lines...) Expand all Loading... | |
1774 ] | 1765 ] |
1775 } | 1766 } |
1776 if (!is_chromeos && is_linux) { | 1767 if (!is_chromeos && is_linux) { |
1777 sources += rebase_path( | 1768 sources += rebase_path( |
1778 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s, | 1769 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s, |
1779 ".", | 1770 ".", |
1780 "//chrome") | 1771 "//chrome") |
1781 } | 1772 } |
1782 if (!is_android && !is_ios && !is_chromeos) { | 1773 if (!is_android && !is_ios && !is_chromeos) { |
1783 sources += [ | 1774 sources += [ |
1775 "../browser/net/disk_cache_dir_policy_handler_unittest.cc", | |
1784 "//chrome/browser/profiles/profile_list_desktop_unittest.cc", | 1776 "//chrome/browser/profiles/profile_list_desktop_unittest.cc", |
1785 "//chrome/browser/profiles/profile_statistics_unittest.cc", | 1777 "//chrome/browser/profiles/profile_statistics_unittest.cc", |
1786 ] | 1778 ] |
1787 } | 1779 } |
1788 if (!is_chromeos && !use_ozone && is_linux) { | 1780 if (!is_chromeos && !use_ozone && is_linux) { |
1789 deps += [ | 1781 deps += [ |
1790 "//build/linux:gio", | 1782 "//build/linux:gio", |
1791 "//chrome/browser/ui/libgtk2ui", | 1783 "//chrome/browser/ui/libgtk2ui", |
1792 ] | 1784 ] |
1793 } | 1785 } |
1794 | 1786 |
1795 if (enable_task_manager) { | 1787 if (enable_task_manager) { |
1796 sources += rebase_path( | 1788 sources += rebase_path( |
1797 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources , | 1789 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources , |
1798 ".", | 1790 ".", |
1799 "//chrome") | 1791 "//chrome") |
1800 } | 1792 } |
1801 if (enable_mdns) { | 1793 if (enable_mdns) { |
1802 sources += rebase_path( | 1794 sources += rebase_path( |
1803 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources, | 1795 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources, |
1804 ".", | 1796 ".", |
1805 "//chrome") | 1797 "//chrome") |
1806 } | 1798 } |
1807 if (enable_service_discovery) { | 1799 if (enable_service_discovery) { |
1808 sources += rebase_path( | 1800 sources += rebase_path( |
1809 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_so urces, | 1801 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_so urces, |
1810 ".", | 1802 ".", |
1811 "//chrome") | 1803 "//chrome") |
1812 } | 1804 } |
1813 if (enable_configuration_policy) { | |
1814 sources += rebase_path( | |
1815 chrome_tests_unit_gypi_values.chrome_unit_tests_configuration_policy _sources, | |
1816 ".", | |
1817 "//chrome") | |
1818 if (is_chromeos) { | |
1819 sources -= | |
1820 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ] | |
1821 } else if (is_android) { | |
1822 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] | |
1823 } | |
1824 if (!is_android && !is_ios && !is_chromeos) { | |
1825 sources += [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ] | |
1826 } | |
1827 if (!is_android && !is_ios) { | |
1828 sources += | |
1829 [ "../browser/download/download_dir_policy_handler_unittest.cc" ] | |
1830 | |
1831 deps += [ "//components/bubble:test_support" ] | |
1832 } | |
1833 } | |
1834 if (enable_web_speech) { | 1805 if (enable_web_speech) { |
1835 sources += rebase_path( | 1806 sources += rebase_path( |
1836 chrome_tests_unit_gypi_values.chrome_unit_tests_speech_sources, | 1807 chrome_tests_unit_gypi_values.chrome_unit_tests_speech_sources, |
1837 ".", | 1808 ".", |
1838 "//chrome") | 1809 "//chrome") |
1839 } | 1810 } |
1840 if (enable_notifications) { | 1811 if (enable_notifications) { |
1841 sources += rebase_path( | 1812 sources += rebase_path( |
1842 chrome_tests_unit_gypi_values.chrome_unit_tests_notifications_source s, | 1813 chrome_tests_unit_gypi_values.chrome_unit_tests_notifications_source s, |
1843 ".", | 1814 ".", |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1910 sources += rebase_path( | 1881 sources += rebase_path( |
1911 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources, | 1882 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources, |
1912 ".", | 1883 ".", |
1913 "//chrome") | 1884 "//chrome") |
1914 } | 1885 } |
1915 if (is_chromeos) { | 1886 if (is_chromeos) { |
1916 deps += [ | 1887 deps += [ |
1917 "//chrome/browser/chromeos:unit_tests", | 1888 "//chrome/browser/chromeos:unit_tests", |
1918 "//chromeos/ime:gencode", | 1889 "//chromeos/ime:gencode", |
1919 ] | 1890 ] |
1920 sources -= [ "../browser/signin/signin_manager_unittest.cc" ] | 1891 sources -= [ |
1892 "../browser/policy/cloud/user_policy_signin_service_unittest.cc", | |
1893 "../browser/signin/signin_manager_unittest.cc", | |
1894 ] | |
1921 } | 1895 } |
1922 if (use_x11) { | 1896 if (use_x11) { |
1923 deps += [ "//ui/events/devices" ] | 1897 deps += [ "//ui/events/devices" ] |
1924 data_deps += [ "//tools/xdisplaycheck" ] | 1898 data_deps += [ "//tools/xdisplaycheck" ] |
1925 } else { | 1899 } else { |
1926 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ] | 1900 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ] |
1927 } | 1901 } |
1928 if (cld_version == 2) { | 1902 if (cld_version == 2) { |
1929 # Unit tests should be independent of the CLD2 access mechanism, just use | 1903 # Unit tests should be independent of the CLD2 access mechanism, just use |
1930 # static for simplicity. | 1904 # static for simplicity. |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2262 if (is_android) { | 2236 if (is_android) { |
2263 android_library("unit_tests_java") { | 2237 android_library("unit_tests_java") { |
2264 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" | 2238 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" |
2265 deps = [ | 2239 deps = [ |
2266 "//base:base_java", | 2240 "//base:base_java", |
2267 "//chrome/android:chrome_java", | 2241 "//chrome/android:chrome_java", |
2268 "//content/public/android:content_java", | 2242 "//content/public/android:content_java", |
2269 ] | 2243 ] |
2270 } | 2244 } |
2271 } | 2245 } |
OLD | NEW |