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

Unified Diff: mojo/android/BUILD.gn

Issue 830593003: Update mojo sdk to rev 9fbbc4f0fef1187312316c0ed992342474e139f1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cherry-pick mojo 9d3b8dd17f12d20035a14737fdc38dd926890ff8 Created 5 years, 11 months 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
Index: mojo/android/BUILD.gn
diff --git a/mojo/android/BUILD.gn b/mojo/android/BUILD.gn
index 8fb62596e03eacfb93c8e28f100c615e8cb2ae60..a816a04d063f4bb15bbeff945ba43b2c4706fe22 100644
--- a/mojo/android/BUILD.gn
+++ b/mojo/android/BUILD.gn
@@ -9,9 +9,22 @@ group("android") {
deps = [
":system_java",
":mojo_javatests",
+ ":mojo_test_apk",
]
}
+generate_jni("jni_headers") {
+ sources = [
+ "javatests/src/org/chromium/mojo/MojoTestCase.java",
+ "javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java",
+ ]
+ deps = [
+ ":system_java_jni_headers",
+ ]
+
+ jni_package = "mojo"
+}
+
generate_jni("system_java_jni_headers") {
sources = [
"system/src/org/chromium/mojo/system/impl/CoreImpl.java",
@@ -28,8 +41,10 @@ source_set("libsystem_java") {
deps = [
":system_java_jni_headers",
+ "//base",
"//mojo/edk/system",
"//mojo/environment:chromium",
+ "//mojo/public/cpp/environment",
]
}
@@ -83,3 +98,44 @@ android_library("mojo_javatests") {
"//mojo/public/java:system",
]
}
+
+shared_library("mojo_java_unittests") {
+ testonly = true
+
+ sources = [
+ "javatests/mojo_test_case.cc",
+ "javatests/mojo_test_case.h",
+ "javatests/init_library.cc",
+ "javatests/validation_test_util.cc",
+ "javatests/validation_test_util.h",
+ ]
+
+ deps = [
+ ":jni_headers",
+ ":libsystem_java",
+ ":system_java_jni_headers",
+ "//base",
+ "//base/test/:test_support",
+ "//mojo/common",
+ "//mojo/edk/system",
+ "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils",
+ "//mojo/public/cpp/test_support:test_utils",
+ "//mojo/public/cpp/environment",
+ ]
+ defines = [ "UNIT_TEST" ]
+}
+
+android_apk("mojo_test_apk") {
+ testonly = true
+ deps = [
+ ":mojo_javatests",
+ ":mojo_java_unittests",
+ ":system_java",
+ "//base:base_java",
+ "//mojo/public/java:bindings",
+ "//mojo/public/interfaces/bindings/tests:test_interfaces",
+ ]
+ native_libs = [ "libmojo_java_unittests.so" ]
+ apk_name = "MojoTest"
+ android_manifest = "javatests/AndroidManifest.xml"
+}
« no previous file with comments | « ipc/mojo/async_handle_waiter_unittest.cc ('k') | mojo/android/javatests/src/org/chromium/mojo/TestUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698