Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: chrome/test/BUILD.gn

Issue 1825603003: Reland of move configuration policy from chrome build files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy_chrome_defines
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/policy.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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")
1680 data += [ 1676 data += [
1681 "$root_out_dir/test_data/chrome/browser/resources/google_now/", 1677 "$root_out_dir/test_data/chrome/browser/resources/google_now/",
1682 "$root_out_dir/test_data/chrome/browser/resources/print_preview/", 1678 "$root_out_dir/test_data/chrome/browser/resources/print_preview/",
1683 "$root_out_dir/test_data/chrome/renderer/resources/extensions/", 1679 "$root_out_dir/test_data/chrome/renderer/resources/extensions/",
1684 "$root_out_dir/test_data/ui/webui/", 1680 "$root_out_dir/test_data/ui/webui/",
1685 ] 1681 ]
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 sources += rebase_path( 1719 sources += rebase_path(
1724 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_sources, 1720 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_sources,
1725 ".", 1721 ".",
1726 "//chrome") 1722 "//chrome")
1727 deps += [ 1723 deps += [
1728 "//chrome/common/extensions/api", 1724 "//chrome/common/extensions/api",
1729 "//components/audio_modem:test_support", 1725 "//components/audio_modem:test_support",
1730 "//extensions:extensions_resources", 1726 "//extensions:extensions_resources",
1731 "//extensions/strings", 1727 "//extensions/strings",
1732 ] 1728 ]
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) { 1729 if (enable_service_discovery) {
1740 sources += rebase_path( 1730 sources += rebase_path(
1741 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_service _discovery_sources, 1731 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_service _discovery_sources,
1742 ".", 1732 ".",
1743 "//chrome") 1733 "//chrome")
1744 } 1734 }
1745 if (!is_chromeos) { 1735 if (!is_chromeos) {
1746 sources += rebase_path( 1736 sources += rebase_path(
1747 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_chr omeos_sources, 1737 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_chr omeos_sources,
1748 ".", 1738 ".",
(...skipping 25 matching lines...) Expand all
1774 ] 1764 ]
1775 } 1765 }
1776 if (!is_chromeos && is_linux) { 1766 if (!is_chromeos && is_linux) {
1777 sources += rebase_path( 1767 sources += rebase_path(
1778 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s, 1768 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_source s,
1779 ".", 1769 ".",
1780 "//chrome") 1770 "//chrome")
1781 } 1771 }
1782 if (!is_android && !is_ios && !is_chromeos) { 1772 if (!is_android && !is_ios && !is_chromeos) {
1783 sources += [ 1773 sources += [
1774 "../browser/net/disk_cache_dir_policy_handler_unittest.cc",
1784 "//chrome/browser/profiles/profile_list_desktop_unittest.cc", 1775 "//chrome/browser/profiles/profile_list_desktop_unittest.cc",
1785 "//chrome/browser/profiles/profile_statistics_unittest.cc", 1776 "//chrome/browser/profiles/profile_statistics_unittest.cc",
1786 ] 1777 ]
1787 } 1778 }
1788 if (!is_chromeos && !use_ozone && is_linux) { 1779 if (!is_chromeos && !use_ozone && is_linux) {
1789 deps += [ 1780 deps += [
1790 "//build/linux:gio", 1781 "//build/linux:gio",
1791 "//chrome/browser/ui/libgtk2ui", 1782 "//chrome/browser/ui/libgtk2ui",
1792 ] 1783 ]
1793 } 1784 }
1794 1785
1795 if (enable_task_manager) { 1786 if (enable_task_manager) {
1796 sources += rebase_path( 1787 sources += rebase_path(
1797 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources , 1788 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources ,
1798 ".", 1789 ".",
1799 "//chrome") 1790 "//chrome")
1800 } 1791 }
1801 if (enable_mdns) { 1792 if (enable_mdns) {
1802 sources += rebase_path( 1793 sources += rebase_path(
1803 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources, 1794 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources,
1804 ".", 1795 ".",
1805 "//chrome") 1796 "//chrome")
1806 } 1797 }
1807 if (enable_service_discovery) { 1798 if (enable_service_discovery) {
1808 sources += rebase_path( 1799 sources += rebase_path(
1809 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_so urces, 1800 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_so urces,
1810 ".", 1801 ".",
1811 "//chrome") 1802 "//chrome")
1812 } 1803 }
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) { 1804 if (enable_web_speech) {
1835 sources += rebase_path( 1805 sources += rebase_path(
1836 chrome_tests_unit_gypi_values.chrome_unit_tests_speech_sources, 1806 chrome_tests_unit_gypi_values.chrome_unit_tests_speech_sources,
1837 ".", 1807 ".",
1838 "//chrome") 1808 "//chrome")
1839 } 1809 }
1840 if (enable_notifications) { 1810 if (enable_notifications) {
1841 sources += rebase_path( 1811 sources += rebase_path(
1842 chrome_tests_unit_gypi_values.chrome_unit_tests_notifications_source s, 1812 chrome_tests_unit_gypi_values.chrome_unit_tests_notifications_source s,
1843 ".", 1813 ".",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 sources += rebase_path( 1880 sources += rebase_path(
1911 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources, 1881 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources,
1912 ".", 1882 ".",
1913 "//chrome") 1883 "//chrome")
1914 } 1884 }
1915 if (is_chromeos) { 1885 if (is_chromeos) {
1916 deps += [ 1886 deps += [
1917 "//chrome/browser/chromeos:unit_tests", 1887 "//chrome/browser/chromeos:unit_tests",
1918 "//chromeos/ime:gencode", 1888 "//chromeos/ime:gencode",
1919 ] 1889 ]
1920 sources -= [ "../browser/signin/signin_manager_unittest.cc" ] 1890 sources -= [
1891 "../browser/policy/cloud/user_policy_signin_service_unittest.cc",
1892 "../browser/signin/signin_manager_unittest.cc",
1893 ]
1921 } 1894 }
1922 if (use_x11) { 1895 if (use_x11) {
1923 deps += [ "//ui/events/devices" ] 1896 deps += [ "//ui/events/devices" ]
1924 data_deps += [ "//tools/xdisplaycheck" ] 1897 data_deps += [ "//tools/xdisplaycheck" ]
1925 } else { 1898 } else {
1926 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ] 1899 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ]
1927 } 1900 }
1928 if (cld_version == 2) { 1901 if (cld_version == 2) {
1929 # Unit tests should be independent of the CLD2 access mechanism, just use 1902 # Unit tests should be independent of the CLD2 access mechanism, just use
1930 # static for simplicity. 1903 # static for simplicity.
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 if (is_android) { 2235 if (is_android) {
2263 android_library("unit_tests_java") { 2236 android_library("unit_tests_java") {
2264 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" 2237 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src"
2265 deps = [ 2238 deps = [
2266 "//base:base_java", 2239 "//base:base_java",
2267 "//chrome/android:chrome_java", 2240 "//chrome/android:chrome_java",
2268 "//content/public/android:content_java", 2241 "//content/public/android:content_java",
2269 ] 2242 ]
2270 } 2243 }
2271 } 2244 }
OLDNEW
« no previous file with comments | « chrome/policy.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698