OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 # Test support files for the 'sync_core' target. | 7 # Test support files for the 'sync_core' target. |
8 { | 8 { |
9 'target_name': 'test_support_sync_core', | 9 'target_name': 'test_support_sync_core', |
10 'type': 'static_library', | 10 'type': 'static_library', |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 'api/fake_syncable_service.h', | 217 'api/fake_syncable_service.h', |
218 'api/fake_sync_change_processor.cc', | 218 'api/fake_sync_change_processor.cc', |
219 'api/fake_sync_change_processor.h', | 219 'api/fake_sync_change_processor.h', |
220 'api/sync_change_processor_wrapper_for_test.cc', | 220 'api/sync_change_processor_wrapper_for_test.cc', |
221 'api/sync_change_processor_wrapper_for_test.h', | 221 'api/sync_change_processor_wrapper_for_test.h', |
222 'api/sync_error_factory_mock.cc', | 222 'api/sync_error_factory_mock.cc', |
223 'api/sync_error_factory_mock.h', | 223 'api/sync_error_factory_mock.h', |
224 ], | 224 ], |
225 }, | 225 }, |
226 | 226 |
227 # Unit tests for the 'sync_core' target. This cannot be a static | |
228 # library because the unit test files have to be compiled directly | |
229 # into the executable, so we push the target files to the | |
230 # depending executable target via direct_dependent_settings. | |
231 { | |
232 'target_name': 'sync_core_tests', | |
233 'type': 'none', | |
234 # We only want unit test executables to include this target. | |
235 'suppress_wildcard': 1, | |
236 'dependencies': [ | |
237 '../base/base.gyp:base', | |
238 '../sql/sql.gyp:sql', | |
239 '../testing/gmock.gyp:gmock', | |
240 '../testing/gtest.gyp:gtest', | |
241 'sync', | |
242 'test_support_sync_core', | |
243 ], | |
244 'conditions': [ | |
245 ['OS=="linux" and chromeos==1', { | |
246 # Required by get_session_name_unittest.cc on Chrome OS. | |
247 'dependencies': [ | |
248 '../chromeos/chromeos.gyp:chromeos', | |
249 ], | |
250 }], | |
251 ], | |
252 # Propagate all dependencies since the actual compilation | |
253 # happens in the dependents. | |
254 'export_dependent_settings': [ | |
255 '../base/base.gyp:base', | |
256 '../sql/sql.gyp:sql', | |
257 '../testing/gmock.gyp:gmock', | |
258 '../testing/gtest.gyp:gtest', | |
259 'sync', | |
260 'test_support_sync_core', | |
261 ], | |
262 'direct_dependent_settings': { | |
263 'include_dirs': [ | |
264 '..', | |
265 ], | |
266 'sources': [ | |
267 'internal_api/public/base/attachment_id_proto_unittest.cc', | |
268 'internal_api/public/base/cancelation_signal_unittest.cc', | |
269 'internal_api/public/base/enum_set_unittest.cc', | |
270 'internal_api/public/base/node_ordinal_unittest.cc', | |
271 'internal_api/public/base/ordinal_unittest.cc', | |
272 'internal_api/public/base/unique_position_unittest.cc', | |
273 'internal_api/public/engine/model_safe_worker_unittest.cc', | |
274 'internal_api/public/util/immutable_unittest.cc', | |
275 'internal_api/public/util/weak_handle_unittest.cc', | |
276 'engine/apply_control_data_updates_unittest.cc', | |
277 'engine/backoff_delay_provider_unittest.cc', | |
278 'engine/directory_commit_contribution_unittest.cc', | |
279 'engine/directory_update_handler_unittest.cc', | |
280 'engine/entity_tracker_unittest.cc', | |
281 'engine/get_updates_processor_unittest.cc', | |
282 'engine/model_type_entity_unittest.cc', | |
283 'engine/model_type_sync_proxy_impl_unittest.cc', | |
284 'engine/model_type_sync_worker_impl_unittest.cc', | |
285 'engine/sync_scheduler_unittest.cc', | |
286 'engine/syncer_proto_util_unittest.cc', | |
287 'engine/syncer_unittest.cc', | |
288 'engine/syncer_util_unittest.cc', | |
289 'js/js_event_details_unittest.cc', | |
290 'js/sync_js_controller_unittest.cc', | |
291 'protocol/proto_enum_conversions_unittest.cc', | |
292 'protocol/proto_value_conversions_unittest.cc', | |
293 'sessions/model_type_registry_unittest.cc', | |
294 'sessions/nudge_tracker_unittest.cc', | |
295 'sessions/status_controller_unittest.cc', | |
296 'syncable/directory_unittest.cc', | |
297 'syncable/directory_unittest.h', | |
298 'syncable/directory_backing_store_unittest.cc', | |
299 'syncable/entry_kernel_unittest.cc', | |
300 'syncable/model_type_unittest.cc', | |
301 'syncable/nigori_util_unittest.cc', | |
302 'syncable/parent_child_index_unittest.cc', | |
303 'syncable/syncable_enum_conversions_unittest.cc', | |
304 'syncable/syncable_id_unittest.cc', | |
305 'syncable/syncable_unittest.cc', | |
306 'syncable/syncable_util_unittest.cc', | |
307 'util/cryptographer_unittest.cc', | |
308 'util/data_type_histogram_unittest.cc', | |
309 'util/get_session_name_unittest.cc', | |
310 'util/nigori_unittest.cc', | |
311 'util/protobuf_unittest.cc', | |
312 ], | |
313 }, | |
314 }, | |
315 | |
316 # Unit tests for the 'sync_internal_api' target. This cannot be a static | |
317 # library because the unit test files have to be compiled directly | |
318 # into the executable, so we push the target files to the | |
319 # depending executable target via direct_dependent_settings. | |
320 { | |
321 'target_name': 'sync_internal_api_tests', | |
322 'type': 'none', | |
323 # We only want unit test executables to include this target. | |
324 'suppress_wildcard': 1, | |
325 'dependencies': [ | |
326 '../base/base.gyp:base', | |
327 '../google_apis/google_apis.gyp:google_apis', | |
328 '../google_apis/google_apis.gyp:google_apis_test_support', | |
329 '../net/net.gyp:net', | |
330 '../net/net.gyp:net_test_support', | |
331 '../testing/gmock.gyp:gmock', | |
332 '../testing/gtest.gyp:gtest', | |
333 'sync', | |
334 'test_support_sync_internal_api', | |
335 ], | |
336 # Propagate all dependencies since the actual compilation | |
337 # happens in the dependents. | |
338 'export_dependent_settings': [ | |
339 '../base/base.gyp:base', | |
340 '../google_apis/google_apis.gyp:google_apis', | |
341 '../google_apis/google_apis.gyp:google_apis_test_support', | |
342 '../net/net.gyp:net', | |
343 '../net/net.gyp:net_test_support', | |
344 '../testing/gmock.gyp:gmock', | |
345 '../testing/gtest.gyp:gtest', | |
346 'sync', | |
347 'test_support_sync_internal_api', | |
348 ], | |
349 'direct_dependent_settings': { | |
350 'include_dirs': [ | |
351 '..', | |
352 ], | |
353 'sources': [ | |
354 'internal_api/attachments/attachment_downloader_impl_unittest.cc', | |
355 'internal_api/attachments/attachment_uploader_impl_unittest.cc', | |
356 'internal_api/attachments/fake_attachment_downloader_unittest.cc', | |
357 'internal_api/attachments/fake_attachment_store_unittest.cc', | |
358 'internal_api/attachments/fake_attachment_uploader_unittest.cc', | |
359 'internal_api/debug_info_event_listener_unittest.cc', | |
360 'internal_api/http_bridge_unittest.cc', | |
361 'internal_api/js_mutation_event_observer_unittest.cc', | |
362 'internal_api/js_sync_encryption_handler_observer_unittest.cc', | |
363 'internal_api/js_sync_manager_observer_unittest.cc', | |
364 'internal_api/protocol_event_buffer_unittest.cc', | |
365 'internal_api/public/change_record_unittest.cc', | |
366 'internal_api/public/sessions/sync_session_snapshot_unittest.cc', | |
367 'internal_api/sync_backup_manager_unittest.cc', | |
368 'internal_api/sync_context_proxy_impl_unittest.cc', | |
369 'internal_api/sync_encryption_handler_impl_unittest.cc', | |
370 'internal_api/sync_manager_impl_unittest.cc', | |
371 'internal_api/sync_rollback_manager_base_unittest.cc', | |
372 'internal_api/sync_rollback_manager_unittest.cc', | |
373 'internal_api/syncapi_server_connection_manager_unittest.cc', | |
374 ], | |
375 'conditions': [ | |
376 ['OS == "ios"', { | |
377 'sources!': [ | |
378 'internal_api/http_bridge_unittest.cc', | |
379 ], | |
380 }], | |
381 ], | |
382 }, | |
383 }, | |
384 | |
385 # Unit tests for the 'sync_api' target. This cannot be a static | |
386 # library because the unit test files have to be compiled directly | |
387 # into the executable, so we push the target files to the | |
388 # depending executable target via direct_dependent_settings. | |
389 { | |
390 'target_name': 'sync_api_tests', | |
391 'type': 'none', | |
392 # We only want unit test executables to include this target. | |
393 'suppress_wildcard': 1, | |
394 'dependencies': [ | |
395 '../base/base.gyp:base', | |
396 '../testing/gtest.gyp:gtest', | |
397 'sync', | |
398 'test_support_sync_internal_api', | |
399 ], | |
400 # Propagate all dependencies since the actual compilation | |
401 # happens in the dependents. | |
402 'export_dependent_settings': [ | |
403 '../base/base.gyp:base', | |
404 '../testing/gtest.gyp:gtest', | |
405 'sync', | |
406 'test_support_sync_internal_api', | |
407 ], | |
408 'direct_dependent_settings': { | |
409 'include_dirs': [ | |
410 '..', | |
411 ], | |
412 'sources': [ | |
413 'api/attachments/attachment_unittest.cc', | |
414 'api/attachments/attachment_id_unittest.cc', | |
415 'api/attachments/attachment_service_impl_unittest.cc', | |
416 'api/attachments/attachment_service_proxy_unittest.cc', | |
417 'api/sync_change_unittest.cc', | |
418 'api/sync_data_unittest.cc', | |
419 'api/sync_error_unittest.cc', | |
420 'api/sync_merge_result_unittest.cc', | |
421 ], | |
422 }, | |
423 }, | |
424 | |
425 # The unit test executable for sync tests. | 227 # The unit test executable for sync tests. |
426 { | 228 { |
427 'target_name': 'sync_unit_tests', | 229 'target_name': 'sync_unit_tests', |
428 'type': '<(gtest_target_type)', | 230 'type': '<(gtest_target_type)', |
429 # Typed-parametrized tests generate exit-time destructors. | 231 # Typed-parametrized tests generate exit-time destructors. |
430 'variables': { 'enable_wexit_time_destructors': 0, }, | 232 'variables': { 'enable_wexit_time_destructors': 0, }, |
431 'defines': [ | 233 'defines': [ |
432 'SYNC_TEST', | 234 'SYNC_TEST', |
433 ], | 235 ], |
434 'dependencies': [ | 236 'dependencies': [ |
| 237 '../base/base.gyp:base', |
435 '../base/base.gyp:run_all_unittests', | 238 '../base/base.gyp:run_all_unittests', |
436 'sync_api_tests', | 239 '../google_apis/google_apis.gyp:google_apis', |
437 'sync_core_tests', | 240 '../google_apis/google_apis.gyp:google_apis_test_support', |
438 'sync_internal_api_tests', | 241 '../net/net.gyp:net', |
| 242 '../net/net.gyp:net_test_support', |
| 243 '../sql/sql.gyp:sql', |
| 244 '../testing/gmock.gyp:gmock', |
| 245 '../testing/gtest.gyp:gtest', |
| 246 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
439 'sync', | 247 'sync', |
440 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | 248 'test_support_sync_core', |
| 249 'test_support_sync_internal_api', |
| 250 ], |
| 251 'include_dirs': [ |
| 252 '..', |
| 253 ], |
| 254 'sources': [ |
| 255 'api/attachments/attachment_id_unittest.cc', |
| 256 'api/attachments/attachment_service_impl_unittest.cc', |
| 257 'api/attachments/attachment_service_proxy_unittest.cc', |
| 258 'api/attachments/attachment_unittest.cc', |
| 259 'api/sync_change_unittest.cc', |
| 260 'api/sync_data_unittest.cc', |
| 261 'api/sync_error_unittest.cc', |
| 262 'api/sync_merge_result_unittest.cc', |
| 263 'engine/apply_control_data_updates_unittest.cc', |
| 264 'engine/backoff_delay_provider_unittest.cc', |
| 265 'engine/directory_commit_contribution_unittest.cc', |
| 266 'engine/directory_update_handler_unittest.cc', |
| 267 'engine/entity_tracker_unittest.cc', |
| 268 'engine/get_updates_processor_unittest.cc', |
| 269 'engine/model_type_entity_unittest.cc', |
| 270 'engine/model_type_sync_proxy_impl_unittest.cc', |
| 271 'engine/model_type_sync_worker_impl_unittest.cc', |
| 272 'engine/sync_scheduler_unittest.cc', |
| 273 'engine/syncer_proto_util_unittest.cc', |
| 274 'engine/syncer_unittest.cc', |
| 275 'engine/syncer_util_unittest.cc', |
| 276 'internal_api/attachments/attachment_downloader_impl_unittest.cc', |
| 277 'internal_api/attachments/attachment_uploader_impl_unittest.cc', |
| 278 'internal_api/attachments/fake_attachment_downloader_unittest.cc', |
| 279 'internal_api/attachments/fake_attachment_store_unittest.cc', |
| 280 'internal_api/attachments/fake_attachment_uploader_unittest.cc', |
| 281 'internal_api/debug_info_event_listener_unittest.cc', |
| 282 'internal_api/http_bridge_unittest.cc', |
| 283 'internal_api/js_mutation_event_observer_unittest.cc', |
| 284 'internal_api/js_sync_encryption_handler_observer_unittest.cc', |
| 285 'internal_api/js_sync_manager_observer_unittest.cc', |
| 286 'internal_api/protocol_event_buffer_unittest.cc', |
| 287 'internal_api/public/base/attachment_id_proto_unittest.cc', |
| 288 'internal_api/public/base/cancelation_signal_unittest.cc', |
| 289 'internal_api/public/base/enum_set_unittest.cc', |
| 290 'internal_api/public/base/node_ordinal_unittest.cc', |
| 291 'internal_api/public/base/ordinal_unittest.cc', |
| 292 'internal_api/public/base/unique_position_unittest.cc', |
| 293 'internal_api/public/change_record_unittest.cc', |
| 294 'internal_api/public/engine/model_safe_worker_unittest.cc', |
| 295 'internal_api/public/sessions/sync_session_snapshot_unittest.cc', |
| 296 'internal_api/public/util/immutable_unittest.cc', |
| 297 'internal_api/public/util/weak_handle_unittest.cc', |
| 298 'internal_api/sync_backup_manager_unittest.cc', |
| 299 'internal_api/sync_context_proxy_impl_unittest.cc', |
| 300 'internal_api/sync_encryption_handler_impl_unittest.cc', |
| 301 'internal_api/sync_manager_impl_unittest.cc', |
| 302 'internal_api/sync_rollback_manager_base_unittest.cc', |
| 303 'internal_api/sync_rollback_manager_unittest.cc', |
| 304 'internal_api/syncapi_server_connection_manager_unittest.cc', |
| 305 'js/js_event_details_unittest.cc', |
| 306 'js/sync_js_controller_unittest.cc', |
| 307 'protocol/proto_enum_conversions_unittest.cc', |
| 308 'protocol/proto_value_conversions_unittest.cc', |
| 309 'sessions/model_type_registry_unittest.cc', |
| 310 'sessions/nudge_tracker_unittest.cc', |
| 311 'sessions/status_controller_unittest.cc', |
| 312 'syncable/directory_backing_store_unittest.cc', |
| 313 'syncable/directory_unittest.cc', |
| 314 'syncable/directory_unittest.h', |
| 315 'syncable/entry_kernel_unittest.cc', |
| 316 'syncable/model_type_unittest.cc', |
| 317 'syncable/nigori_util_unittest.cc', |
| 318 'syncable/parent_child_index_unittest.cc', |
| 319 'syncable/syncable_enum_conversions_unittest.cc', |
| 320 'syncable/syncable_id_unittest.cc', |
| 321 'syncable/syncable_unittest.cc', |
| 322 'syncable/syncable_util_unittest.cc', |
| 323 'util/cryptographer_unittest.cc', |
| 324 'util/data_type_histogram_unittest.cc', |
| 325 'util/get_session_name_unittest.cc', |
| 326 'util/nigori_unittest.cc', |
| 327 'util/protobuf_unittest.cc', |
441 ], | 328 ], |
442 'conditions': [ | 329 'conditions': [ |
443 # TODO(akalin): This is needed because histogram.cc uses | 330 # TODO(akalin): This is needed because histogram.cc uses |
444 # leak_annotations.h, which pulls this in. Make 'base' | 331 # leak_annotations.h, which pulls this in. Make 'base' |
445 # propagate this dependency. | 332 # propagate this dependency. |
446 ['OS=="linux" and use_allocator!="none"', { | 333 ['OS=="linux" and use_allocator!="none"', { |
447 'dependencies': [ | 334 'dependencies': [ |
448 '../base/allocator/allocator.gyp:allocator', | 335 '../base/allocator/allocator.gyp:allocator', |
449 ], | 336 ], |
450 }], | 337 }], |
451 ['OS == "android"', { | 338 ['OS == "android"', { |
452 'dependencies': [ | 339 'dependencies': [ |
453 '../testing/android/native_test.gyp:native_test_native_code', | 340 '../testing/android/native_test.gyp:native_test_native_code', |
454 ], | 341 ], |
455 }], | 342 }], |
| 343 ['OS=="linux" and chromeos==1', { |
| 344 # Required by get_session_name_unittest.cc on Chrome OS. |
| 345 'dependencies': [ |
| 346 '../chromeos/chromeos.gyp:chromeos', |
| 347 ], |
| 348 }], |
| 349 ['OS == "ios"', { |
| 350 'sources!': [ |
| 351 'internal_api/http_bridge_unittest.cc', |
| 352 ], |
| 353 }], |
456 ], | 354 ], |
457 }, | 355 }, |
458 | 356 |
459 # Test support files for using the Test Accounts service. | 357 # Test support files for using the Test Accounts service. |
460 { | 358 { |
461 'target_name': 'test_support_accounts_client', | 359 'target_name': 'test_support_accounts_client', |
462 'type': 'static_library', | 360 'type': 'static_library', |
463 'direct_dependent_settings': { | 361 'direct_dependent_settings': { |
464 'include_dirs': [ | 362 'include_dirs': [ |
465 '..', | 363 '..', |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 ], | 451 ], |
554 'variables': { | 452 'variables': { |
555 'test_suite_name': 'sync_unit_tests', | 453 'test_suite_name': 'sync_unit_tests', |
556 }, | 454 }, |
557 'includes': [ '../build/apk_test.gypi' ], | 455 'includes': [ '../build/apk_test.gypi' ], |
558 }, | 456 }, |
559 ], | 457 ], |
560 }], | 458 }], |
561 ], | 459 ], |
562 } | 460 } |
OLD | NEW |