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