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/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("sync") { | 8 component("sync") { |
9 public_deps = [ | 9 public_deps = [ |
10 ":sync_core", | 10 ":sync_core", |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 "api/fake_syncable_service.h", | 533 "api/fake_syncable_service.h", |
534 "api/sync_change_processor_wrapper_for_test.cc", | 534 "api/sync_change_processor_wrapper_for_test.cc", |
535 "api/sync_change_processor_wrapper_for_test.h", | 535 "api/sync_change_processor_wrapper_for_test.h", |
536 "api/sync_error_factory_mock.cc", | 536 "api/sync_error_factory_mock.cc", |
537 "api/sync_error_factory_mock.h", | 537 "api/sync_error_factory_mock.h", |
538 ] | 538 ] |
539 | 539 |
540 defines = [ "SYNC_TEST" ] | 540 defines = [ "SYNC_TEST" ] |
541 | 541 |
542 public_deps = [ | 542 public_deps = [ |
| 543 "//base", |
| 544 "//sync", |
543 "//testing/gmock", | 545 "//testing/gmock", |
544 "//sync", | |
545 ] | 546 ] |
546 } | 547 } |
547 | 548 |
548 # GYP version: sync/sync_tests.gypi:sync_unit_tests | 549 # GYP version: sync/sync_tests.gypi:sync_unit_tests |
549 test("sync_unit_tests") { | 550 test("sync_unit_tests") { |
550 sources = [ | 551 sources = [ |
551 "api/attachments/attachment_id_unittest.cc", | 552 "api/attachments/attachment_id_unittest.cc", |
552 "api/attachments/attachment_metadata_unittest.cc", | 553 "api/attachments/attachment_metadata_unittest.cc", |
553 "api/attachments/attachment_unittest.cc", | 554 "api/attachments/attachment_unittest.cc", |
554 "api/sync_change_unittest.cc", | 555 "api/sync_change_unittest.cc", |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 "syncable/syncable_unittest.cc", | 623 "syncable/syncable_unittest.cc", |
623 "syncable/syncable_util_unittest.cc", | 624 "syncable/syncable_util_unittest.cc", |
624 "util/cryptographer_unittest.cc", | 625 "util/cryptographer_unittest.cc", |
625 "util/data_type_histogram_unittest.cc", | 626 "util/data_type_histogram_unittest.cc", |
626 "util/get_session_name_unittest.cc", | 627 "util/get_session_name_unittest.cc", |
627 "util/nigori_unittest.cc", | 628 "util/nigori_unittest.cc", |
628 "util/protobuf_unittest.cc", | 629 "util/protobuf_unittest.cc", |
629 ] | 630 ] |
630 | 631 |
631 deps = [ | 632 deps = [ |
| 633 ":test_support_sync_core", |
| 634 ":test_support_sync_internal_api", |
632 "//base", | 635 "//base", |
633 "//base/allocator", | 636 "//base/allocator", |
634 "//base/test:run_all_unittests", | 637 "//base/test:run_all_unittests", |
635 "//google_apis", | 638 "//google_apis", |
636 "//google_apis:test_support", | 639 "//google_apis:test_support", |
637 "//net", | 640 "//net", |
638 "//net:test_support", | 641 "//net:test_support", |
639 "//sql", | 642 "//sql", |
640 "//sync", | 643 "//sync", |
| 644 "//sync/internal_api/attachments/proto", |
641 "//testing/gmock", | 645 "//testing/gmock", |
642 "//testing/gtest", | 646 "//testing/gtest", |
643 "//third_party/leveldatabase", | 647 "//third_party/leveldatabase", |
644 "//third_party/protobuf:protobuf_lite", | 648 "//third_party/protobuf:protobuf_lite", |
645 ":test_support_sync_core", | |
646 ":test_support_sync_internal_api", | |
647 ] | 649 ] |
648 | 650 |
649 if (is_chromeos) { | 651 if (is_chromeos) { |
650 # Required by get_session_name_unittest.cc on Chrome OS. | 652 # Required by get_session_name_unittest.cc on Chrome OS. |
651 deps += [ "//chromeos" ] | 653 deps += [ "//chromeos" ] |
652 } | 654 } |
653 | 655 |
654 if (is_ios) { | 656 if (is_ios) { |
655 sources -= [ "internal_api/http_bridge_unittest.cc" ] | 657 sources -= [ "internal_api/http_bridge_unittest.cc" ] |
656 } | 658 } |
(...skipping 30 matching lines...) Expand all Loading... |
687 "test/fake_server/unique_client_entity.cc", | 689 "test/fake_server/unique_client_entity.cc", |
688 "test/fake_server/unique_client_entity.h", | 690 "test/fake_server/unique_client_entity.h", |
689 ] | 691 ] |
690 | 692 |
691 deps = [ | 693 deps = [ |
692 "//base", | 694 "//base", |
693 "//net", | 695 "//net", |
694 "//testing/gtest", | 696 "//testing/gtest", |
695 "//third_party/protobuf:protobuf_lite", | 697 "//third_party/protobuf:protobuf_lite", |
696 "//sync", | 698 "//sync", |
| 699 "//url", |
697 ] | 700 ] |
698 | 701 |
699 forward_dependent_configs_from = [ "//third_party/protobuf:protobuf_lite" ] | 702 forward_dependent_configs_from = [ "//third_party/protobuf:protobuf_lite" ] |
700 | 703 |
701 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 704 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
702 } | 705 } |
703 | 706 |
704 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver | 707 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver |
705 static_library("test_support_sync_testserver") { | 708 static_library("test_support_sync_testserver") { |
706 testonly = true | 709 testonly = true |
(...skipping 20 matching lines...) Expand all Loading... |
727 testonly = true | 730 testonly = true |
728 sources = [ | 731 sources = [ |
729 "test/accounts_client/test_accounts_client.cc", | 732 "test/accounts_client/test_accounts_client.cc", |
730 "test/accounts_client/test_accounts_client.h", | 733 "test/accounts_client/test_accounts_client.h", |
731 "test/accounts_client/url_request_context_getter.cc", | 734 "test/accounts_client/url_request_context_getter.cc", |
732 "test/accounts_client/url_request_context_getter.h", | 735 "test/accounts_client/url_request_context_getter.h", |
733 ] | 736 ] |
734 deps = [ | 737 deps = [ |
735 "//base", | 738 "//base", |
736 "//net", | 739 "//net", |
| 740 "//url", |
737 ] | 741 ] |
738 } | 742 } |
739 | 743 |
740 # GYP version: sync/sync_tests.gypi:sync_endtoend_tests | 744 # GYP version: sync/sync_tests.gypi:sync_endtoend_tests |
741 test("sync_endtoend_tests") { | 745 test("sync_endtoend_tests") { |
742 sources = [ | 746 sources = [ |
743 "test/accounts_client/test_accounts_client_unittest.cc", | 747 "test/accounts_client/test_accounts_client_unittest.cc", |
744 ] | 748 ] |
745 deps = [ | 749 deps = [ |
| 750 "//base", |
746 "//base/test:run_all_unittests", | 751 "//base/test:run_all_unittests", |
747 "//testing/gmock", | 752 "//testing/gmock", |
748 "//testing/gtest", | 753 "//testing/gtest", |
749 "//url", | 754 "//url", |
750 ":test_support_accounts_client", | 755 ":test_support_accounts_client", |
751 ] | 756 ] |
752 } | 757 } |
753 | 758 |
754 if (!is_ios) { | 759 if (!is_ios) { |
755 # GYP version: sync/sync_tests.gypi:run_sync_testserver | 760 # GYP version: sync/sync_tests.gypi:run_sync_testserver |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 "test/fake_server/android/fake_server_helper_android.h", | 806 "test/fake_server/android/fake_server_helper_android.h", |
802 ] | 807 ] |
803 deps = [ | 808 deps = [ |
804 ":fake_server_jni", | 809 ":fake_server_jni", |
805 ":test_support_sync_fake_server", | 810 ":test_support_sync_fake_server", |
806 "//base", | 811 "//base", |
807 "//testing/gtest", | 812 "//testing/gtest", |
808 ] | 813 ] |
809 } | 814 } |
810 } | 815 } |
OLD | NEW |