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

Side by Side 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: Addressed jbudorick's nits. 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # ============================================================================== 5 # ==============================================================================
6 # TEST SETUP 6 # TEST SETUP
7 # ============================================================================== 7 # ==============================================================================
8 8
9 # Define a test as an executable (or apk on Android) with the "testonly" flag 9 # Define a test as an executable (or apk on Android) with the "testonly" flag
10 # set. 10 # set.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 ":$library_name", 124 ":$library_name",
125 ] 125 ]
126 if (defined(invoker.apk_deps)) { 126 if (defined(invoker.apk_deps)) {
127 deps += invoker.apk_deps 127 deps += invoker.apk_deps
128 } 128 }
129 if (defined(invoker.apk_asset_location)) { 129 if (defined(invoker.apk_asset_location)) {
130 asset_location = invoker.apk_asset_location 130 asset_location = invoker.apk_asset_location
131 } 131 }
132 } 132 }
133 133
134 test_name = main_target_name
135 if (defined(invoker.output_name)) {
136 test_name = invoker.output_name
137 }
138 test_runner_script_name = "${test_name}__test_runner_script"
139 test_runner_script(test_runner_script_name) {
140 test_type = "gtest"
141 test_suite = test_name
142 if (defined(invoker.isolate_file)) {
143 isolate_file = invoker.isolate_file
144 }
145 }
146
134 group(target_name) { 147 group(target_name) {
135 testonly = true 148 testonly = true
136 149 datadeps = [
150 ":$test_runner_script_name",
151 ]
137 deps = [ 152 deps = [
138 ":$library_name", 153 ":$library_name",
139 ":$apk_name", 154 ":$apk_name",
140 ] 155 ]
141 } 156 }
142 } else { 157 } else {
143 executable(target_name) { 158 executable(target_name) {
144 # See above. 159 # See above.
145 configs = [] # Prevent list overwriting warning. 160 configs = [] # Prevent list overwriting warning.
146 configs = invoker.configs 161 configs = invoker.configs
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 246 }
232 if (defined(invoker.sources)) { 247 if (defined(invoker.sources)) {
233 sources = invoker.sources 248 sources = invoker.sources
234 } 249 }
235 if (defined(invoker.visibility)) { 250 if (defined(invoker.visibility)) {
236 visibility = invoker.visibility 251 visibility = invoker.visibility
237 } 252 }
238 } 253 }
239 } 254 }
240 } 255 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698