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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 560 |
561 defines = [ "SYNC_TEST" ] | 561 defines = [ "SYNC_TEST" ] |
562 | 562 |
563 public_deps = [ | 563 public_deps = [ |
564 "//base", | 564 "//base", |
565 "//sync", | 565 "//sync", |
566 "//testing/gmock", | 566 "//testing/gmock", |
567 ] | 567 ] |
568 } | 568 } |
569 | 569 |
| 570 # TODO(GYP): Delete this after we've converted everything to GN. |
| 571 # The _run targets exist only for compatibility w/ GYP. |
| 572 group("sync_unit_tests_run") { |
| 573 testonly = true |
| 574 deps = [ |
| 575 ":sync_unit_tests", |
| 576 ] |
| 577 } |
| 578 |
570 # GYP version: sync/sync_tests.gypi:sync_unit_tests | 579 # GYP version: sync/sync_tests.gypi:sync_unit_tests |
571 test("sync_unit_tests") { | 580 test("sync_unit_tests") { |
572 sources = [ | 581 sources = [ |
573 "api/attachments/attachment_id_unittest.cc", | 582 "api/attachments/attachment_id_unittest.cc", |
574 "api/attachments/attachment_metadata_unittest.cc", | 583 "api/attachments/attachment_metadata_unittest.cc", |
575 "api/attachments/attachment_unittest.cc", | 584 "api/attachments/attachment_unittest.cc", |
576 "api/sync_change_unittest.cc", | 585 "api/sync_change_unittest.cc", |
577 "api/sync_data_unittest.cc", | 586 "api/sync_data_unittest.cc", |
578 "api/sync_error_unittest.cc", | 587 "api/sync_error_unittest.cc", |
579 "api/sync_merge_result_unittest.cc", | 588 "api/sync_merge_result_unittest.cc", |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 "syncable/syncable_id_unittest.cc", | 653 "syncable/syncable_id_unittest.cc", |
645 "syncable/syncable_unittest.cc", | 654 "syncable/syncable_unittest.cc", |
646 "syncable/syncable_util_unittest.cc", | 655 "syncable/syncable_util_unittest.cc", |
647 "util/cryptographer_unittest.cc", | 656 "util/cryptographer_unittest.cc", |
648 "util/data_type_histogram_unittest.cc", | 657 "util/data_type_histogram_unittest.cc", |
649 "util/get_session_name_unittest.cc", | 658 "util/get_session_name_unittest.cc", |
650 "util/nigori_unittest.cc", | 659 "util/nigori_unittest.cc", |
651 "util/protobuf_unittest.cc", | 660 "util/protobuf_unittest.cc", |
652 ] | 661 ] |
653 | 662 |
| 663 data = [ |
| 664 "//chrome/test/data/sync/", |
| 665 "//net/tools/testserver/", |
| 666 "//third_party/pyftpdlib/", |
| 667 "//third_party/pywebsocket/", |
| 668 "//third_party/tlslite/", |
| 669 "$root_out_dir/pyproto/google/", |
| 670 ] |
| 671 |
| 672 if (is_android) { |
| 673 data += [ "$root_out_dir/locales/en-US.pak" ] |
| 674 } |
| 675 |
654 deps = [ | 676 deps = [ |
655 ":test_support_sync_core", | 677 ":test_support_sync_core", |
656 ":test_support_sync_internal_api", | 678 ":test_support_sync_internal_api", |
657 "//base", | 679 "//base", |
658 "//base/allocator", | 680 "//base/allocator", |
659 "//base/test:run_all_unittests", | 681 "//base/test:run_all_unittests", |
660 "//google_apis", | 682 "//google_apis", |
661 "//google_apis:test_support", | 683 "//google_apis:test_support", |
662 "//net", | 684 "//net", |
663 "//net:test_support", | 685 "//net:test_support", |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 ":fake_server_jni", | 827 ":fake_server_jni", |
806 ":sync_core", | 828 ":sync_core", |
807 ":test_support_sync_fake_server", | 829 ":test_support_sync_fake_server", |
808 "//base", | 830 "//base", |
809 "//sync/protocol:protocol", | 831 "//sync/protocol:protocol", |
810 "//testing/gtest", | 832 "//testing/gtest", |
811 "//url:url", | 833 "//url:url", |
812 ] | 834 ] |
813 } | 835 } |
814 } | 836 } |
OLD | NEW |