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

Side by Side Diff: testing/test.gni

Issue 1435333008: GN: asset_location -> android_assets() for html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaswe 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 | « components/html_viewer/BUILD.gn ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 if (!defined(invoker.use_default_launcher) || 57 if (!defined(invoker.use_default_launcher) ||
58 invoker.use_default_launcher) { 58 invoker.use_default_launcher) {
59 deps += [ "//testing/android/native_test:native_test_native_code" ] 59 deps += [ "//testing/android/native_test:native_test_native_code" ]
60 } 60 }
61 if (defined(invoker.deps)) { 61 if (defined(invoker.deps)) {
62 deps += invoker.deps 62 deps += invoker.deps
63 } 63 }
64 } 64 }
65 65
66 unittest_apk(apk_name) { 66 unittest_apk(apk_name) {
67 forward_variables_from(invoker,
68 [
69 "android_manifest",
70 "use_default_launcher",
71 "write_asset_list",
72 ])
73
67 unittests_dep = ":$library_name" 74 unittests_dep = ":$library_name"
68 apk_name = main_target_name 75 apk_name = main_target_name
69 if (defined(invoker.output_name)) { 76 if (defined(invoker.output_name)) {
70 apk_name = invoker.output_name 77 apk_name = invoker.output_name
71 unittests_binary = "lib${apk_name}.so" 78 unittests_binary = "lib${apk_name}.so"
72 } 79 }
73 deps = [ 80 deps = [
74 ":$library_name", 81 ":$library_name",
75 ] 82 ]
76 if (defined(invoker.apk_deps)) { 83 if (defined(invoker.apk_deps)) {
77 deps += invoker.apk_deps 84 deps += invoker.apk_deps
78 } 85 }
79 if (defined(invoker.apk_asset_location)) { 86 if (defined(invoker.apk_asset_location)) {
80 asset_location = invoker.apk_asset_location 87 asset_location = invoker.apk_asset_location
81 } 88 }
82 if (defined(invoker.android_manifest)) {
83 android_manifest = invoker.android_manifest
84 }
85 if (defined(invoker.use_default_launcher)) {
86 use_default_launcher = invoker.use_default_launcher
87 }
88 } 89 }
89 90
90 _test_name = main_target_name 91 _test_name = main_target_name
91 if (defined(invoker.output_name)) { 92 if (defined(invoker.output_name)) {
92 _test_name = invoker.output_name 93 _test_name = invoker.output_name
93 } 94 }
94 test_runner_script_name = "${_test_name}__test_runner_script" 95 test_runner_script_name = "${_test_name}__test_runner_script"
95 test_runner_script(test_runner_script_name) { 96 test_runner_script(test_runner_script_name) {
96 test_name = _test_name 97 test_name = _test_name
97 test_type = "gtest" 98 test_type = "gtest"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 # All shared libraries must have the sanitizer deps to properly link in 198 # All shared libraries must have the sanitizer deps to properly link in
198 # asan mode (this target will be empty in other cases). 199 # asan mode (this target will be empty in other cases).
199 "//build/config/sanitizers:deps", 200 "//build/config/sanitizers:deps",
200 201
201 # Give tests the default manifest on Windows (a no-op elsewhere). 202 # Give tests the default manifest on Windows (a no-op elsewhere).
202 "//build/win:default_exe_manifest", 203 "//build/win:default_exe_manifest",
203 ] 204 ]
204 } 205 }
205 } 206 }
206 } 207 }
OLDNEW
« no previous file with comments | « components/html_viewer/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698