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

Unified Diff: testing/test.gni

Issue 1120883002: [Android] Generate scripts at build time to run android tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed datadeps to data_deps to reflect recent change. Created 5 years, 7 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
« no previous file with comments | « sync/sync_tests.gypi ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/test.gni
diff --git a/testing/test.gni b/testing/test.gni
index b4cdbede08b9e3410b17930515260151be30433f..c99df9036b6d8b636c5bb6912b67a4517475950e 100644
--- a/testing/test.gni
+++ b/testing/test.gni
@@ -131,9 +131,25 @@ template("test") {
}
}
+ test_name = main_target_name
+ if (defined(invoker.output_name)) {
+ test_name = invoker.output_name
+ }
+ test_runner_script_name = "${test_name}__test_runner_script"
+ test_runner_script(test_runner_script_name) {
+ test_name = test_name
+ test_type = "gtest"
+ test_suite = test_name
+ if (defined(invoker.isolate_file)) {
+ isolate_file = invoker.isolate_file
+ }
+ }
+
group(target_name) {
testonly = true
-
+ datadeps = [
+ ":$test_runner_script_name",
+ ]
deps = [
":$library_name",
":$apk_name",
« no previous file with comments | « sync/sync_tests.gypi ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698