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