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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 ":${_test_target}_generate_executable", | 171 ":${_test_target}_generate_executable", |
172 ] | 172 ] |
173 sources = [ | 173 sources = [ |
174 "//testing/gtest_ios/Default.png", | 174 "//testing/gtest_ios/Default.png", |
175 ] | 175 ] |
176 outputs = [ | 176 outputs = [ |
177 "{{bundle_resources_dir}}/{{source_file_part}}", | 177 "{{bundle_resources_dir}}/{{source_file_part}}", |
178 ] | 178 ] |
179 } | 179 } |
180 | 180 |
181 app(_test_target) { | 181 ios_app_bundle(_test_target) { |
182 # TODO(GYP): Make this configurable and only provide a default | 182 # TODO(GYP): Make this configurable and only provide a default |
183 # that can be overridden. | 183 # that can be overridden. |
184 info_plist = "//testing/gtest_ios/unittest-Info.plist" | 184 info_plist = "//testing/gtest_ios/unittest-Info.plist" |
185 app_name = target_name | 185 app_name = target_name |
186 entitlements_path = "//testing/gtest_ios" | 186 entitlements_path = "//testing/gtest_ios" |
187 code_signing_identity = "" | 187 code_signing_identity = "" |
188 testonly = true | 188 testonly = true |
189 extra_substitutions = [ "BUNDLE_ID_TEST_NAME=$app_name" ] | 189 extra_substitutions = [ "BUNDLE_ID_TEST_NAME=$app_name" ] |
190 | 190 |
191 # See above call. | 191 # See above call. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 # TODO(GYP): Delete this after we've converted everything to GN. | 223 # TODO(GYP): Delete this after we've converted everything to GN. |
224 # The _run targets exist only for compatibility with GYP. | 224 # The _run targets exist only for compatibility with GYP. |
225 group("${target_name}_run") { | 225 group("${target_name}_run") { |
226 testonly = true | 226 testonly = true |
227 deps = [ | 227 deps = [ |
228 ":${invoker.target_name}", | 228 ":${invoker.target_name}", |
229 ] | 229 ] |
230 } | 230 } |
231 } | 231 } |
232 } | 232 } |
OLD | NEW |