Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: net/android/BUILD.gn

Issue 1526183002: Revert of [Android] Add ChromiumNetTestSupport.apk for the java EmbeddedTestServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/BUILD.gn ('k') | net/net.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 7
8 android_library("net_java") { 8 android_library("net_java") {
9 DEPRECATED_java_in_dir = "java/src" 9 DEPRECATED_java_in_dir = "java/src"
10 deps = [ 10 deps = [
11 "//base:base_java", 11 "//base:base_java",
12 ] 12 ]
13 srcjar_deps = [ 13 srcjar_deps = [
14 ":net_errors_java", 14 ":net_errors_java",
15 ":net_android_java_enums_srcjar", 15 ":net_android_java_enums_srcjar",
16 ] 16 ]
17 } 17 }
18 18
19 android_aidl("embedded_test_server_aidl") {
20 interface_file = "../test/android/javatests/src/org/chromium/net/test/IEmbedde dTestServerInterface.aidl"
21 sources = [
22 "../test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerImpl .aidl",
23 ]
24 }
25
26 android_library("net_java_test_support") { 19 android_library("net_java_test_support") {
27 testonly = true
28 DEPRECATED_java_in_dir = "../test/android/javatests/src" 20 DEPRECATED_java_in_dir = "../test/android/javatests/src"
29 deps = [ 21 deps = [
30 ":net_java", 22 ":net_java",
31 "//base:base_java", 23 "//base:base_java",
32 "//base:base_java_test_support",
33 "//third_party/android_tools:legacy_http_javalib", 24 "//third_party/android_tools:legacy_http_javalib",
34 ] 25 ]
35 srcjar_deps = [ 26 srcjar_deps = [ ":net_java_test_support_enums_srcjar" ]
36 ":embedded_test_server_aidl",
37 ":net_java_test_support_enums_srcjar",
38 ]
39 }
40
41 source_set("java_test_native_support") {
42 testonly = true
43 sources = [
44 "../test/android/net_test_entry_point.cc",
45 "../test/android/net_test_jni_onload.cc",
46 "../test/android/net_test_jni_onload.h",
47 "../test/embedded_test_server/android/embedded_test_server_android.cc",
48 "../test/embedded_test_server/android/embedded_test_server_android.h",
49 ]
50
51 deps = [
52 "//net:test_support",
53 ]
54 public_deps = [
55 "//net:net_test_jni_headers",
56 ]
57 }
58
59 shared_library("net_java_test_native_support") {
60 testonly = true
61 deps = [
62 ":java_test_native_support",
63 "//net:test_support",
64 ]
65 }
66
67 android_apk("net_test_support_apk") {
68 testonly = true
69 deps = [
70 ":net_java_test_native_support",
71 ":net_java_test_support",
72 "//base:base_java",
73 ]
74 android_manifest = "../test/android/javatests/AndroidManifest.xml"
75 apk_name = "ChromiumNetTestSupport"
76 native_libs = [ "libnet_java_test_native_support.so" ]
77 native_libraries_package_name = "org.chromium.base.test.library_loader"
78 native_libraries_template =
79 "//base/test/android/java/templates/NativeTestLibraries.template"
80 } 27 }
81 28
82 android_resources("net_unittests_apk_resources") { 29 android_resources("net_unittests_apk_resources") {
83 resource_dirs = [ "unittest_support/res" ] 30 resource_dirs = [ "unittest_support/res" ]
84 custom_package = "org.chromium.native_test" 31 custom_package = "org.chromium.native_test"
85 } 32 }
86 33
87 android_library("net_javatests") { 34 android_library("net_javatests") {
88 testonly = true
89 DEPRECATED_java_in_dir = "javatests/src" 35 DEPRECATED_java_in_dir = "javatests/src"
90 deps = [ 36 deps = [
91 ":net_java", 37 ":net_java",
92 ":net_java_test_support", 38 ":net_java_test_support",
93 "//base:base_java", 39 "//base:base_java",
94 "//base:base_java_test_support", 40 "//base:base_java_test_support",
95 ] 41 ]
96 } 42 }
97 43
98 java_cpp_template("net_errors_java") { 44 java_cpp_template("net_errors_java") {
(...skipping 27 matching lines...) Expand all
126 java_files = 72 java_files =
127 [ "junit/src/org/chromium/net/HttpNegotiateAuthenticatorTest.java" ] 73 [ "junit/src/org/chromium/net/HttpNegotiateAuthenticatorTest.java" ]
128 deps = [ 74 deps = [
129 ":net_java", 75 ":net_java",
130 "//base:base_java", 76 "//base:base_java",
131 "//base:base_java_test_support", 77 "//base:base_java_test_support",
132 "//base:base_junit_test_support", 78 "//base:base_junit_test_support",
133 "//third_party/junit:hamcrest", 79 "//third_party/junit:hamcrest",
134 ] 80 ]
135 } 81 }
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698