| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 invoker.use_default_launcher) { | 59 invoker.use_default_launcher) { |
| 60 deps += [ "//testing/android/native_test:native_test_native_code" ] | 60 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 unittest_apk(apk_name) { | 64 unittest_apk(apk_name) { |
| 65 forward_variables_from(invoker, | 65 forward_variables_from(invoker, |
| 66 [ | 66 [ |
| 67 "android_manifest", | 67 "android_manifest", |
| 68 "deps", | 68 "deps", |
| 69 "enable_multidex", |
| 69 "use_default_launcher", | 70 "use_default_launcher", |
| 70 "write_asset_list", | 71 "write_asset_list", |
| 71 ]) | 72 ]) |
| 72 unittests_dep = ":$library_name" | 73 unittests_dep = ":$library_name" |
| 73 apk_name = main_target_name | 74 apk_name = main_target_name |
| 74 if (defined(invoker.output_name)) { | 75 if (defined(invoker.output_name)) { |
| 75 apk_name = invoker.output_name | 76 apk_name = invoker.output_name |
| 76 unittests_binary = "lib${apk_name}.so" | 77 unittests_binary = "lib${apk_name}.so" |
| 77 } | 78 } |
| 78 deps += [ ":$library_name" ] | 79 deps += [ ":$library_name" ] |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 # All shared libraries must have the sanitizer deps to properly link in | 189 # All shared libraries must have the sanitizer deps to properly link in |
| 189 # asan mode (this target will be empty in other cases). | 190 # asan mode (this target will be empty in other cases). |
| 190 "//build/config/sanitizers:deps", | 191 "//build/config/sanitizers:deps", |
| 191 | 192 |
| 192 # Give tests the default manifest on Windows (a no-op elsewhere). | 193 # Give tests the default manifest on Windows (a no-op elsewhere). |
| 193 "//build/win:default_exe_manifest", | 194 "//build/win:default_exe_manifest", |
| 194 ] | 195 ] |
| 195 } | 196 } |
| 196 } | 197 } |
| 197 } | 198 } |
| OLD | NEW |