| OLD | NEW |
| 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 Loading... |
| 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)) { |
| 305 app_name = invoker.app_name |
| 306 } else { |
| 307 app_name = target_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 Loading... |
| 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 } |
| OLD | NEW |