| 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 # 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 test_type = "gtest" | 101 test_type = "gtest" |
| 102 test_suite = _test_name | 102 test_suite = _test_name |
| 103 incremental_install = true | 103 incremental_install = true |
| 104 if (defined(invoker.isolate_file)) { | 104 if (defined(invoker.isolate_file)) { |
| 105 isolate_file = invoker.isolate_file | 105 isolate_file = invoker.isolate_file |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 | 108 |
| 109 group(target_name) { | 109 group(target_name) { |
| 110 testonly = true | 110 testonly = true |
| 111 datadeps = [ | 111 data_deps = [ |
| 112 ":$test_runner_script_name", | 112 ":$test_runner_script_name", |
| 113 ":${apk_name}__data", |
| 113 ] | 114 ] |
| 114 deps = [ | 115 deps = [ |
| 115 ":$apk_name", | 116 ":$apk_name", |
| 116 ] | 117 ] |
| 117 } | 118 } |
| 118 group("${target_name}_incremental") { | 119 group("${target_name}_incremental") { |
| 119 testonly = true | 120 testonly = true |
| 120 datadeps = [ | 121 data_deps = [ |
| 121 ":$incremental_test_runner_script_name", | 122 ":$incremental_test_runner_script_name", |
| 122 ] | 123 ] |
| 123 deps = [ | 124 deps = [ |
| 124 ":${apk_name}_incremental", | 125 ":${apk_name}_incremental", |
| 125 ] | 126 ] |
| 126 } | 127 } |
| 127 | 128 |
| 128 # TODO(GYP): Delete this after we've converted everything to GN. | 129 # TODO(GYP): Delete this after we've converted everything to GN. |
| 129 # The _run targets exist only for compatibility w/ GYP. | 130 # The _run targets exist only for compatibility w/ GYP. |
| 130 group("${target_name}_apk_run") { | 131 group("${target_name}_apk_run") { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 # TODO(GYP): Delete this after we've converted everything to GN. | 212 # TODO(GYP): Delete this after we've converted everything to GN. |
| 212 # The _run targets exist only for compatibility with GYP. | 213 # The _run targets exist only for compatibility with GYP. |
| 213 group("${target_name}_run") { | 214 group("${target_name}_run") { |
| 214 testonly = true | 215 testonly = true |
| 215 deps = [ | 216 deps = [ |
| 216 ":$main_target_name", | 217 ":$main_target_name", |
| 217 ] | 218 ] |
| 218 } | 219 } |
| 219 } | 220 } |
| 220 } | 221 } |
| OLD | NEW |