Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: testing/test.gni

Issue 1533363002: GN: Remove asset_location parameter in favour of android_assets() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asset-location-1
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/android/rules.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698