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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 299 |
300 # See above call. | 300 # See above call. |
301 set_sources_assignment_filter([]) | 301 set_sources_assignment_filter([]) |
302 forward_variables_from(invoker, "*", [ "testonly" ]) | 302 forward_variables_from(invoker, "*", [ "testonly" ]) |
303 | 303 |
304 # Provide sensible defaults in case invoker did not define any of those | 304 # Provide sensible defaults in case invoker did not define any of those |
305 # required variables. | 305 # required variables. |
306 if (!defined(info_plist) && !defined(info_plist_target)) { | 306 if (!defined(info_plist) && !defined(info_plist_target)) { |
307 info_plist = "//testing/gtest_ios/unittest-Info.plist" | 307 info_plist = "//testing/gtest_ios/unittest-Info.plist" |
308 } | 308 } |
309 if (!defined(entitlements_path)) { | |
310 entitlements_path = "//testing/gtest_ios" | |
311 } | |
312 if (!defined(code_signing_identity)) { | |
313 code_signing_identity = "" | |
314 } | |
315 | 309 |
316 # TODO(crbug.com/603102): remove this once gyp support is dropped and all | 310 # TODO(crbug.com/603102): remove this once gyp support is dropped and all |
317 # application uses the target name as value for BUNDLE_ID_TEST_NAME. | 311 # application uses the target name as value for BUNDLE_ID_TEST_NAME. |
318 if (defined(invoker.app_name)) { | 312 if (defined(invoker.app_name)) { |
319 app_name = invoker.app_name | 313 app_name = invoker.app_name |
320 } else { | 314 } else { |
321 app_name = target_name | 315 app_name = target_name |
322 } | 316 } |
323 | 317 |
324 if (!defined(extra_substitutions)) { | 318 if (!defined(extra_substitutions)) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 if (defined(invoker.output_name) && target_name != invoker.output_name) { | 359 if (defined(invoker.output_name) && target_name != invoker.output_name) { |
366 group("${invoker.output_name}_run") { | 360 group("${invoker.output_name}_run") { |
367 testonly = true | 361 testonly = true |
368 deps = [ | 362 deps = [ |
369 ":${invoker.target_name}", | 363 ":${invoker.target_name}", |
370 ] | 364 ] |
371 } | 365 } |
372 } | 366 } |
373 } | 367 } |
374 } | 368 } |
OLD | NEW |