| 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("//sync/protocol/protocol_sources.gni") |
| 6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 7 | 8 |
| 8 component("sync") { | 9 component("sync") { |
| 9 public_deps = [ | 10 public_deps = [ |
| 10 ":sync_core", | 11 ":sync_core", |
| 11 "//sync/protocol", | 12 "//sync/protocol", |
| 12 ] | 13 ] |
| 13 } | 14 } |
| 14 | 15 |
| 15 # GYP version: sync/sync.gyp:sync_core | 16 # GYP version: sync/sync.gyp:sync_core |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 | 835 |
| 835 # GYP: //sync/sync_tests.gypi:fake_server_jni | 836 # GYP: //sync/sync_tests.gypi:fake_server_jni |
| 836 generate_jni("fake_server_jni") { | 837 generate_jni("fake_server_jni") { |
| 837 testonly = true | 838 testonly = true |
| 838 jni_package = "sync/test/fake_server" | 839 jni_package = "sync/test/fake_server" |
| 839 sources = [ | 840 sources = [ |
| 840 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/syn
c/FakeServerHelper.java", | 841 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/syn
c/FakeServerHelper.java", |
| 841 ] | 842 ] |
| 842 } | 843 } |
| 843 | 844 |
| 845 _test_support_sync_prepared_protos_dir = |
| 846 "$root_gen_dir/test_support_sync_proto_java_prepare/" |
| 847 action("test_support_sync_proto_java_prepare") { |
| 848 script = "//sync/protocol/prepare_protos_for_java_tests.py" |
| 849 inputs = sync_protocol_sources |
| 850 outputs = process_file_template( |
| 851 sync_protocol_sources, |
| 852 [ "$_test_support_sync_prepared_protos_dir/{{source_file_part}}" ]) |
| 853 args = [ |
| 854 "--output_dir", |
| 855 rebase_path(_test_support_sync_prepared_protos_dir, root_build_dir), |
| 856 ] |
| 857 args += rebase_path(sync_protocol_sources, root_build_dir) |
| 858 } |
| 859 |
| 860 # GYP: //sync/sync_tests.gypi:test_support_sync_proto_java |
| 861 proto_java_library("test_support_sync_proto_java") { |
| 862 proto_path = _test_support_sync_prepared_protos_dir |
| 863 sources = get_target_outputs(":test_support_sync_proto_java_prepare") |
| 864 deps = [ |
| 865 ":test_support_sync_proto_java_prepare", |
| 866 ] |
| 867 } |
| 868 |
| 844 # GYP: //sync/sync_tests.gypi:sync_java_test_support | 869 # GYP: //sync/sync_tests.gypi:sync_java_test_support |
| 845 android_library("sync_java_test_support") { | 870 android_library("sync_java_test_support") { |
| 846 testonly = true | 871 testonly = true |
| 847 deps = [ | 872 deps = [ |
| 848 "//base:base_java", | 873 "//base:base_java", |
| 849 "//base:base_java_test_support", | 874 "//base:base_java_test_support", |
| 850 "//third_party/jsr-305:jsr_305_javalib", | 875 "//third_party/jsr-305:jsr_305_javalib", |
| 851 "android:sync_java", | 876 "android:sync_java", |
| 852 ] | 877 ] |
| 853 DEPRECATED_java_in_dir = "test/android/javatests/src" | 878 DEPRECATED_java_in_dir = "test/android/javatests/src" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 864 ":fake_server_jni", | 889 ":fake_server_jni", |
| 865 ":sync_core", | 890 ":sync_core", |
| 866 ":test_support_sync_fake_server", | 891 ":test_support_sync_fake_server", |
| 867 "//base", | 892 "//base", |
| 868 "//sync/protocol:protocol", | 893 "//sync/protocol:protocol", |
| 869 "//testing/gtest", | 894 "//testing/gtest", |
| 870 "//url:url", | 895 "//url:url", |
| 871 ] | 896 ] |
| 872 } | 897 } |
| 873 } | 898 } |
| OLD | NEW |