| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 "deps", | 68 "deps", |
| 69 "enable_multidex", | 69 "enable_multidex", |
| 70 "use_default_launcher", | 70 "use_default_launcher", |
| 71 "write_asset_list", | 71 "write_asset_list", |
| 72 ]) | 72 ]) |
| 73 unittests_dep = ":$library_name" | 73 unittests_dep = ":$library_name" |
| 74 apk_name = main_target_name | 74 apk_name = main_target_name |
| 75 if (defined(invoker.output_name)) { | 75 if (defined(invoker.output_name)) { |
| 76 apk_name = invoker.output_name | 76 apk_name = invoker.output_name |
| 77 unittests_binary = "lib${apk_name}.so" | 77 unittests_binary = "lib${apk_name}.so" |
| 78 install_script_name = "install_${invoker.output_name}" |
| 78 } | 79 } |
| 79 deps += [ ":$library_name" ] | 80 deps += [ ":$library_name" ] |
| 80 } | 81 } |
| 81 | 82 |
| 82 _test_name = main_target_name | 83 _test_name = main_target_name |
| 83 if (defined(invoker.output_name)) { | 84 if (defined(invoker.output_name)) { |
| 84 _test_name = invoker.output_name | 85 _test_name = invoker.output_name |
| 85 } | 86 } |
| 86 test_runner_script_name = "${_test_name}__test_runner_script" | 87 test_runner_script_name = "${_test_name}__test_runner_script" |
| 87 test_runner_script(test_runner_script_name) { | 88 test_runner_script(test_runner_script_name) { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 # TODO(GYP): Delete this after we've converted everything to GN. | 203 # TODO(GYP): Delete this after we've converted everything to GN. |
| 203 # The _run targets exist only for compatibility with GYP. | 204 # The _run targets exist only for compatibility with GYP. |
| 204 group("${target_name}_run") { | 205 group("${target_name}_run") { |
| 205 testonly = true | 206 testonly = true |
| 206 deps = [ | 207 deps = [ |
| 207 ":$main_target_name", | 208 ":$main_target_name", |
| 208 ] | 209 ] |
| 209 } | 210 } |
| 210 } | 211 } |
| 211 } | 212 } |
| OLD | NEW |