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

Side by Side Diff: components/policy/core/common/BUILD.gn

Issue 1321013007: Fix dependencies on policy_component_test_support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto current master Created 5 years, 1 month 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 | « components/policy/core/browser/BUILD.gn ('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/features.gni") 5 import("//build/config/features.gni")
6 6
7 source_set("common") { 7 source_set("common") {
8 visibility = [ "//components/policy/*" ] 8 visibility = [ "//components/policy/*" ]
9 9
10 defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ] 10 defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ]
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 "policy_service.h", 204 "policy_service.h",
205 "policy_service_stub.cc", 205 "policy_service_stub.cc",
206 "policy_service_stub.h", 206 "policy_service_stub.h",
207 ] 207 ]
208 deps = [ 208 deps = [
209 "//base", 209 "//base",
210 ] 210 ]
211 } 211 }
212 } 212 }
213 213
214 source_set("unit_tests") { 214 if (enable_configuration_policy) {
215 testonly = true 215 source_set("unit_tests") {
216 sources = [ 216 testonly = true
217 "async_policy_provider_unittest.cc", 217 sources = [
218 "cloud/cloud_policy_client_unittest.cc", 218 "async_policy_provider_unittest.cc",
219 "cloud/cloud_policy_constants_unittest.cc", 219 "cloud/cloud_policy_client_unittest.cc",
220 "cloud/cloud_policy_core_unittest.cc", 220 "cloud/cloud_policy_constants_unittest.cc",
221 "cloud/cloud_policy_manager_unittest.cc", 221 "cloud/cloud_policy_core_unittest.cc",
222 "cloud/cloud_policy_refresh_scheduler_unittest.cc", 222 "cloud/cloud_policy_manager_unittest.cc",
223 "cloud/cloud_policy_service_unittest.cc", 223 "cloud/cloud_policy_refresh_scheduler_unittest.cc",
224 "cloud/cloud_policy_validator_unittest.cc", 224 "cloud/cloud_policy_service_unittest.cc",
225 "cloud/component_cloud_policy_service_unittest.cc", 225 "cloud/cloud_policy_validator_unittest.cc",
226 "cloud/component_cloud_policy_store_unittest.cc",
227 "cloud/component_cloud_policy_updater_unittest.cc",
228 "cloud/device_management_service_unittest.cc",
229 "cloud/external_policy_data_fetcher_unittest.cc",
230 "cloud/external_policy_data_updater_unittest.cc",
231 "cloud/policy_header_io_helper_unittest.cc",
232 "cloud/policy_header_service_unittest.cc",
233 "cloud/resource_cache_unittest.cc",
234 "cloud/user_cloud_policy_manager_unittest.cc",
235 "cloud/user_cloud_policy_store_unittest.cc",
236 "cloud/user_info_fetcher_unittest.cc",
237 "config_dir_policy_loader_unittest.cc",
238 "generate_policy_source_unittest.cc",
239 "policy_bundle_unittest.cc",
240 "policy_loader_ios_unittest.mm",
241 "policy_loader_mac_unittest.cc",
242 "policy_loader_win_unittest.cc",
243 "policy_map_unittest.cc",
244 "policy_service_impl_unittest.cc",
245 "policy_statistics_collector_unittest.cc",
246 "preg_parser_win_unittest.cc",
247 "registry_dict_win_unittest.cc",
248 "remote_commands/remote_commands_queue_unittest.cc",
249 "remote_commands/remote_commands_service_unittest.cc",
250 "schema_map_unittest.cc",
251 "schema_registry_tracking_policy_provider_unittest.cc",
252 "schema_registry_unittest.cc",
253 "schema_unittest.cc",
254 ]
255
256 if (is_chromeos) {
257 sources -= [
258 "cloud/user_cloud_policy_manager_unittest.cc",
259 "cloud/user_cloud_policy_store_unittest.cc",
260 ]
261 }
262
263 if (is_android) {
264 sources -= [ "async_policy_provider_unittest.cc" ]
265 }
266
267 if (is_android || is_ios) {
268 sources -= [
269 "cloud/component_cloud_policy_service_unittest.cc", 226 "cloud/component_cloud_policy_service_unittest.cc",
270 "cloud/component_cloud_policy_store_unittest.cc", 227 "cloud/component_cloud_policy_store_unittest.cc",
271 "cloud/component_cloud_policy_updater_unittest.cc", 228 "cloud/component_cloud_policy_updater_unittest.cc",
229 "cloud/device_management_service_unittest.cc",
272 "cloud/external_policy_data_fetcher_unittest.cc", 230 "cloud/external_policy_data_fetcher_unittest.cc",
273 "cloud/external_policy_data_updater_unittest.cc", 231 "cloud/external_policy_data_updater_unittest.cc",
232 "cloud/policy_header_io_helper_unittest.cc",
233 "cloud/policy_header_service_unittest.cc",
274 "cloud/resource_cache_unittest.cc", 234 "cloud/resource_cache_unittest.cc",
235 "cloud/user_cloud_policy_manager_unittest.cc",
236 "cloud/user_cloud_policy_store_unittest.cc",
237 "cloud/user_info_fetcher_unittest.cc",
275 "config_dir_policy_loader_unittest.cc", 238 "config_dir_policy_loader_unittest.cc",
239 "generate_policy_source_unittest.cc",
240 "policy_bundle_unittest.cc",
241 "policy_loader_ios_unittest.mm",
242 "policy_loader_mac_unittest.cc",
243 "policy_loader_win_unittest.cc",
244 "policy_map_unittest.cc",
245 "policy_service_impl_unittest.cc",
246 "policy_statistics_collector_unittest.cc",
247 "preg_parser_win_unittest.cc",
248 "registry_dict_win_unittest.cc",
249 "remote_commands/remote_commands_queue_unittest.cc",
250 "remote_commands/remote_commands_service_unittest.cc",
251 "schema_map_unittest.cc",
252 "schema_registry_tracking_policy_provider_unittest.cc",
253 "schema_registry_unittest.cc",
254 "schema_unittest.cc",
255 ]
256
257 if (is_chromeos) {
258 sources -= [
259 "cloud/user_cloud_policy_manager_unittest.cc",
260 "cloud/user_cloud_policy_store_unittest.cc",
261 ]
262 }
263
264 if (is_android) {
265 sources -= [ "async_policy_provider_unittest.cc" ]
266 }
267
268 if (is_android || is_ios) {
269 sources -= [
270 "cloud/component_cloud_policy_service_unittest.cc",
271 "cloud/component_cloud_policy_store_unittest.cc",
272 "cloud/component_cloud_policy_updater_unittest.cc",
273 "cloud/external_policy_data_fetcher_unittest.cc",
274 "cloud/external_policy_data_updater_unittest.cc",
275 "cloud/resource_cache_unittest.cc",
276 "config_dir_policy_loader_unittest.cc",
277 ]
278 }
279
280 deps = [
281 "//components/policy:policy_component_test_support",
282 "//testing/gmock",
283 "//testing/gtest",
276 ] 284 ]
277 } 285 }
278
279 deps = [
280 "//testing/gmock",
281 "//testing/gtest",
282 ]
283 if (enable_configuration_policy) {
284 deps += [ "//components/policy:policy_component_test_support" ]
285 }
286 } 286 }
OLDNEW
« no previous file with comments | « components/policy/core/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698