| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 testonly = true | 259 testonly = true |
| 260 deps = [ | 260 deps = [ |
| 261 ":$_test_runner_target", | 261 ":$_test_runner_target", |
| 262 ] | 262 ] |
| 263 if (_use_raw_android_executable) { | 263 if (_use_raw_android_executable) { |
| 264 deps += [ ":$_dist_target" ] | 264 deps += [ ":$_dist_target" ] |
| 265 } else { | 265 } else { |
| 266 deps += [ ":$_apk_target" ] | 266 deps += [ ":$_apk_target" ] |
| 267 } | 267 } |
| 268 } | 268 } |
| 269 | |
| 270 # TODO(GYP_GONE): Delete this after we've converted everything to GN. | |
| 271 # The _run targets exist only for compatibility w/ GYP. | |
| 272 group("${target_name}_apk_run") { | |
| 273 testonly = true | |
| 274 deps = [ | |
| 275 ":${invoker.target_name}", | |
| 276 ] | |
| 277 } | |
| 278 } else if (is_ios) { | 269 } else if (is_ios) { |
| 279 import("//build/config/ios/rules.gni") | 270 import("//build/config/ios/rules.gni") |
| 280 | 271 |
| 281 _test_target = target_name | 272 _test_target = target_name |
| 282 _resources_bundle_data = target_name + "_resources_bundle_data" | 273 _resources_bundle_data = target_name + "_resources_bundle_data" |
| 283 | 274 |
| 284 bundle_data(_resources_bundle_data) { | 275 bundle_data(_resources_bundle_data) { |
| 285 visibility = [ | 276 visibility = [ |
| 286 ":${_test_target}", | 277 ":${_test_target}", |
| 287 ":${_test_target}_generate_executable", | 278 ":${_test_target}_generate_executable", |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 deps += [ | 337 deps += [ |
| 347 # All shared libraries must have the sanitizer deps to properly link in | 338 # All shared libraries must have the sanitizer deps to properly link in |
| 348 # asan mode (this target will be empty in other cases). | 339 # asan mode (this target will be empty in other cases). |
| 349 "//build/config/sanitizers:deps", | 340 "//build/config/sanitizers:deps", |
| 350 | 341 |
| 351 # Give tests the default manifest on Windows (a no-op elsewhere). | 342 # Give tests the default manifest on Windows (a no-op elsewhere). |
| 352 "//build/win:default_exe_manifest", | 343 "//build/win:default_exe_manifest", |
| 353 ] | 344 ] |
| 354 } | 345 } |
| 355 | 346 |
| 356 # TODO(GYP_GONE): Delete this after we've converted everything to GN. | |
| 357 # The _run targets exist only for compatibility with GYP. | |
| 358 group("${target_name}_run") { | |
| 359 testonly = true | |
| 360 deps = [ | |
| 361 ":${invoker.target_name}", | |
| 362 ] | |
| 363 } | |
| 364 | |
| 365 if (defined(invoker.output_name) && target_name != invoker.output_name) { | 347 if (defined(invoker.output_name) && target_name != invoker.output_name) { |
| 366 group("${invoker.output_name}_run") { | 348 group("${invoker.output_name}_run") { |
| 367 testonly = true | 349 testonly = true |
| 368 deps = [ | 350 deps = [ |
| 369 ":${invoker.target_name}", | 351 ":${invoker.target_name}", |
| 370 ] | 352 ] |
| 371 } | 353 } |
| 372 } | 354 } |
| 373 } | 355 } |
| 374 } | 356 } |
| 375 | 357 |
| 376 # Test defaults. | 358 # Test defaults. |
| 377 set_defaults("test") { | 359 set_defaults("test") { |
| 378 if (is_android) { | 360 if (is_android) { |
| 379 configs = default_shared_library_configs | 361 configs = default_shared_library_configs |
| 380 } else { | 362 } else { |
| 381 configs = default_executable_configs | 363 configs = default_executable_configs |
| 382 } | 364 } |
| 383 } | 365 } |
| OLD | NEW |