summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorqsr <qsr@chromium.org>2015-01-21 07:57:22 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-21 15:58:20 +0000
commitfb5251d1ff4f36ea296da4be72ddf26a9e3e5643 (patch)
tree2ad55b0c4bf8cbc75fde7692f9c6a441d589b304 /third_party
parent063efcf45e7d9ea6eb65ace73220b380d47a591a (diff)
downloadchromium_src-fb5251d1ff4f36ea296da4be72ddf26a9e3e5643.zip
chromium_src-fb5251d1ff4f36ea296da4be72ddf26a9e3e5643.tar.gz
chromium_src-fb5251d1ff4f36ea296da4be72ddf26a9e3e5643.tar.bz2
Move the test template to //testing/test.gni (part 2)
This CL move the test target from build/config/BUILDCONFIG.gn to testing/test.gni It also update the test template to automatically build an apk on Android. R=cjhopman@chromium.org,brettw@chromium.org Review URL: https://codereview.chromium.org/824263004 Cr-Commit-Position: refs/heads/master@{#312396}
Diffstat (limited to 'third_party')
-rw-r--r--third_party/libaddressinput/BUILD.gn1
-rw-r--r--third_party/libphonenumber/BUILD.gn1
-rw-r--r--third_party/mojo/src/mojo/edk/js/test/BUILD.gn2
-rw-r--r--third_party/mojo/src/mojo/edk/system/BUILD.gn19
-rw-r--r--third_party/mojo/src/mojo/edk/test/BUILD.gn1
5 files changed, 6 insertions, 18 deletions
diff --git a/third_party/libaddressinput/BUILD.gn b/third_party/libaddressinput/BUILD.gn
index 99c2be2..5f6d4fc 100644
--- a/third_party/libaddressinput/BUILD.gn
+++ b/third_party/libaddressinput/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/test.gni")
import("//tools/grit/grit_rule.gni")
libaddressinput_util_files = [
diff --git a/third_party/libphonenumber/BUILD.gn b/third_party/libphonenumber/BUILD.gn
index 22d1347..4c32084 100644
--- a/third_party/libphonenumber/BUILD.gn
+++ b/third_party/libphonenumber/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")
proto_library("proto") {
diff --git a/third_party/mojo/src/mojo/edk/js/test/BUILD.gn b/third_party/mojo/src/mojo/edk/js/test/BUILD.gn
index badc3ad..326de6a 100644
--- a/third_party/mojo/src/mojo/edk/js/test/BUILD.gn
+++ b/third_party/mojo/src/mojo/edk/js/test/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/test.gni")
+
test("js_unittests") {
deps = [
"../../js",
diff --git a/third_party/mojo/src/mojo/edk/system/BUILD.gn b/third_party/mojo/src/mojo/edk/system/BUILD.gn
index 2f8abdd..eab85a2 100644
--- a/third_party/mojo/src/mojo/edk/system/BUILD.gn
+++ b/third_party/mojo/src/mojo/edk/system/BUILD.gn
@@ -2,13 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/test.gni")
import("../mojo_edk.gni")
-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.
@@ -173,10 +169,6 @@ test("mojo_system_unittests") {
"//testing/gtest",
]
- if (is_android) {
- deps += [ "//testing/android:native_test_native_code" ]
- }
-
allow_circular_includes_from = [ "../embedder:embedder_unittests" ]
}
@@ -198,12 +190,3 @@ 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"
- }
-}
diff --git a/third_party/mojo/src/mojo/edk/test/BUILD.gn b/third_party/mojo/src/mojo/edk/test/BUILD.gn
index d05f6d4..ea323c6 100644
--- a/third_party/mojo/src/mojo/edk/test/BUILD.gn
+++ b/third_party/mojo/src/mojo/edk/test/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/test.gni")
import("../mojo_edk.gni")
mojo_edk_source_set("test_support") {