| 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 | 6 |
| 7 component("sync") { | 7 component("sync") { |
| 8 deps = [ | 8 deps = [ |
| 9 ":sync_core", | 9 ":sync_core", |
| 10 "//sync/protocol", | 10 "//sync/protocol", |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 "//testing/gtest", | 702 "//testing/gtest", |
| 703 "//third_party/protobuf:protobuf_lite", | 703 "//third_party/protobuf:protobuf_lite", |
| 704 "//sync", | 704 "//sync", |
| 705 ] | 705 ] |
| 706 | 706 |
| 707 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 707 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 708 } | 708 } |
| 709 | 709 |
| 710 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver | 710 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver |
| 711 static_library("test_support_sync_testserver") { | 711 static_library("test_support_sync_testserver") { |
| 712 testonly = true |
| 712 sources = [ | 713 sources = [ |
| 713 "test/local_sync_test_server.cc", | 714 "test/local_sync_test_server.cc", |
| 714 "test/local_sync_test_server.h", | 715 "test/local_sync_test_server.h", |
| 715 ] | 716 ] |
| 716 | 717 |
| 717 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 718 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 718 | 719 |
| 719 deps = [ | 720 deps = [ |
| 720 "//base", | 721 "//base", |
| 721 "//net:test_support", | 722 "//net:test_support", |
| 722 ":sync", | 723 ":sync", |
| 723 | 724 |
| 724 # The sync test server uses Python modules generated by the sync protos. | 725 # The sync test server uses Python modules generated by the sync protos. |
| 725 # '../third_party/protobuf/protobuf.gyp:py_proto', # TODO(GYP) | 726 # '../third_party/protobuf/protobuf.gyp:py_proto', # TODO(GYP) |
| 726 ] | 727 ] |
| 727 | 728 |
| 728 forward_dependent_configs_from = [ "//base", "//net:test_support" ] | 729 forward_dependent_configs_from = [ "//base", "//net:test_support" ] |
| 729 } | 730 } |
| 730 | 731 |
| 731 # GYP version: sync/sync_tests.gypi:test_support_accounts_client | 732 # GYP version: sync/sync_tests.gypi:test_support_accounts_client |
| 732 static_library("test_support_accounts_client") { | 733 static_library("test_support_accounts_client") { |
| 734 testonly = true |
| 733 sources = [ | 735 sources = [ |
| 734 "test/accounts_client/test_accounts_client.cc", | 736 "test/accounts_client/test_accounts_client.cc", |
| 735 "test/accounts_client/test_accounts_client.h", | 737 "test/accounts_client/test_accounts_client.h", |
| 736 "test/accounts_client/url_request_context_getter.cc", | 738 "test/accounts_client/url_request_context_getter.cc", |
| 737 "test/accounts_client/url_request_context_getter.h", | 739 "test/accounts_client/url_request_context_getter.h", |
| 738 ] | 740 ] |
| 739 deps = [ | 741 deps = [ |
| 740 "//base", | 742 "//base", |
| 741 "//net", | 743 "//net", |
| 742 ] | 744 ] |
| 743 } | 745 } |
| 744 | 746 |
| 745 # GYP version: sync/sync_tests.gypi:sync_endtoend_tests | 747 # GYP version: sync/sync_tests.gypi:sync_endtoend_tests |
| 746 test("sync_endtoend_tests") { | 748 test("sync_endtoend_tests") { |
| 747 sources = [ | 749 sources = [ |
| 748 "test/accounts_client/test_accounts_client_unittest.cc", | 750 "test/accounts_client/test_accounts_client_unittest.cc", |
| 749 ] | 751 ] |
| 750 deps = [ | 752 deps = [ |
| 751 "//base/test:run_all_unittests", | 753 "//base/test:run_all_unittests", |
| 752 "//testing/gmock", | 754 "//testing/gmock", |
| 753 "//testing/gtest", | 755 "//testing/gtest", |
| 754 "//url", | 756 "//url", |
| 755 ":test_support_accounts_client", | 757 ":test_support_accounts_client", |
| 756 ] | 758 ] |
| 757 } | 759 } |
| 758 | 760 |
| 759 if (!is_ios) { | 761 if (!is_ios) { |
| 760 # GYP version: sync/sync_tests.gypi:run_sync_testserver | 762 # GYP version: sync/sync_tests.gypi:run_sync_testserver |
| 761 executable("run_sync_testserver") { | 763 executable("run_sync_testserver") { |
| 764 testonly = true |
| 762 sources = [ "tools/testserver/run_sync_testserver.cc" ] | 765 sources = [ "tools/testserver/run_sync_testserver.cc" ] |
| 763 | 766 |
| 764 deps = [ | 767 deps = [ |
| 765 "//base", | 768 "//base", |
| 766 "//base/test:test_support", | 769 "//base/test:test_support", |
| 767 "//net:test_support", | 770 "//net:test_support", |
| 768 "//testing/gtest", | 771 "//testing/gtest", |
| 769 ":test_support_sync_testserver", | 772 ":test_support_sync_testserver", |
| 770 ] | 773 ] |
| 771 } | 774 } |
| 772 } | 775 } |
| 773 | 776 |
| 774 #TODO(GYP): Need to port sync_android.gypi and Android test targets. | 777 #TODO(GYP): Need to port sync_android.gypi and Android test targets. |
| OLD | NEW |