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

Side by Side Diff: testing/test.gni

Issue 2022813002: Allow overridding "app_name" for "test" template on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@{2}
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 template("_gen_isolate") { 9 template("_gen_isolate") {
10 testonly = true 10 testonly = true
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 ] 288 ]
289 outputs = [ 289 outputs = [
290 "{{bundle_resources_dir}}/{{source_file_part}}", 290 "{{bundle_resources_dir}}/{{source_file_part}}",
291 ] 291 ]
292 } 292 }
293 293
294 ios_app_bundle(_test_target) { 294 ios_app_bundle(_test_target) {
295 # TODO: Make this configurable and only provide a default that can be 295 # TODO: Make this configurable and only provide a default that can be
296 # overridden. 296 # overridden.
297 info_plist = "//testing/gtest_ios/unittest-Info.plist" 297 info_plist = "//testing/gtest_ios/unittest-Info.plist"
298 app_name = target_name
299 entitlements_path = "//testing/gtest_ios" 298 entitlements_path = "//testing/gtest_ios"
300 code_signing_identity = "" 299 code_signing_identity = ""
301 testonly = true 300 testonly = true
301
302 # TODO(crbug.com/603102): remove this once gyp support is dropped and all
303 # application uses the target name as value for BUNDLE_ID_TEST_NAME.
304 if (!defined(invoker.app_name)) {
Paweł Hajdan Jr. 2016/05/30 16:18:59 nit: To avoid double negation, how about reversing
sdefresne 2016/05/30 16:28:37 Done.
305 app_name = target_name
306 } else {
307 app_name = invoker.app_name
308 }
309
302 extra_substitutions = [ "BUNDLE_ID_TEST_NAME=$app_name" ] 310 extra_substitutions = [ "BUNDLE_ID_TEST_NAME=$app_name" ]
303 311
304 # See above call. 312 # See above call.
305 set_sources_assignment_filter([]) 313 set_sources_assignment_filter([])
306 314
307 forward_variables_from(invoker, "*") 315 forward_variables_from(invoker, "*")
308 316
309 if (!defined(deps)) { 317 if (!defined(deps)) {
310 deps = [] 318 deps = []
311 } 319 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 if (defined(invoker.output_name) && target_name != invoker.output_name) { 353 if (defined(invoker.output_name) && target_name != invoker.output_name) {
346 group("${invoker.output_name}_run") { 354 group("${invoker.output_name}_run") {
347 testonly = true 355 testonly = true
348 deps = [ 356 deps = [
349 ":${invoker.target_name}", 357 ":${invoker.target_name}",
350 ] 358 ]
351 } 359 }
352 } 360 }
353 } 361 }
354 } 362 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698