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

Unified Diff: net/android/BUILD.gn

Issue 1465383003: [Android] Add ChromiumNetTestSupport.apk for the java EmbeddedTestServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +landmine for GN 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 side-by-side diff with in-line comments
Download patch
« build/get_landmines.py ('K') | « net/BUILD.gn ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/BUILD.gn
diff --git a/net/android/BUILD.gn b/net/android/BUILD.gn
index 483aed8dfccf54b880e892c61ba08d83e64e62d6..1741b326dd7a9b0a51c2554529716ff2024a1cd7 100644
--- a/net/android/BUILD.gn
+++ b/net/android/BUILD.gn
@@ -16,14 +16,67 @@ android_library("net_java") {
]
}
+android_aidl("embedded_test_server_aidl") {
+ interface_file = "../test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerInterface.aidl"
+ sources = [
+ "../test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerImpl.aidl",
+ ]
+}
+
android_library("net_java_test_support") {
+ testonly = true
DEPRECATED_java_in_dir = "../test/android/javatests/src"
deps = [
":net_java",
"//base:base_java",
+ "//base:base_java_test_support",
"//third_party/android_tools:legacy_http_javalib",
]
- srcjar_deps = [ ":net_java_test_support_enums_srcjar" ]
+ srcjar_deps = [
+ ":embedded_test_server_aidl",
+ ":net_java_test_support_enums_srcjar",
+ ]
+}
+
+source_set("java_test_native_support") {
+ testonly = true
+ sources = [
+ "../test/android/net_test_entry_point.cc",
+ "../test/android/net_test_jni_onload.cc",
+ "../test/android/net_test_jni_onload.h",
+ "../test/embedded_test_server/android/embedded_test_server_android.cc",
+ "../test/embedded_test_server/android/embedded_test_server_android.h",
+ ]
+
+ deps = [
+ "//net:test_support",
+ ]
+ public_deps = [
+ "//net:net_test_jni_headers",
+ ]
+}
+
+shared_library("net_java_test_native_support") {
+ testonly = true
+ deps = [
+ ":java_test_native_support",
+ "//net:test_support",
+ ]
+}
+
+android_apk("net_test_support_apk") {
+ testonly = true
+ deps = [
+ ":net_java_test_native_support",
+ ":net_java_test_support",
+ "//base:base_java",
+ ]
+ android_manifest = "../test/android/javatests/AndroidManifest.xml"
+ apk_name = "ChromiumNetTestSupport"
+ native_libs = [ "libnet_java_test_native_support.so" ]
+ native_libraries_package_name = "org.chromium.base.test.library_loader"
+ native_libraries_template =
+ "//base/test/android/java/templates/NativeTestLibraries.template"
}
android_resources("net_unittests_apk_resources") {
@@ -32,6 +85,7 @@ android_resources("net_unittests_apk_resources") {
}
android_library("net_javatests") {
+ testonly = true
DEPRECATED_java_in_dir = "javatests/src"
deps = [
":net_java",
« build/get_landmines.py ('K') | « net/BUILD.gn ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698