| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 110 } |
| 111 if (defined(invoker.visibility)) { | 111 if (defined(invoker.visibility)) { |
| 112 visibility = invoker.visibility | 112 visibility = invoker.visibility |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 unittest_apk(apk_name) { | 116 unittest_apk(apk_name) { |
| 117 unittests_dep = ":$library_name" | 117 unittests_dep = ":$library_name" |
| 118 apk_name = main_target_name | 118 apk_name = main_target_name |
| 119 if (defined(invoker.output_name)) { | 119 if (defined(invoker.output_name)) { |
| 120 test_output_name = invoker.output_name | 120 apk_name = invoker.output_name |
| 121 unittests_binary = "lib${test_output_name}.so" | 121 unittests_binary = "lib${apk_name}.so" |
| 122 } | 122 } |
| 123 deps = [ | 123 deps = [ |
| 124 ":$library_name", | 124 ":$library_name", |
| 125 ] | 125 ] |
| 126 if (defined(invoker.apk_deps)) { | 126 if (defined(invoker.apk_deps)) { |
| 127 deps += invoker.apk_deps | 127 deps += invoker.apk_deps |
| 128 } | 128 } |
| 129 if (defined(invoker.apk_asset_location)) { | 129 if (defined(invoker.apk_asset_location)) { |
| 130 asset_location = invoker.apk_asset_location | 130 asset_location = invoker.apk_asset_location |
| 131 } | 131 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 231 } |
| 232 if (defined(invoker.sources)) { | 232 if (defined(invoker.sources)) { |
| 233 sources = invoker.sources | 233 sources = invoker.sources |
| 234 } | 234 } |
| 235 if (defined(invoker.visibility)) { | 235 if (defined(invoker.visibility)) { |
| 236 visibility = invoker.visibility | 236 visibility = invoker.visibility |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 } | 240 } |
| OLD | NEW |