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

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

Issue 2034083003: mac/gn: Make sure components_unittests contain the same tests in gyp and gn builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « components/components_tests.gyp ('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 = [ 8 visibility = [
9 "//components/policy/*", 9 "//components/policy/*",
10 "//components/syncable_prefs/*", 10 "//components/syncable_prefs/*",
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 "cloud/user_cloud_policy_store_base.h", 69 "cloud/user_cloud_policy_store_base.h",
70 "cloud/user_info_fetcher.cc", 70 "cloud/user_info_fetcher.cc",
71 "cloud/user_info_fetcher.h", 71 "cloud/user_info_fetcher.h",
72 "config_dir_policy_loader.cc", 72 "config_dir_policy_loader.cc",
73 "config_dir_policy_loader.h", 73 "config_dir_policy_loader.h",
74 "configuration_policy_provider.cc", 74 "configuration_policy_provider.cc",
75 "configuration_policy_provider.h", 75 "configuration_policy_provider.h",
76 "external_data_fetcher.cc", 76 "external_data_fetcher.cc",
77 "external_data_fetcher.h", 77 "external_data_fetcher.h",
78 "external_data_manager.h", 78 "external_data_manager.h",
79 "mac_util.cc",
80 "mac_util.h",
81 "policy_bundle.cc", 79 "policy_bundle.cc",
82 "policy_bundle.h", 80 "policy_bundle.h",
83 "policy_details.h", 81 "policy_details.h",
84 "policy_load_status.cc", 82 "policy_load_status.cc",
85 "policy_load_status.h", 83 "policy_load_status.h",
86 "policy_loader_ios.h", 84 "policy_loader_ios.h",
87 "policy_loader_ios.mm", 85 "policy_loader_ios.mm",
88 "policy_loader_mac.h", 86 "policy_loader_mac.h",
89 "policy_loader_mac.mm", 87 "policy_loader_mac.mm",
90 "policy_loader_win.cc", 88 "policy_loader_win.cc",
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 "cloud/cloud_policy_client_registration_helper.h", 183 "cloud/cloud_policy_client_registration_helper.h",
186 "cloud/user_cloud_policy_manager.cc", 184 "cloud/user_cloud_policy_manager.cc",
187 "cloud/user_cloud_policy_manager.h", 185 "cloud/user_cloud_policy_manager.h",
188 "cloud/user_cloud_policy_store.cc", 186 "cloud/user_cloud_policy_store.cc",
189 "cloud/user_cloud_policy_store.h", 187 "cloud/user_cloud_policy_store.h",
190 ] 188 ]
191 } 189 }
192 if (is_mac) { 190 if (is_mac) {
193 libs = [ "CoreFoundation.framework" ] 191 libs = [ "CoreFoundation.framework" ]
194 } 192 }
195 if (!is_ios && !is_mac) { 193 if (is_ios || is_mac) {
196 sources -= [ 194 sources += [
197 "mac_util.cc", 195 "mac_util.cc",
198 "mac_util.h", 196 "mac_util.h",
199 ] 197 ]
200 } 198 }
201 } else { 199 } else {
202 # Some of the policy code is always enabled, so that other parts of Chrome 200 # Some of the policy code is always enabled, so that other parts of Chrome
203 # can always interface with the PolicyService without having to #ifdef on 201 # can always interface with the PolicyService without having to #ifdef on
204 # ENABLE_CONFIGURATION_POLICY. 202 # ENABLE_CONFIGURATION_POLICY.
205 sources = [ 203 sources = [
206 "external_data_fetcher.cc", 204 "external_data_fetcher.cc",
(...skipping 13 matching lines...) Expand all
220 deps = [ 218 deps = [
221 "//base", 219 "//base",
222 ] 220 ]
223 } 221 }
224 } 222 }
225 223
226 if (enable_configuration_policy) { 224 if (enable_configuration_policy) {
227 source_set("unit_tests") { 225 source_set("unit_tests") {
228 testonly = true 226 testonly = true
229 sources = [ 227 sources = [
230 "async_policy_provider_unittest.cc",
231 "cloud/cloud_policy_client_unittest.cc", 228 "cloud/cloud_policy_client_unittest.cc",
232 "cloud/cloud_policy_constants_unittest.cc", 229 "cloud/cloud_policy_constants_unittest.cc",
233 "cloud/cloud_policy_core_unittest.cc", 230 "cloud/cloud_policy_core_unittest.cc",
234 "cloud/cloud_policy_manager_unittest.cc", 231 "cloud/cloud_policy_manager_unittest.cc",
235 "cloud/cloud_policy_refresh_scheduler_unittest.cc", 232 "cloud/cloud_policy_refresh_scheduler_unittest.cc",
236 "cloud/cloud_policy_service_unittest.cc", 233 "cloud/cloud_policy_service_unittest.cc",
237 "cloud/cloud_policy_validator_unittest.cc", 234 "cloud/cloud_policy_validator_unittest.cc",
238 "cloud/component_cloud_policy_service_unittest.cc",
239 "cloud/component_cloud_policy_store_unittest.cc",
240 "cloud/component_cloud_policy_updater_unittest.cc",
241 "cloud/device_management_service_unittest.cc", 235 "cloud/device_management_service_unittest.cc",
242 "cloud/external_policy_data_fetcher_unittest.cc",
243 "cloud/external_policy_data_updater_unittest.cc",
244 "cloud/policy_header_io_helper_unittest.cc", 236 "cloud/policy_header_io_helper_unittest.cc",
245 "cloud/policy_header_service_unittest.cc", 237 "cloud/policy_header_service_unittest.cc",
246 "cloud/resource_cache_unittest.cc",
247 "cloud/user_cloud_policy_manager_unittest.cc",
248 "cloud/user_cloud_policy_store_unittest.cc",
249 "cloud/user_info_fetcher_unittest.cc", 238 "cloud/user_info_fetcher_unittest.cc",
250 "config_dir_policy_loader_unittest.cc",
251 "generate_policy_source_unittest.cc", 239 "generate_policy_source_unittest.cc",
252 "policy_bundle_unittest.cc", 240 "policy_bundle_unittest.cc",
253 "policy_loader_ios_unittest.mm", 241 "policy_loader_ios_unittest.mm",
254 "policy_loader_mac_unittest.cc", 242 "policy_loader_mac_unittest.cc",
255 "policy_loader_win_unittest.cc", 243 "policy_loader_win_unittest.cc",
256 "policy_map_unittest.cc", 244 "policy_map_unittest.cc",
257 "policy_service_impl_unittest.cc", 245 "policy_service_impl_unittest.cc",
258 "policy_statistics_collector_unittest.cc", 246 "policy_statistics_collector_unittest.cc",
259 "preg_parser_win_unittest.cc", 247 "preg_parser_win_unittest.cc",
260 "registry_dict_win_unittest.cc", 248 "registry_dict_win_unittest.cc",
261 "remote_commands/remote_commands_queue_unittest.cc", 249 "remote_commands/remote_commands_queue_unittest.cc",
262 "remote_commands/remote_commands_service_unittest.cc", 250 "remote_commands/remote_commands_service_unittest.cc",
263 "schema_map_unittest.cc", 251 "schema_map_unittest.cc",
264 "schema_registry_tracking_policy_provider_unittest.cc", 252 "schema_registry_tracking_policy_provider_unittest.cc",
265 "schema_registry_unittest.cc", 253 "schema_registry_unittest.cc",
266 "schema_unittest.cc", 254 "schema_unittest.cc",
267 ] 255 ]
268 256 if (!is_chromeos) {
269 if (is_chromeos) { 257 sources += [
270 sources -= [
271 "cloud/user_cloud_policy_manager_unittest.cc", 258 "cloud/user_cloud_policy_manager_unittest.cc",
272 "cloud/user_cloud_policy_store_unittest.cc", 259 "cloud/user_cloud_policy_store_unittest.cc",
273 ] 260 ]
274 } 261 }
275 262 if (!is_android) {
276 if (is_android) { 263 sources += [ "async_policy_provider_unittest.cc" ]
277 sources -= [ "async_policy_provider_unittest.cc" ]
278 } 264 }
279 265 if (!is_android && !is_ios) {
280 if (is_android || is_ios) { 266 sources += [
281 sources -= [
282 "cloud/component_cloud_policy_service_unittest.cc", 267 "cloud/component_cloud_policy_service_unittest.cc",
283 "cloud/component_cloud_policy_store_unittest.cc", 268 "cloud/component_cloud_policy_store_unittest.cc",
284 "cloud/component_cloud_policy_updater_unittest.cc", 269 "cloud/component_cloud_policy_updater_unittest.cc",
285 "cloud/external_policy_data_fetcher_unittest.cc", 270 "cloud/external_policy_data_fetcher_unittest.cc",
286 "cloud/external_policy_data_updater_unittest.cc", 271 "cloud/external_policy_data_updater_unittest.cc",
287 "cloud/resource_cache_unittest.cc", 272 "cloud/resource_cache_unittest.cc",
288 "config_dir_policy_loader_unittest.cc", 273 "config_dir_policy_loader_unittest.cc",
289 ] 274 ]
290 } 275 }
276 if (is_mac || is_ios) {
277 sources += [ "mac_util_unittest.cc" ]
Nico 2016/06/03 19:19:49 (that's the new file here; the other changes to th
278 }
279
291 if (is_win) { 280 if (is_win) {
292 # Needed by policy_loader_win_unittest.cc and preg_parser_win_unittest.cc 281 # Needed by policy_loader_win_unittest.cc and preg_parser_win_unittest.cc
293 data = [ 282 data = [
294 "//chrome/test/data/policy/", 283 "//chrome/test/data/policy/",
295 ] 284 ]
296 } 285 }
297 286
298 deps = [ 287 deps = [
299 "//base", 288 "//base",
300 "//base/test:test_support", 289 "//base/test:test_support",
301 "//components/policy", 290 "//components/policy",
302 "//components/policy:policy_component_test_support", 291 "//components/policy:policy_component_test_support",
303 "//components/prefs:test_support", 292 "//components/prefs:test_support",
304 "//components/prefs:test_support", 293 "//components/prefs:test_support",
305 "//google_apis", 294 "//google_apis",
306 "//net:test_support", 295 "//net:test_support",
307 "//testing/gmock", 296 "//testing/gmock",
308 "//testing/gtest", 297 "//testing/gtest",
309 ] 298 ]
310 } 299 }
311 } 300 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698