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

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

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