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

Side by Side Diff: testing/test.gni

Issue 2441793002: Use "Organization Identifier" as prefix for gtest CFBundleIdentifier. (Closed)
Patch Set: Fix ios_chrome_unittests Created 4 years, 1 month 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
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 # See above call. 242 # See above call.
243 set_sources_assignment_filter([]) 243 set_sources_assignment_filter([])
244 forward_variables_from(invoker, "*", [ "testonly" ]) 244 forward_variables_from(invoker, "*", [ "testonly" ])
245 245
246 # Provide sensible defaults in case invoker did not define any of those 246 # Provide sensible defaults in case invoker did not define any of those
247 # required variables. 247 # required variables.
248 if (!defined(info_plist) && !defined(info_plist_target)) { 248 if (!defined(info_plist) && !defined(info_plist_target)) {
249 info_plist = "//testing/gtest_ios/unittest-Info.plist" 249 info_plist = "//testing/gtest_ios/unittest-Info.plist"
250 } 250 }
251 251
252 _bundle_id_suffix = target_name
253 if (ios_automatically_manage_certs) {
254 # Use the same bundle identifier for all unit tests when managing
255 # certificates automatically as the number of free certs is limited.
256 _bundle_id_suffix = "generic-unit-test"
257 }
252 if (!defined(extra_substitutions)) { 258 if (!defined(extra_substitutions)) {
253 extra_substitutions = [] 259 extra_substitutions = []
254 } 260 }
255 extra_substitutions += [ "BUNDLE_ID_TEST_NAME=$target_name" ] 261 extra_substitutions += [ "GTEST_BUNDLE_ID_SUFFIX=$_bundle_id_suffix" ]
256 262
257 if (!defined(deps)) { 263 if (!defined(deps)) {
258 deps = [] 264 deps = []
259 } 265 }
260 deps += [ 266 deps += [
261 # All shared libraries must have the sanitizer deps to properly link in 267 # All shared libraries must have the sanitizer deps to properly link in
262 # asan mode (this target will be empty in other cases). 268 # asan mode (this target will be empty in other cases).
263 "//build/config/sanitizers:deps", 269 "//build/config/sanitizers:deps",
264 ] 270 ]
265 if (!defined(bundle_deps)) { 271 if (!defined(bundle_deps)) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 310 }
305 311
306 # Test defaults. 312 # Test defaults.
307 set_defaults("test") { 313 set_defaults("test") {
308 if (is_android) { 314 if (is_android) {
309 configs = default_shared_library_configs 315 configs = default_shared_library_configs
310 } else { 316 } else {
311 configs = default_executable_configs 317 configs = default_executable_configs
312 } 318 }
313 } 319 }
OLDNEW
« testing/gtest_ios/unittest-Info.plist ('K') | « testing/gtest_ios/unittest-Info.plist ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698