OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 # GYP version: components/policy.gypi:policy_component_core_browser | 7 # GYP version: components/policy.gypi:policy_component_core_browser |
8 source_set("browser") { | 8 source_set("browser") { |
9 visibility = [ "//components/policy/*" ] | 9 visibility = [ "//components/policy/*" ] |
10 sources = [ | 10 sources = [ |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 deps += [ | 71 deps += [ |
72 "//components/autofill/core/common", | 72 "//components/autofill/core/common", |
73 "//components/policy", | 73 "//components/policy", |
74 "//components/policy/proto", | 74 "//components/policy/proto", |
75 "//components/proxy_config", | 75 "//components/proxy_config", |
76 "//third_party/icu", | 76 "//third_party/icu", |
77 ] | 77 ] |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 source_set("unit_tests") { | 81 if (enable_configuration_policy) { |
82 testonly = true | 82 source_set("unit_tests") { |
83 sources = [ | 83 testonly = true |
84 "android/android_combined_policy_provider_unittest.cc", | 84 sources = [ |
85 "android/policy_converter_unittest.cc", | 85 "android/android_combined_policy_provider_unittest.cc", |
86 "autofill_policy_handler_unittest.cc", | 86 "android/policy_converter_unittest.cc", |
87 "browser_policy_connector_unittest.cc", | 87 "autofill_policy_handler_unittest.cc", |
88 "configuration_policy_handler_unittest.cc", | 88 "browser_policy_connector_unittest.cc", |
89 "configuration_policy_pref_store_unittest.cc", | 89 "configuration_policy_handler_unittest.cc", |
90 "proxy_policy_handler_unittest.cc", | 90 "configuration_policy_pref_store_unittest.cc", |
91 "url_blacklist_manager_unittest.cc", | 91 "proxy_policy_handler_unittest.cc", |
92 "url_blacklist_policy_handler_unittest.cc", | 92 "url_blacklist_manager_unittest.cc", |
93 ] | 93 "url_blacklist_policy_handler_unittest.cc", |
94 deps = [ | 94 ] |
95 "//components/url_formatter", | 95 deps = [ |
96 "//testing/gmock", | 96 "//components/policy:policy_component_test_support", |
97 "//testing/gtest", | 97 "//components/url_formatter", |
98 ] | 98 "//testing/gmock", |
99 if (enable_configuration_policy) { | 99 "//testing/gtest", |
100 deps += [ "//components/policy:policy_component_test_support" ] | 100 ] |
101 } | 101 } |
102 } | 102 } |
OLD | NEW |