| OLD | NEW |
| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//components/sync/protocol/protocol_sources.gni") | 7 import("//components/sync/protocol/protocol_sources.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 static_library("sync") { | 10 static_library("sync") { |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 ] | 593 ] |
| 594 deps += [ | 594 deps += [ |
| 595 "//components/policy:generated", | 595 "//components/policy:generated", |
| 596 "//components/policy/core/browser", | 596 "//components/policy/core/browser", |
| 597 ] | 597 ] |
| 598 } | 598 } |
| 599 | 599 |
| 600 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 600 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 601 } | 601 } |
| 602 | 602 |
| 603 # TODO(maxbogue): Refactor the test support targets to remove core references. | 603 static_library("test_support_base") { |
| 604 static_library("test_support_sync_core") { | |
| 605 testonly = true | 604 testonly = true |
| 606 sources = [ | 605 sources = [ |
| 607 "base/fake_encryptor.cc", | 606 "base/fake_encryptor.cc", |
| 608 "base/fake_encryptor.h", | 607 "base/fake_encryptor.h", |
| 609 "base/mock_unrecoverable_error_handler.cc", | 608 "base/mock_unrecoverable_error_handler.cc", |
| 610 "base/mock_unrecoverable_error_handler.h", | 609 "base/mock_unrecoverable_error_handler.h", |
| 611 "base/model_type_test_util.cc", | 610 "base/model_type_test_util.cc", |
| 612 "base/model_type_test_util.h", | 611 "base/model_type_test_util.h", |
| 613 "base/test_unrecoverable_error_handler.cc", | 612 "base/test_unrecoverable_error_handler.cc", |
| 614 "base/test_unrecoverable_error_handler.h", | 613 "base/test_unrecoverable_error_handler.h", |
| 615 "engine_impl/cycle/mock_debug_info_getter.cc", | |
| 616 "engine_impl/cycle/mock_debug_info_getter.h", | |
| 617 "engine_impl/cycle/test_util.cc", | |
| 618 "engine_impl/cycle/test_util.h", | |
| 619 "js/js_test_util.cc", | 614 "js/js_test_util.cc", |
| 620 "js/js_test_util.h", | 615 "js/js_test_util.h", |
| 621 "test/callback_counter.h", | 616 "test/callback_counter.h", |
| 622 "test/directory_backing_store_corruption_testing.cc", | |
| 623 "test/directory_backing_store_corruption_testing.h", | |
| 624 "test/engine/fake_model_worker.cc", | |
| 625 "test/engine/fake_model_worker.h", | |
| 626 "test/engine/fake_sync_scheduler.cc", | |
| 627 "test/engine/fake_sync_scheduler.h", | |
| 628 "test/engine/mock_connection_manager.cc", | |
| 629 "test/engine/mock_connection_manager.h", | |
| 630 "test/engine/mock_model_type_processor.cc", | |
| 631 "test/engine/mock_model_type_processor.h", | |
| 632 "test/engine/mock_model_type_worker.cc", | |
| 633 "test/engine/mock_model_type_worker.h", | |
| 634 "test/engine/mock_nudge_handler.cc", | |
| 635 "test/engine/mock_nudge_handler.h", | |
| 636 "test/engine/mock_update_handler.cc", | |
| 637 "test/engine/mock_update_handler.h", | |
| 638 "test/engine/single_type_mock_server.cc", | |
| 639 "test/engine/single_type_mock_server.h", | |
| 640 "test/engine/test_directory_setter_upper.cc", | |
| 641 "test/engine/test_directory_setter_upper.h", | |
| 642 "test/engine/test_id_factory.h", | |
| 643 "test/engine/test_syncable_utils.cc", | |
| 644 "test/engine/test_syncable_utils.h", | |
| 645 "test/fake_sync_encryption_handler.cc", | |
| 646 "test/fake_sync_encryption_handler.h", | |
| 647 "test/mock_invalidation.cc", | 617 "test/mock_invalidation.cc", |
| 648 "test/mock_invalidation.h", | 618 "test/mock_invalidation.h", |
| 649 "test/mock_invalidation_tracker.cc", | 619 "test/mock_invalidation_tracker.cc", |
| 650 "test/mock_invalidation_tracker.h", | 620 "test/mock_invalidation_tracker.h", |
| 651 "test/null_directory_change_delegate.cc", | |
| 652 "test/null_directory_change_delegate.h", | |
| 653 "test/null_transaction_observer.cc", | |
| 654 "test/null_transaction_observer.h", | |
| 655 "test/test_directory_backing_store.cc", | |
| 656 "test/test_directory_backing_store.h", | |
| 657 "test/test_transaction_observer.cc", | |
| 658 "test/test_transaction_observer.h", | |
| 659 "test/trackable_mock_invalidation.cc", | 621 "test/trackable_mock_invalidation.cc", |
| 660 "test/trackable_mock_invalidation.h", | 622 "test/trackable_mock_invalidation.h", |
| 661 ] | 623 ] |
| 662 | 624 |
| 663 public_deps = [ | 625 public_deps = [ |
| 664 "//base", | 626 "//base", |
| 665 "//components/sync", | |
| 666 "//testing/gmock", | 627 "//testing/gmock", |
| 667 "//testing/gtest", | 628 "//testing/gtest", |
| 668 ] | 629 ] |
| 669 | 630 |
| 631 deps = [ |
| 632 ":sync", |
| 633 ] |
| 634 |
| 670 defines = [ "SYNC_TEST" ] | 635 defines = [ "SYNC_TEST" ] |
| 671 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 636 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 672 } | 637 } |
| 673 | 638 |
| 674 # TODO(maxbogue): Refactor the test support targets to remove core references. | 639 static_library("test_support_engine") { |
| 675 static_library("test_support_sync_core_impl") { | |
| 676 testonly = true | 640 testonly = true |
| 677 sources = [ | 641 sources = [ |
| 678 "engine/fake_model_type_connector.cc", | 642 "engine/fake_model_type_connector.cc", |
| 679 "engine/fake_model_type_connector.h", | 643 "engine/fake_model_type_connector.h", |
| 680 "engine/fake_model_type_processor.cc", | 644 "engine/fake_model_type_processor.cc", |
| 681 "engine/fake_model_type_processor.h", | 645 "engine/fake_model_type_processor.h", |
| 682 "engine/fake_sync_manager.cc", | 646 "engine/fake_sync_manager.cc", |
| 683 "engine/fake_sync_manager.h", | 647 "engine/fake_sync_manager.h", |
| 684 "engine/sync_manager_factory_for_profile_sync_test.cc", | 648 "engine/sync_manager_factory_for_profile_sync_test.cc", |
| 685 "engine/sync_manager_factory_for_profile_sync_test.h", | 649 "engine/sync_manager_factory_for_profile_sync_test.h", |
| 686 "engine/test_engine_components_factory.cc", | 650 "engine/test_engine_components_factory.cc", |
| 687 "engine/test_engine_components_factory.h", | 651 "engine/test_engine_components_factory.h", |
| 652 "engine_impl/cycle/mock_debug_info_getter.cc", |
| 653 "engine_impl/cycle/mock_debug_info_getter.h", |
| 654 "engine_impl/cycle/test_util.cc", |
| 655 "engine_impl/cycle/test_util.h", |
| 688 "engine_impl/sync_manager_for_profile_sync_test.cc", | 656 "engine_impl/sync_manager_for_profile_sync_test.cc", |
| 689 "engine_impl/sync_manager_for_profile_sync_test.h", | 657 "engine_impl/sync_manager_for_profile_sync_test.h", |
| 690 "engine_impl/test_entry_factory.cc", | 658 "engine_impl/test_entry_factory.cc", |
| 691 "engine_impl/test_entry_factory.h", | 659 "engine_impl/test_entry_factory.h", |
| 692 "model/data_type_error_handler_mock.cc", | |
| 693 "model/data_type_error_handler_mock.h", | |
| 694 "model/model_type_store_test_util.cc", | |
| 695 "model/model_type_store_test_util.h", | |
| 696 "syncable/test_user_share.cc", | 660 "syncable/test_user_share.cc", |
| 697 "syncable/test_user_share.h", | 661 "syncable/test_user_share.h", |
| 662 "test/directory_backing_store_corruption_testing.cc", |
| 663 "test/directory_backing_store_corruption_testing.h", |
| 664 "test/engine/fake_model_worker.cc", |
| 665 "test/engine/fake_model_worker.h", |
| 666 "test/engine/fake_sync_scheduler.cc", |
| 667 "test/engine/fake_sync_scheduler.h", |
| 668 "test/engine/mock_connection_manager.cc", |
| 669 "test/engine/mock_connection_manager.h", |
| 670 "test/engine/mock_model_type_processor.cc", |
| 671 "test/engine/mock_model_type_processor.h", |
| 672 "test/engine/mock_model_type_worker.cc", |
| 673 "test/engine/mock_model_type_worker.h", |
| 674 "test/engine/mock_nudge_handler.cc", |
| 675 "test/engine/mock_nudge_handler.h", |
| 676 "test/engine/mock_update_handler.cc", |
| 677 "test/engine/mock_update_handler.h", |
| 678 "test/engine/single_type_mock_server.cc", |
| 679 "test/engine/single_type_mock_server.h", |
| 680 "test/engine/test_directory_setter_upper.cc", |
| 681 "test/engine/test_directory_setter_upper.h", |
| 682 "test/engine/test_id_factory.h", |
| 683 "test/engine/test_syncable_utils.cc", |
| 684 "test/engine/test_syncable_utils.h", |
| 685 "test/fake_sync_encryption_handler.cc", |
| 686 "test/fake_sync_encryption_handler.h", |
| 687 "test/null_directory_change_delegate.cc", |
| 688 "test/null_directory_change_delegate.h", |
| 689 "test/null_transaction_observer.cc", |
| 690 "test/null_transaction_observer.h", |
| 691 "test/test_directory_backing_store.cc", |
| 692 "test/test_directory_backing_store.h", |
| 693 "test/test_transaction_observer.cc", |
| 694 "test/test_transaction_observer.h", |
| 698 ] | 695 ] |
| 699 | 696 |
| 700 public_deps = [ | 697 public_deps = [ |
| 701 ":test_support_sync_core", | 698 ":test_support_base", |
| 702 "//base", | 699 ] |
| 703 "//components/sync", | 700 |
| 704 "//testing/gtest", | 701 deps = [ |
| 702 ":sync", |
| 705 ] | 703 ] |
| 706 | 704 |
| 707 defines = [ "SYNC_TEST" ] | 705 defines = [ "SYNC_TEST" ] |
| 708 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 706 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 709 } | 707 } |
| 710 | 708 |
| 711 static_library("test_support_sync_model") { | 709 static_library("test_support_model") { |
| 712 testonly = true | 710 testonly = true |
| 713 sources = [ | 711 sources = [ |
| 712 "model/data_type_error_handler_mock.cc", |
| 713 "model/data_type_error_handler_mock.h", |
| 714 "model/fake_model_type_change_processor.cc", | 714 "model/fake_model_type_change_processor.cc", |
| 715 "model/fake_model_type_change_processor.h", | 715 "model/fake_model_type_change_processor.h", |
| 716 "model/fake_model_type_service.cc", | 716 "model/fake_model_type_service.cc", |
| 717 "model/fake_model_type_service.h", | 717 "model/fake_model_type_service.h", |
| 718 "model/fake_sync_change_processor.cc", | 718 "model/fake_sync_change_processor.cc", |
| 719 "model/fake_sync_change_processor.h", | 719 "model/fake_sync_change_processor.h", |
| 720 "model/fake_syncable_service.cc", | 720 "model/fake_syncable_service.cc", |
| 721 "model/fake_syncable_service.h", | 721 "model/fake_syncable_service.h", |
| 722 "model/mock_model_type_store.cc", | 722 "model/mock_model_type_store.cc", |
| 723 "model/mock_model_type_store.h", | 723 "model/mock_model_type_store.h", |
| 724 "model/model_type_store_test_util.cc", |
| 725 "model/model_type_store_test_util.h", |
| 724 "model/stub_model_type_service.cc", | 726 "model/stub_model_type_service.cc", |
| 725 "model/stub_model_type_service.h", | 727 "model/stub_model_type_service.h", |
| 726 "model/sync_change_processor_wrapper_for_test.cc", | 728 "model/sync_change_processor_wrapper_for_test.cc", |
| 727 "model/sync_change_processor_wrapper_for_test.h", | 729 "model/sync_change_processor_wrapper_for_test.h", |
| 728 "model/sync_error_factory_mock.cc", | 730 "model/sync_error_factory_mock.cc", |
| 729 "model/sync_error_factory_mock.h", | 731 "model/sync_error_factory_mock.h", |
| 730 ] | 732 ] |
| 731 | 733 |
| 732 defines = [ "SYNC_TEST" ] | 734 defines = [ "SYNC_TEST" ] |
| 733 | 735 |
| 734 public_deps = [ | 736 public_deps = [ |
| 735 "//base", | 737 ":test_support_base", |
| 736 "//components/sync", | 738 ] |
| 737 "//testing/gmock", | 739 |
| 738 "//testing/gtest", | 740 deps = [ |
| 741 ":sync", |
| 739 ] | 742 ] |
| 740 } | 743 } |
| 741 | 744 |
| 742 static_library("test_support_sync_driver") { | 745 static_library("test_support_driver") { |
| 743 testonly = true | 746 testonly = true |
| 744 sources = [ | 747 sources = [ |
| 745 "device_info/local_device_info_provider_mock.cc", | 748 "device_info/local_device_info_provider_mock.cc", |
| 746 "device_info/local_device_info_provider_mock.h", | 749 "device_info/local_device_info_provider_mock.h", |
| 747 "driver/change_processor_mock.cc", | 750 "driver/change_processor_mock.cc", |
| 748 "driver/change_processor_mock.h", | 751 "driver/change_processor_mock.h", |
| 749 "driver/data_type_controller_mock.cc", | 752 "driver/data_type_controller_mock.cc", |
| 750 "driver/data_type_controller_mock.h", | 753 "driver/data_type_controller_mock.h", |
| 751 "driver/data_type_manager_mock.cc", | 754 "driver/data_type_manager_mock.cc", |
| 752 "driver/data_type_manager_mock.h", | 755 "driver/data_type_manager_mock.h", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 764 "driver/glue/sync_backend_host_mock.h", | 767 "driver/glue/sync_backend_host_mock.h", |
| 765 "driver/model_associator_mock.cc", | 768 "driver/model_associator_mock.cc", |
| 766 "driver/model_associator_mock.h", | 769 "driver/model_associator_mock.h", |
| 767 "driver/non_ui_data_type_controller_mock.cc", | 770 "driver/non_ui_data_type_controller_mock.cc", |
| 768 "driver/non_ui_data_type_controller_mock.h", | 771 "driver/non_ui_data_type_controller_mock.h", |
| 769 "driver/sync_api_component_factory_mock.cc", | 772 "driver/sync_api_component_factory_mock.cc", |
| 770 "driver/sync_api_component_factory_mock.h", | 773 "driver/sync_api_component_factory_mock.h", |
| 771 ] | 774 ] |
| 772 | 775 |
| 773 public_deps = [ | 776 public_deps = [ |
| 774 "//components/sync", | 777 ":test_support_base", |
| 775 ] | 778 ] |
| 776 | 779 |
| 777 deps = [ | 780 deps = [ |
| 778 ":test_support_sync_core_impl", | 781 ":sync", |
| 779 "//base", | 782 ":test_support_engine", |
| 780 "//components/syncable_prefs:test_support", | 783 "//components/syncable_prefs:test_support", |
| 781 "//components/version_info", | 784 "//components/version_info", |
| 782 "//google_apis", | 785 "//google_apis", |
| 783 "//testing/gmock", | |
| 784 "//testing/gtest", | |
| 785 ] | 786 ] |
| 786 } | 787 } |
| 787 | 788 |
| 788 source_set("unit_tests") { | 789 source_set("unit_tests") { |
| 789 testonly = true | 790 testonly = true |
| 790 sources = [ | 791 sources = [ |
| 791 "base/attachment_id_proto_unittest.cc", | 792 "base/attachment_id_proto_unittest.cc", |
| 792 "base/bind_to_task_runner_unittest.cc", | 793 "base/bind_to_task_runner_unittest.cc", |
| 793 "base/cancelation_signal_unittest.cc", | 794 "base/cancelation_signal_unittest.cc", |
| 794 "base/cryptographer_unittest.cc", | 795 "base/cryptographer_unittest.cc", |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 data = [ | 903 data = [ |
| 903 "//chrome/test/data/sync/", | 904 "//chrome/test/data/sync/", |
| 904 "//net/tools/testserver/", | 905 "//net/tools/testserver/", |
| 905 "//third_party/pyftpdlib/", | 906 "//third_party/pyftpdlib/", |
| 906 "//third_party/pywebsocket/", | 907 "//third_party/pywebsocket/", |
| 907 "//third_party/tlslite/", | 908 "//third_party/tlslite/", |
| 908 "$root_out_dir/pyproto/google/", | 909 "$root_out_dir/pyproto/google/", |
| 909 ] | 910 ] |
| 910 | 911 |
| 911 deps = [ | 912 deps = [ |
| 912 ":test_support_sync_core", | 913 ":sync", |
| 913 ":test_support_sync_core_impl", | 914 ":test_support_base", |
| 914 ":test_support_sync_driver", | 915 ":test_support_driver", |
| 915 ":test_support_sync_model", | 916 ":test_support_engine", |
| 917 ":test_support_model", |
| 916 "//base", | 918 "//base", |
| 917 "//base/test:test_support", | 919 "//base/test:test_support", |
| 918 "//components/invalidation/impl", | 920 "//components/invalidation/impl", |
| 919 "//components/os_crypt:test_support", | 921 "//components/os_crypt:test_support", |
| 920 "//components/pref_registry:test_support", | 922 "//components/pref_registry:test_support", |
| 921 "//components/prefs:test_support", | 923 "//components/prefs:test_support", |
| 922 "//components/signin/core/browser:test_support", | 924 "//components/signin/core/browser:test_support", |
| 923 "//components/sync", | |
| 924 "//components/sync/engine_impl/attachments/proto", | 925 "//components/sync/engine_impl/attachments/proto", |
| 925 "//components/syncable_prefs", | 926 "//components/syncable_prefs", |
| 926 "//components/syncable_prefs:test_support", | 927 "//components/syncable_prefs:test_support", |
| 927 "//components/version_info", | 928 "//components/version_info", |
| 928 "//google_apis", | 929 "//google_apis", |
| 929 "//google_apis:test_support", | 930 "//google_apis:test_support", |
| 930 "//net", | 931 "//net", |
| 931 "//net:test_support", | 932 "//net:test_support", |
| 932 "//sql", | 933 "//sql", |
| 933 "//sql:test_support", | 934 "//sql:test_support", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 951 sources += [ "driver/sync_policy_handler_unittest.cc" ] | 952 sources += [ "driver/sync_policy_handler_unittest.cc" ] |
| 952 deps += [ | 953 deps += [ |
| 953 "//components/policy:generated", | 954 "//components/policy:generated", |
| 954 "//components/policy/core/browser", | 955 "//components/policy/core/browser", |
| 955 ] | 956 ] |
| 956 } | 957 } |
| 957 | 958 |
| 958 defines = [ "SYNC_TEST" ] | 959 defines = [ "SYNC_TEST" ] |
| 959 } | 960 } |
| 960 | 961 |
| 961 static_library("test_support_sync_fake_server") { | 962 static_library("test_support_fake_server") { |
| 962 testonly = true | 963 testonly = true |
| 963 sources = [ | 964 sources = [ |
| 964 "test/fake_server/bookmark_entity.cc", | 965 "test/fake_server/bookmark_entity.cc", |
| 965 "test/fake_server/bookmark_entity.h", | 966 "test/fake_server/bookmark_entity.h", |
| 966 "test/fake_server/bookmark_entity_builder.cc", | 967 "test/fake_server/bookmark_entity_builder.cc", |
| 967 "test/fake_server/bookmark_entity_builder.h", | 968 "test/fake_server/bookmark_entity_builder.h", |
| 968 "test/fake_server/entity_builder_factory.cc", | 969 "test/fake_server/entity_builder_factory.cc", |
| 969 "test/fake_server/entity_builder_factory.h", | 970 "test/fake_server/entity_builder_factory.h", |
| 970 "test/fake_server/fake_server.cc", | 971 "test/fake_server/fake_server.cc", |
| 971 "test/fake_server/fake_server.h", | 972 "test/fake_server/fake_server.h", |
| 972 "test/fake_server/fake_server_entity.cc", | 973 "test/fake_server/fake_server_entity.cc", |
| 973 "test/fake_server/fake_server_entity.h", | 974 "test/fake_server/fake_server_entity.h", |
| 974 "test/fake_server/fake_server_http_post_provider.cc", | 975 "test/fake_server/fake_server_http_post_provider.cc", |
| 975 "test/fake_server/fake_server_http_post_provider.h", | 976 "test/fake_server/fake_server_http_post_provider.h", |
| 976 "test/fake_server/fake_server_network_resources.cc", | 977 "test/fake_server/fake_server_network_resources.cc", |
| 977 "test/fake_server/fake_server_network_resources.h", | 978 "test/fake_server/fake_server_network_resources.h", |
| 978 "test/fake_server/fake_server_verifier.cc", | 979 "test/fake_server/fake_server_verifier.cc", |
| 979 "test/fake_server/fake_server_verifier.h", | 980 "test/fake_server/fake_server_verifier.h", |
| 980 "test/fake_server/permanent_entity.cc", | 981 "test/fake_server/permanent_entity.cc", |
| 981 "test/fake_server/permanent_entity.h", | 982 "test/fake_server/permanent_entity.h", |
| 982 "test/fake_server/sessions_hierarchy.cc", | 983 "test/fake_server/sessions_hierarchy.cc", |
| 983 "test/fake_server/sessions_hierarchy.h", | 984 "test/fake_server/sessions_hierarchy.h", |
| 984 "test/fake_server/tombstone_entity.cc", | 985 "test/fake_server/tombstone_entity.cc", |
| 985 "test/fake_server/tombstone_entity.h", | 986 "test/fake_server/tombstone_entity.h", |
| 986 "test/fake_server/unique_client_entity.cc", | 987 "test/fake_server/unique_client_entity.cc", |
| 987 "test/fake_server/unique_client_entity.h", | 988 "test/fake_server/unique_client_entity.h", |
| 988 ] | 989 ] |
| 989 | 990 |
| 990 deps = [ | 991 deps = [ |
| 992 ":sync", |
| 991 "//base", | 993 "//base", |
| 992 "//components/sync", | |
| 993 "//net", | 994 "//net", |
| 994 "//testing/gtest", | 995 "//testing/gtest", |
| 995 "//url", | 996 "//url", |
| 996 ] | 997 ] |
| 997 | 998 |
| 998 public_deps = [ | 999 public_deps = [ |
| 999 "//third_party/protobuf:protobuf_lite", | 1000 "//third_party/protobuf:protobuf_lite", |
| 1000 ] | 1001 ] |
| 1001 | 1002 |
| 1002 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 1003 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 1003 } | 1004 } |
| 1004 | 1005 |
| 1005 static_library("test_support_sync_testserver") { | 1006 static_library("test_support_testserver") { |
| 1006 testonly = true | 1007 testonly = true |
| 1007 sources = [ | 1008 sources = [ |
| 1008 "test/local_sync_test_server.cc", | 1009 "test/local_sync_test_server.cc", |
| 1009 "test/local_sync_test_server.h", | 1010 "test/local_sync_test_server.h", |
| 1010 ] | 1011 ] |
| 1011 | 1012 |
| 1012 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 1013 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 1013 | 1014 |
| 1014 public_deps = [ | 1015 public_deps = [ |
| 1015 "//base", | 1016 "//base", |
| 1016 "//net:test_support", | 1017 "//net:test_support", |
| 1017 ] | 1018 ] |
| 1018 deps = [ | 1019 deps = [ |
| 1019 ":sync", | 1020 ":sync", |
| 1020 | 1021 |
| 1021 # The sync test server uses Python modules generated by the sync protos. | 1022 # The sync test server uses Python modules generated by the sync protos. |
| 1022 "//third_party/protobuf:py_proto", | 1023 "//third_party/protobuf:py_proto", |
| 1023 ] | 1024 ] |
| 1024 } | 1025 } |
| 1025 | 1026 |
| 1026 if (!is_ios) { | 1027 if (!is_ios) { |
| 1027 executable("run_sync_testserver") { | 1028 executable("run_sync_testserver") { |
| 1028 testonly = true | 1029 testonly = true |
| 1029 sources = [ | 1030 sources = [ |
| 1030 "tools/testserver/run_sync_testserver.cc", | 1031 "tools/testserver/run_sync_testserver.cc", |
| 1031 ] | 1032 ] |
| 1032 | 1033 |
| 1033 deps = [ | 1034 deps = [ |
| 1034 ":test_support_sync_testserver", | 1035 ":test_support_testserver", |
| 1035 "//base", | 1036 "//base", |
| 1036 "//base/test:test_support", | 1037 "//base/test:test_support", |
| 1037 "//build/config/sanitizers:deps", | 1038 "//build/config/sanitizers:deps", |
| 1038 "//build/win:default_exe_manifest", | 1039 "//build/win:default_exe_manifest", |
| 1039 "//net:test_support", | 1040 "//net:test_support", |
| 1040 "//testing/gtest", | 1041 "//testing/gtest", |
| 1041 ] | 1042 ] |
| 1042 } | 1043 } |
| 1043 } | 1044 } |
| 1044 | 1045 |
| 1045 if (is_android) { | 1046 if (is_android) { |
| 1046 import("//build/config/android/rules.gni") | 1047 import("//build/config/android/rules.gni") |
| 1047 | 1048 |
| 1048 generate_jni("fake_server_jni") { | 1049 generate_jni("fake_server_jni") { |
| 1049 testonly = true | 1050 testonly = true |
| 1050 jni_package = "sync/test/fake_server" | 1051 jni_package = "sync/test/fake_server" |
| 1051 sources = [ | 1052 sources = [ |
| 1052 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/syn
c/FakeServerHelper.java", | 1053 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/syn
c/FakeServerHelper.java", |
| 1053 ] | 1054 ] |
| 1054 } | 1055 } |
| 1055 | 1056 |
| 1056 _test_support_sync_prepared_protos_dir = | 1057 _test_support_prepared_protos_dir = |
| 1057 "$root_gen_dir/test_support_sync_proto_java_prepare/" | 1058 "$root_gen_dir/test_support_proto_java_prepare/" |
| 1058 action("test_support_sync_proto_java_prepare") { | 1059 action("test_support_proto_java_prepare") { |
| 1059 script = "//components/sync/protocol/prepare_protos_for_java_tests.py" | 1060 script = "//components/sync/protocol/prepare_protos_for_java_tests.py" |
| 1060 inputs = sync_protocol_sources | 1061 inputs = sync_protocol_sources |
| 1061 outputs = process_file_template( | 1062 outputs = process_file_template( |
| 1062 sync_protocol_sources, | 1063 sync_protocol_sources, |
| 1063 [ "$_test_support_sync_prepared_protos_dir/{{source_file_part}}" ]) | 1064 [ "$_test_support_prepared_protos_dir/{{source_file_part}}" ]) |
| 1064 args = [ | 1065 args = [ |
| 1065 "--output_dir", | 1066 "--output_dir", |
| 1066 rebase_path(_test_support_sync_prepared_protos_dir, root_build_dir), | 1067 rebase_path(_test_support_prepared_protos_dir, root_build_dir), |
| 1067 ] | 1068 ] |
| 1068 args += rebase_path(sync_protocol_sources, root_build_dir) | 1069 args += rebase_path(sync_protocol_sources, root_build_dir) |
| 1069 } | 1070 } |
| 1070 | 1071 |
| 1071 proto_java_library("test_support_sync_proto_java") { | 1072 proto_java_library("test_support_proto_java") { |
| 1072 proto_path = _test_support_sync_prepared_protos_dir | 1073 proto_path = _test_support_prepared_protos_dir |
| 1073 sources = get_target_outputs(":test_support_sync_proto_java_prepare") | 1074 sources = get_target_outputs(":test_support_proto_java_prepare") |
| 1074 deps = [ | 1075 deps = [ |
| 1075 ":test_support_sync_proto_java_prepare", | 1076 ":test_support_proto_java_prepare", |
| 1076 ] | 1077 ] |
| 1077 } | 1078 } |
| 1078 | 1079 |
| 1079 android_library("sync_java_test_support") { | 1080 android_library("sync_java_test_support") { |
| 1080 testonly = true | 1081 testonly = true |
| 1081 deps = [ | 1082 deps = [ |
| 1082 "android:sync_java", | 1083 "android:sync_java", |
| 1083 "//base:base_java", | 1084 "//base:base_java", |
| 1084 ] | 1085 ] |
| 1085 java_files = [ "test/android/javatests/src/org/chromium/components/sync/test
/util/MockSyncContentResolverDelegate.java" ] | 1086 java_files = [ "test/android/javatests/src/org/chromium/components/sync/test
/util/MockSyncContentResolverDelegate.java" ] |
| 1086 } | 1087 } |
| 1087 | 1088 |
| 1088 static_library("test_support_sync_fake_server_android") { | 1089 static_library("test_support_fake_server_android") { |
| 1089 testonly = true | 1090 testonly = true |
| 1090 sources = [ | 1091 sources = [ |
| 1091 "test/fake_server/android/fake_server_helper_android.cc", | 1092 "test/fake_server/android/fake_server_helper_android.cc", |
| 1092 "test/fake_server/android/fake_server_helper_android.h", | 1093 "test/fake_server/android/fake_server_helper_android.h", |
| 1093 ] | 1094 ] |
| 1094 deps = [ | 1095 deps = [ |
| 1095 ":fake_server_jni", | 1096 ":fake_server_jni", |
| 1096 ":sync", | 1097 ":sync", |
| 1097 ":test_support_sync_fake_server", | 1098 ":test_support_fake_server", |
| 1098 "//base", | 1099 "//base", |
| 1099 "//testing/gtest", | 1100 "//testing/gtest", |
| 1100 "//url:url", | 1101 "//url:url", |
| 1101 ] | 1102 ] |
| 1102 } | 1103 } |
| 1103 } | 1104 } |
| OLD | NEW |