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

Side by Side Diff: sync/sync.gyp

Issue 10874096: [Sync] Rework Invalidator-related unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 # The core sync library. 10 # The core sync library.
(...skipping 23 matching lines...) Expand all
34 'protocol/sync_proto.gyp:sync_proto', 34 'protocol/sync_proto.gyp:sync_proto',
35 ], 35 ],
36 'export_dependent_settings': [ 36 'export_dependent_settings': [
37 # Propagate sync_proto since our headers include its generated 37 # Propagate sync_proto since our headers include its generated
38 # files. 38 # files.
39 'protocol/sync_proto.gyp:sync_proto', 39 'protocol/sync_proto.gyp:sync_proto',
40 ], 40 ],
41 'sources': [ 41 'sources': [
42 'base/sync_export.h', 42 'base/sync_export.h',
43 'internal_api/public/base/enum_set.h', 43 'internal_api/public/base/enum_set.h',
44 'internal_api/public/base/invalidation_state.cc',
44 'internal_api/public/base/invalidation_state.h', 45 'internal_api/public/base/invalidation_state.h',
45 'internal_api/public/base/model_type.h', 46 'internal_api/public/base/model_type.h',
46 'internal_api/public/base/model_type_state_map.cc', 47 'internal_api/public/base/model_type_state_map.cc',
47 'internal_api/public/base/model_type_state_map.h', 48 'internal_api/public/base/model_type_state_map.h',
48 'internal_api/public/engine/model_safe_worker.cc', 49 'internal_api/public/engine/model_safe_worker.cc',
49 'internal_api/public/engine/model_safe_worker.h', 50 'internal_api/public/engine/model_safe_worker.h',
50 'internal_api/public/engine/passive_model_worker.cc', 51 'internal_api/public/engine/passive_model_worker.cc',
51 'internal_api/public/engine/passive_model_worker.h', 52 'internal_api/public/engine/passive_model_worker.h',
52 'internal_api/public/engine/polling_constants.cc', 53 'internal_api/public/engine/polling_constants.cc',
53 'internal_api/public/engine/polling_constants.h', 54 'internal_api/public/engine/polling_constants.h',
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 ], 480 ],
480 'sources': [ 481 'sources': [
481 'notifier/fake_invalidation_state_tracker.cc', 482 'notifier/fake_invalidation_state_tracker.cc',
482 'notifier/fake_invalidation_state_tracker.h', 483 'notifier/fake_invalidation_state_tracker.h',
483 'notifier/fake_invalidator.cc', 484 'notifier/fake_invalidator.cc',
484 'notifier/fake_invalidator.h', 485 'notifier/fake_invalidator.h',
485 'notifier/fake_invalidation_handler.cc', 486 'notifier/fake_invalidation_handler.cc',
486 'notifier/fake_invalidation_handler.h', 487 'notifier/fake_invalidation_handler.h',
487 'notifier/object_id_state_map_test_util.cc', 488 'notifier/object_id_state_map_test_util.cc',
488 'notifier/object_id_state_map_test_util.h', 489 'notifier/object_id_state_map_test_util.h',
490 'notifier/invalidator_test_template.h',
Nicolas Zea 2012/08/29 23:41:05 abc order
akalin 2012/08/30 22:20:38 Done.
489 ], 491 ],
490 }, 492 },
491 493
492 # Test support files for the 'syncapi_core' target. 494 # Test support files for the 'syncapi_core' target.
493 { 495 {
494 'target_name': 'test_support_syncapi_core', 496 'target_name': 'test_support_syncapi_core',
495 'type': 'static_library', 497 'type': 'static_library',
496 'variables': { 'enable_wexit_time_destructors': 1, }, 498 'variables': { 'enable_wexit_time_destructors': 1, },
497 'include_dirs': [ 499 'include_dirs': [
498 '..', 500 '..',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 # happens in the dependents. 568 # happens in the dependents.
567 'export_dependent_settings': [ 569 'export_dependent_settings': [
568 '../base/base.gyp:base', 570 '../base/base.gyp:base',
569 '../testing/gmock.gyp:gmock', 571 '../testing/gmock.gyp:gmock',
570 '../testing/gtest.gyp:gtest', 572 '../testing/gtest.gyp:gtest',
571 'protocol/sync_proto.gyp:sync_proto', 573 'protocol/sync_proto.gyp:sync_proto',
572 'sync', 574 'sync',
573 'test_support_sync', 575 'test_support_sync',
574 ], 576 ],
575 'direct_dependent_settings': { 577 'direct_dependent_settings': {
576 'variables': { 'enable_wexit_time_destructors': 1, },
577 'include_dirs': [ 578 'include_dirs': [
578 '..', 579 '..',
579 ], 580 ],
580 'sources': [ 581 'sources': [
581 'internal_api/public/base/enum_set_unittest.cc', 582 'internal_api/public/base/enum_set_unittest.cc',
582 'internal_api/public/base/model_type_state_map_unittest.cc', 583 'internal_api/public/base/model_type_state_map_unittest.cc',
583 'internal_api/public/engine/model_safe_worker_unittest.cc', 584 'internal_api/public/engine/model_safe_worker_unittest.cc',
584 'internal_api/public/util/immutable_unittest.cc', 585 'internal_api/public/util/immutable_unittest.cc',
585 'engine/apply_updates_command_unittest.cc', 586 'engine/apply_updates_command_unittest.cc',
586 'engine/backoff_delay_provider_unittest.cc', 587 'engine/backoff_delay_provider_unittest.cc',
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 '../net/net.gyp:net_test_support', 653 '../net/net.gyp:net_test_support',
653 '../testing/gmock.gyp:gmock', 654 '../testing/gmock.gyp:gmock',
654 '../testing/gtest.gyp:gtest', 655 '../testing/gtest.gyp:gtest',
655 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n', 656 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
656 '../third_party/libjingle/libjingle.gyp:libjingle', 657 '../third_party/libjingle/libjingle.gyp:libjingle',
657 'sync', 658 'sync',
658 'sync_notifier', 659 'sync_notifier',
659 'test_support_sync_notifier', 660 'test_support_sync_notifier',
660 ], 661 ],
661 'direct_dependent_settings': { 662 'direct_dependent_settings': {
662 'variables': { 'enable_wexit_time_destructors': 1, },
663 'include_dirs': [ 663 'include_dirs': [
664 '..', 664 '..',
665 ], 665 ],
666 'sources': [ 666 'sources': [
667 'notifier/invalidator_factory_unittest.cc', 667 'notifier/invalidator_factory_unittest.cc',
668 ], 668 ],
669 'conditions': [ 669 'conditions': [
670 ['OS != "android"', { 670 ['OS != "android"', {
671 'sources': [ 671 'sources': [
672 'notifier/chrome_invalidation_client_unittest.cc', 672 'notifier/chrome_invalidation_client_unittest.cc',
673 'notifier/chrome_system_resources_unittest.cc', 673 'notifier/chrome_system_resources_unittest.cc',
674 'notifier/fake_invalidator_unittest.cc',
674 'notifier/invalidation_notifier_unittest.cc', 675 'notifier/invalidation_notifier_unittest.cc',
675 'notifier/invalidator_registrar_unittest.cc', 676 'notifier/invalidator_registrar_unittest.cc',
676 'notifier/non_blocking_invalidator_unittest.cc', 677 'notifier/non_blocking_invalidator_unittest.cc',
677 'notifier/p2p_invalidator_unittest.cc', 678 'notifier/p2p_invalidator_unittest.cc',
678 'notifier/push_client_channel_unittest.cc', 679 'notifier/push_client_channel_unittest.cc',
679 'notifier/registration_manager_unittest.cc', 680 'notifier/registration_manager_unittest.cc',
680 ], 681 ],
681 }], 682 }],
682 ], 683 ],
683 }, 684 },
(...skipping 28 matching lines...) Expand all
712 '../net/net.gyp:net_test_support', 713 '../net/net.gyp:net_test_support',
713 '../testing/gmock.gyp:gmock', 714 '../testing/gmock.gyp:gmock',
714 '../testing/gtest.gyp:gtest', 715 '../testing/gtest.gyp:gtest',
715 'protocol/sync_proto.gyp:sync_proto', 716 'protocol/sync_proto.gyp:sync_proto',
716 'sync', 717 'sync',
717 'sync_notifier', 718 'sync_notifier',
718 'syncapi_core', 719 'syncapi_core',
719 'test_support_syncapi_core', 720 'test_support_syncapi_core',
720 ], 721 ],
721 'direct_dependent_settings': { 722 'direct_dependent_settings': {
722 'variables': { 'enable_wexit_time_destructors': 1, },
723 'include_dirs': [ 723 'include_dirs': [
724 '..', 724 '..',
725 ], 725 ],
726 'sources': [ 726 'sources': [
727 'internal_api/public/change_record_unittest.cc', 727 'internal_api/public/change_record_unittest.cc',
728 'internal_api/debug_info_event_listener_unittest.cc', 728 'internal_api/debug_info_event_listener_unittest.cc',
729 'internal_api/http_bridge_unittest.cc', 729 'internal_api/http_bridge_unittest.cc',
730 'internal_api/js_mutation_event_observer_unittest.cc', 730 'internal_api/js_mutation_event_observer_unittest.cc',
731 'internal_api/js_sync_encryption_handler_observer_unittest.cc', 731 'internal_api/js_sync_encryption_handler_observer_unittest.cc',
732 'internal_api/js_sync_manager_observer_unittest.cc', 732 'internal_api/js_sync_manager_observer_unittest.cc',
(...skipping 25 matching lines...) Expand all
758 # happens in the dependents. 758 # happens in the dependents.
759 'export_dependent_settings': [ 759 'export_dependent_settings': [
760 '../base/base.gyp:base', 760 '../base/base.gyp:base',
761 '../testing/gtest.gyp:gtest', 761 '../testing/gtest.gyp:gtest',
762 'protocol/sync_proto.gyp:sync_proto', 762 'protocol/sync_proto.gyp:sync_proto',
763 'sync', 763 'sync',
764 'syncapi_service', 764 'syncapi_service',
765 'test_support_syncapi_service', 765 'test_support_syncapi_service',
766 ], 766 ],
767 'direct_dependent_settings': { 767 'direct_dependent_settings': {
768 'variables': { 'enable_wexit_time_destructors': 1, },
769 'include_dirs': [ 768 'include_dirs': [
770 '..', 769 '..',
771 ], 770 ],
772 'sources': [ 771 'sources': [
773 'api/sync_change_unittest.cc', 772 'api/sync_change_unittest.cc',
774 'api/sync_error_unittest.cc', 773 'api/sync_error_unittest.cc',
775 ], 774 ],
776 }, 775 },
777 }, 776 },
778 777
779 # The unit test executable for sync tests. 778 # The unit test executable for sync tests.
780 { 779 {
781 'target_name': 'sync_unit_tests', 780 'target_name': 'sync_unit_tests',
782 'type': '<(gtest_target_type)', 781 'type': '<(gtest_target_type)',
782 # Typed-parametrized tests generate exit-time destructors.
783 'variables': { 'enable_wexit_time_destructors': 0, },
783 'dependencies': [ 784 'dependencies': [
784 '../base/base.gyp:run_all_unittests', 785 '../base/base.gyp:run_all_unittests',
785 'sync_tests', 786 'sync_tests',
786 'sync_notifier_tests', 787 'sync_notifier_tests',
787 'syncapi_core_tests', 788 'syncapi_core_tests',
788 'syncapi_service_tests', 789 'syncapi_service_tests',
789 ], 790 ],
790 # TODO(akalin): This is needed because histogram.cc uses 791 # TODO(akalin): This is needed because histogram.cc uses
791 # leak_annotations.h, which pulls this in. Make 'base' 792 # leak_annotations.h, which pulls this in. Make 'base'
792 # propagate this dependency. 793 # propagate this dependency.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 'variables': { 865 'variables': {
865 'test_suite_name': 'sync_unit_tests', 866 'test_suite_name': 'sync_unit_tests',
866 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sync_unit _tests<(SHARED_LIB_SUFFIX)', 867 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sync_unit _tests<(SHARED_LIB_SUFFIX)',
867 }, 868 },
868 'includes': [ '../build/apk_test.gypi' ], 869 'includes': [ '../build/apk_test.gypi' ],
869 }, 870 },
870 ], 871 ],
871 }], 872 }],
872 ], 873 ],
873 } 874 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698