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

Unified Diff: mojo/edk/system/BUILD.gn

Issue 728783003: Add infrastructure to run tests on android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 6 years, 1 month 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
« no previous file with comments | « mojo/edk/embedder/embedder_unittest.cc ('k') | mojo/edk/system/core_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/BUILD.gn
diff --git a/mojo/edk/system/BUILD.gn b/mojo/edk/system/BUILD.gn
index b87c76ad490b9d68923af9de37d9eb5003c43d6c..0701484b3441737dc22dadd6450789c023674c27 100644
--- a/mojo/edk/system/BUILD.gn
+++ b/mojo/edk/system/BUILD.gn
@@ -2,6 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+if (is_android) {
+ import("//build/config/android/config.gni")
+ import("//build/config/android/rules.gni")
+}
+
config("system_config") {
defines = [
# Ensures that dependent projects import the core functions on Windows.
@@ -143,6 +148,12 @@ test("mojo_system_unittests") {
"//testing/gtest",
]
+ if (is_android) {
+ deps += [
+ "//testing/android:native_test_native_code",
+ ]
+ }
+
allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ]
}
@@ -165,3 +176,12 @@ test("mojo_message_pipe_perftests") {
"//testing/gtest",
]
}
+
+if (is_android) {
+ unittest_apk("mojo_system_unittests_apk") {
+ deps = [
+ ":mojo_system_unittests",
+ ]
+ unittests_dep = ":mojo_system_unittests"
+ }
+}
« no previous file with comments | « mojo/edk/embedder/embedder_unittest.cc ('k') | mojo/edk/system/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698