| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 71 } |
| 72 deps = [ | 72 deps = [ |
| 73 ":$library_name", | 73 ":$library_name", |
| 74 ] | 74 ] |
| 75 if (defined(invoker.apk_deps)) { | 75 if (defined(invoker.apk_deps)) { |
| 76 deps += invoker.apk_deps | 76 deps += invoker.apk_deps |
| 77 } | 77 } |
| 78 if (defined(invoker.apk_asset_location)) { | 78 if (defined(invoker.apk_asset_location)) { |
| 79 asset_location = invoker.apk_asset_location | 79 asset_location = invoker.apk_asset_location |
| 80 } | 80 } |
| 81 if (defined(invoker.android_manifest)) { |
| 82 android_manifest = invoker.android_manifest |
| 83 } |
| 81 } | 84 } |
| 82 | 85 |
| 83 _test_name = main_target_name | 86 _test_name = main_target_name |
| 84 if (defined(invoker.output_name)) { | 87 if (defined(invoker.output_name)) { |
| 85 _test_name = invoker.output_name | 88 _test_name = invoker.output_name |
| 86 } | 89 } |
| 87 test_runner_script_name = "${_test_name}__test_runner_script" | 90 test_runner_script_name = "${_test_name}__test_runner_script" |
| 88 test_runner_script(test_runner_script_name) { | 91 test_runner_script(test_runner_script_name) { |
| 89 test_name = _test_name | 92 test_name = _test_name |
| 90 test_type = "gtest" | 93 test_type = "gtest" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 # All shared libraries must have the sanitizer deps to properly link in | 193 # All shared libraries must have the sanitizer deps to properly link in |
| 191 # asan mode (this target will be empty in other cases). | 194 # asan mode (this target will be empty in other cases). |
| 192 "//build/config/sanitizers:deps", | 195 "//build/config/sanitizers:deps", |
| 193 | 196 |
| 194 # Give tests the default manifest on Windows (a no-op elsewhere). | 197 # Give tests the default manifest on Windows (a no-op elsewhere). |
| 195 "//build/win:default_exe_manifest", | 198 "//build/win:default_exe_manifest", |
| 196 ] | 199 ] |
| 197 } | 200 } |
| 198 } | 201 } |
| 199 } | 202 } |
| OLD | NEW |