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 # GN version: //components/sync:test_support_sync_core | 8 # GN version: //components/sync:test_support_sync_core |
9 { | 9 { |
10 'target_name': 'test_support_sync_core', | 10 'target_name': 'test_support_sync_core', |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 'api/fake_syncable_service.cc', | 235 'api/fake_syncable_service.cc', |
236 'api/fake_syncable_service.h', | 236 'api/fake_syncable_service.h', |
237 'api/mock_model_type_store.cc', | 237 'api/mock_model_type_store.cc', |
238 'api/mock_model_type_store.h', | 238 'api/mock_model_type_store.h', |
239 'api/sync_change_processor_wrapper_for_test.cc', | 239 'api/sync_change_processor_wrapper_for_test.cc', |
240 'api/sync_change_processor_wrapper_for_test.h', | 240 'api/sync_change_processor_wrapper_for_test.h', |
241 'api/sync_error_factory_mock.cc', | 241 'api/sync_error_factory_mock.cc', |
242 'api/sync_error_factory_mock.h', | 242 'api/sync_error_factory_mock.h', |
243 ], | 243 ], |
244 }, | 244 }, |
245 | |
246 # The unit test executable for sync tests. | |
247 # GN version: //components/sync:sync_unit_tests | |
248 { | |
249 'target_name': 'sync_unit_tests', | |
250 'type': '<(gtest_target_type)', | |
251 # Typed-parametrized tests generate exit-time destructors. | |
252 'variables': { 'enable_wexit_time_destructors': 0, }, | |
253 'defines': [ | |
254 'SYNC_TEST', | |
255 ], | |
256 'dependencies': [ | |
257 '../base/base.gyp:base', | |
258 '../base/base.gyp:run_all_unittests', | |
259 '../google_apis/google_apis.gyp:google_apis', | |
260 '../google_apis/google_apis.gyp:google_apis_test_support', | |
261 '../net/net.gyp:net', | |
262 '../net/net.gyp:net_test_support', | |
263 '../sql/sql.gyp:sql', | |
264 '../sql/sql.gyp:test_support_sql', | |
265 '../testing/gmock.gyp:gmock', | |
266 '../testing/gtest.gyp:gtest', | |
267 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | |
268 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
269 'sync', | |
270 'test_support_sync_api', | |
271 'test_support_sync_core', | |
272 'test_support_sync_core_impl', | |
273 ], | |
274 'include_dirs': [ | |
275 '..', | |
276 ], | |
277 'sources': [ | |
278 'api/attachments/attachment_id_unittest.cc', | |
279 'api/attachments/attachment_metadata_unittest.cc', | |
280 'api/attachments/attachment_unittest.cc', | |
281 'api/entity_data_unittest.cc', | |
282 'api/model_type_service_unittest.cc', | |
283 'api/sync_change_unittest.cc', | |
284 'api/sync_data_unittest.cc', | |
285 'api/sync_error_unittest.cc', | |
286 'api/sync_merge_result_unittest.cc', | |
287 'engine_impl/apply_control_data_updates_unittest.cc', | |
288 'engine_impl/backoff_delay_provider_unittest.cc', | |
289 'engine_impl/directory_commit_contribution_unittest.cc', | |
290 'engine_impl/directory_update_handler_unittest.cc', | |
291 'engine_impl/get_updates_processor_unittest.cc', | |
292 'engine_impl/model_type_worker_unittest.cc', | |
293 'engine_impl/sync_scheduler_unittest.cc', | |
294 'engine_impl/syncer_proto_util_unittest.cc', | |
295 'engine_impl/syncer_unittest.cc', | |
296 'engine_impl/syncer_util_unittest.cc', | |
297 'engine_impl/worker_entity_tracker_unittest.cc', | |
298 'core_impl/attachments/attachment_downloader_impl_unittest.cc', | |
299 'core_impl/attachments/attachment_service_impl_unittest.cc', | |
300 'core_impl/attachments/attachment_service_proxy_unittest.cc', | |
301 'core_impl/attachments/attachment_store_frontend_unittest.cc', | |
302 'core_impl/attachments/attachment_store_test_template.h', | |
303 'core_impl/attachments/attachment_uploader_impl_unittest.cc', | |
304 'core_impl/attachments/fake_attachment_downloader_unittest.cc', | |
305 'core_impl/attachments/fake_attachment_uploader_unittest.cc', | |
306 'core_impl/attachments/in_memory_attachment_store_unittest.cc', | |
307 'core_impl/attachments/on_disk_attachment_store_unittest.cc', | |
308 'core_impl/attachments/task_queue_unittest.cc', | |
309 'core_impl/debug_info_event_listener_unittest.cc', | |
310 'core/http_bridge_unittest.cc', | |
311 'core_impl/js_mutation_event_observer_unittest.cc', | |
312 'core_impl/js_sync_encryption_handler_observer_unittest.cc', | |
313 'core_impl/js_sync_manager_observer_unittest.cc', | |
314 'core_impl/model_type_connector_proxy_unittest.cc', | |
315 'core/model_type_store_backend_unittest.cc', | |
316 'core/model_type_store_impl_unittest.cc', | |
317 'core/processor_entity_tracker_unittest.cc', | |
318 'core_impl/protocol_event_buffer_unittest.cc', | |
319 'base/attachment_id_proto_unittest.cc', | |
320 'base/cancelation_signal_unittest.cc', | |
321 'base/enum_set_unittest.cc', | |
322 'base/node_ordinal_unittest.cc', | |
323 'base/ordinal_unittest.cc', | |
324 'base/unique_position_unittest.cc', | |
325 'core/change_record_unittest.cc', | |
326 'core/data_batch_impl_unittest.cc', | |
327 'engine/model_safe_worker_unittest.cc', | |
328 'sessions/sync_session_snapshot_unittest.cc', | |
329 'core/simple_metadata_change_list_unittest.cc', | |
330 'base/immutable_unittest.cc', | |
331 'base/proto_value_ptr_unittest.cc', | |
332 'base/weak_handle_unittest.cc', | |
333 'core/shared_model_type_processor_unittest.cc', | |
334 'core_impl/sync_encryption_handler_impl_unittest.cc', | |
335 'core_impl/sync_manager_impl_unittest.cc', | |
336 'core_impl/syncapi_server_connection_manager_unittest.cc', | |
337 'js/js_event_details_unittest.cc', | |
338 'js/sync_js_controller_unittest.cc', | |
339 'protocol/proto_enum_conversions_unittest.cc', | |
340 'protocol/proto_value_conversions_unittest.cc', | |
341 'sessions_impl/model_type_registry_unittest.cc', | |
342 'sessions_impl/nudge_tracker_unittest.cc', | |
343 'sessions_impl/status_controller_unittest.cc', | |
344 'syncable/directory_backing_store_unittest.cc', | |
345 'syncable/directory_unittest.cc', | |
346 'syncable/directory_unittest.h', | |
347 'syncable/entry_kernel_unittest.cc', | |
348 'syncable/model_type_unittest.cc', | |
349 'syncable/nigori_util_unittest.cc', | |
350 'syncable/parent_child_index_unittest.cc', | |
351 'syncable/syncable_enum_conversions_unittest.cc', | |
352 'syncable/syncable_id_unittest.cc', | |
353 'syncable/syncable_unittest.cc', | |
354 'syncable/syncable_util_unittest.cc', | |
355 'base/cryptographer_unittest.cc', | |
356 'base/data_type_histogram_unittest.cc', | |
357 'base/get_session_name_unittest.cc', | |
358 'base/nigori_unittest.cc', | |
359 'base/protobuf_unittest.cc', | |
360 ], | |
361 'conditions': [ | |
362 ['OS == "android"', { | |
363 'dependencies': [ | |
364 '../testing/android/native_test.gyp:native_test_native_code', | |
365 ], | |
366 }], | |
367 ['OS=="linux" and chromeos==1', { | |
368 # Required by get_session_name_unittest.cc on Chrome OS. | |
369 'dependencies': [ | |
370 '../chromeos/chromeos.gyp:chromeos', | |
371 ], | |
372 }], | |
373 ['OS == "ios"', { | |
374 'sources!': [ | |
375 'core/http_bridge_unittest.cc', | |
376 ], | |
377 }], | |
378 ], | |
379 }, | |
380 ], | 245 ], |
381 'conditions': [ | 246 'conditions': [ |
382 ['OS != "ios"', { | 247 ['OS != "ios"', { |
383 'targets': [ | 248 'targets': [ |
384 # A tool that can be used to launch a python sync server instance. | 249 # A tool that can be used to launch a python sync server instance. |
385 { | 250 { |
386 'target_name': 'run_sync_testserver', | 251 'target_name': 'run_sync_testserver', |
387 'type': 'executable', | 252 'type': 'executable', |
388 'dependencies': [ | 253 'dependencies': [ |
389 '../base/base.gyp:base', | 254 '../base/base.gyp:base', |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 '../base/base.gyp:base', | 352 '../base/base.gyp:base', |
488 ], | 353 ], |
489 'export_dependent_settings': [ | 354 'export_dependent_settings': [ |
490 '../testing/gtest.gyp:gtest', | 355 '../testing/gtest.gyp:gtest', |
491 ], | 356 ], |
492 'sources': [ | 357 'sources': [ |
493 'test/fake_server/android/fake_server_helper_android.cc', | 358 'test/fake_server/android/fake_server_helper_android.cc', |
494 'test/fake_server/android/fake_server_helper_android.h', | 359 'test/fake_server/android/fake_server_helper_android.h', |
495 ], | 360 ], |
496 }, | 361 }, |
497 { | |
498 # GN: //components/sync:sync_unit_tests_apk | |
499 'target_name': 'sync_unit_tests_apk', | |
500 'type': 'none', | |
501 'dependencies': [ | |
502 'sync_unit_tests', | |
503 ], | |
504 'variables': { | |
505 'test_suite_name': 'sync_unit_tests', | |
506 'isolate_file': '../sync_unit_tests.isolate', | |
507 }, | |
508 'includes': [ '../../build/apk_test.gypi' ], | |
509 }, | |
510 ], | |
511 'conditions': [ | |
512 ['test_isolation_mode != "noop"', { | |
513 'targets': [ | |
514 { | |
515 'target_name': 'sync_unit_tests_apk_run', | |
516 'type': 'none', | |
517 'dependencies': [ | |
518 'sync_unit_tests_apk', | |
519 ], | |
520 'includes': [ | |
521 '../../build/isolate.gypi', | |
522 ], | |
523 'sources': [ | |
524 'sync_unit_tests_apk.isolate', | |
525 ], | |
526 }, | |
527 ], | |
528 }], | |
529 ], | |
530 }], | |
531 ['test_isolation_mode != "noop"', { | |
532 'targets': [ | |
533 { | |
534 'target_name': 'sync_unit_tests_run', | |
535 'type': 'none', | |
536 'dependencies': [ | |
537 'sync_unit_tests', | |
538 ], | |
539 'includes': [ | |
540 '../../build/isolate.gypi', | |
541 ], | |
542 'sources': [ | |
543 '../sync_unit_tests.isolate', | |
544 ], | |
545 }, | |
546 ], | 362 ], |
547 }], | 363 }], |
548 ], | 364 ], |
549 } | 365 } |
OLD | NEW |