OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//chrome/android/webapk/libs/runtime_library_version.gni") | 6 import("//chrome/android/webapk/libs/runtime_library_version.gni") |
7 import("//chrome/android/webapk/shell_apk/shell_apk_version.gni") | 7 import("//chrome/android/webapk/shell_apk/shell_apk_version.gni") |
8 | 8 |
9 android_library("client_java") { | 9 android_library("client_java") { |
10 java_files = [ | 10 java_files = [ |
(...skipping 12 matching lines...) Expand all Loading... |
23 srcjar_deps = [ ":runtime_library_version_java" ] | 23 srcjar_deps = [ ":runtime_library_version_java" ] |
24 } | 24 } |
25 | 25 |
26 java_cpp_template("runtime_library_version_java") { | 26 java_cpp_template("runtime_library_version_java") { |
27 package_path = "org/chromium/webapk/lib/client" | 27 package_path = "org/chromium/webapk/lib/client" |
28 sources = [ | 28 sources = [ |
29 "src/org/chromium/webapk/lib/client/WebApkVersion.template", | 29 "src/org/chromium/webapk/lib/client/WebApkVersion.template", |
30 ] | 30 ] |
31 defines = [ | 31 defines = [ |
32 "CURRENT_RUNTIME_DEX_VERSION_VALUE=$runtime_library_version", | 32 "CURRENT_RUNTIME_DEX_VERSION_VALUE=$runtime_library_version", |
33 "CURRENT_SHELL_APK_VERSION_VALUE=$expected_shell_apk_version", | 33 "CURRENT_SHELL_APK_VERSION_VALUE=$shell_apk_version", |
34 ] | 34 ] |
35 } | 35 } |
36 | 36 |
37 junit_binary("webapk_client_junit_tests") { | 37 junit_binary("webapk_client_junit_tests") { |
38 java_files = [ | 38 java_files = [ |
39 "junit/src/org/chromium/webapk/lib/client/WebApkServiceConnectionManagerTest
.java", | 39 "junit/src/org/chromium/webapk/lib/client/WebApkServiceConnectionManagerTest
.java", |
40 "junit/src/org/chromium/webapk/lib/client/WebApkValidatorTest.java", | 40 "junit/src/org/chromium/webapk/lib/client/WebApkValidatorTest.java", |
41 "junit/src/org/chromium/webapk/lib/client/WebApkVerifySignatureTest.java", | 41 "junit/src/org/chromium/webapk/lib/client/WebApkVerifySignatureTest.java", |
42 ] | 42 ] |
43 data = [ | 43 data = [ |
44 "//chrome/test/data/webapks/", | 44 "//chrome/test/data/webapks/", |
45 ] | 45 ] |
46 deps = [ | 46 deps = [ |
47 ":client_java", | 47 ":client_java", |
48 "//chrome/android/webapk/libs/common:common_java", | 48 "//chrome/android/webapk/libs/common:common_java", |
49 "//chrome/android/webapk/libs/runtime_library:webapk_service_aidl_java", | 49 "//chrome/android/webapk/libs/runtime_library:webapk_service_aidl_java", |
50 "//testing/android/junit:junit_test_support", | 50 "//testing/android/junit:junit_test_support", |
51 ] | 51 ] |
52 } | 52 } |
OLD | NEW |