OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//build/mac/tweak_info_plist.gni") | 5 import("//build/mac/tweak_info_plist.gni") |
| 6 import("//build/config/ios/ios_sdk.gni") |
6 import("//ios/build/chrome_build.gni") | 7 import("//ios/build/chrome_build.gni") |
7 import("//ios/public/provider/chrome/browser/build_config.gni") | 8 import("//ios/public/provider/chrome/browser/build_config.gni") |
8 import("//ios/third_party/earl_grey/ios_eg_test.gni") | 9 import("//ios/third_party/earl_grey/ios_eg_test.gni") |
9 | 10 |
10 # Template wrapping ios_eg_test, setting default values for EarlGrey test | 11 # Template wrapping ios_eg_test, setting default values for EarlGrey test |
11 # based on //ios/chrome/app:chrome. | 12 # based on //ios/chrome/app:chrome. |
12 # | 13 # |
13 # Arguments: | 14 # Arguments: |
14 # | 15 # |
15 # info_plist: | 16 # info_plist: |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ] | 124 ] |
124 if (!defined(bundle_deps)) { | 125 if (!defined(bundle_deps)) { |
125 bundle_deps = [] | 126 bundle_deps = [] |
126 } | 127 } |
127 bundle_deps += [ "//ios/chrome/app/resources" ] | 128 bundle_deps += [ "//ios/chrome/app/resources" ] |
128 | 129 |
129 if (!defined(extra_substitutions)) { | 130 if (!defined(extra_substitutions)) { |
130 extra_substitutions = [] | 131 extra_substitutions = [] |
131 } | 132 } |
132 extra_substitutions += [ | 133 extra_substitutions += [ |
133 "CHROMIUM_BUNDLE_ID=gtest.$target_name", | |
134 "CHROMIUM_HANDOFF_ID=$chromium_handoff_id", | 134 "CHROMIUM_HANDOFF_ID=$chromium_handoff_id", |
135 "CHROMIUM_SHORT_NAME=$target_name", | 135 "CHROMIUM_SHORT_NAME=$target_name", |
136 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme", | 136 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme", |
137 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme", | 137 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme", |
138 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme", | 138 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme", |
139 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme", | 139 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme", |
140 "EG_MAIN_APPLICATION_DELEGATE=$_eg_main_application_delegate", | 140 "EG_MAIN_APPLICATION_DELEGATE=$_eg_main_application_delegate", |
141 "SSOAUTH_URL_SCHEME=$url_ssoauth_scheme", | 141 "SSOAUTH_URL_SCHEME=$url_ssoauth_scheme", |
142 ] | 142 ] |
| 143 if (ios_automatically_manage_certs) { |
| 144 # Use the same bundle identifier for EarlGrey tests as for unit tests |
| 145 # when managing certificates as the number of free certs is limited. |
| 146 extra_substitutions += |
| 147 [ "CHROMIUM_BUNDLE_ID=gtest.${ios_generic_test_bundle_id_suffix}" ] |
| 148 } else { |
| 149 extra_substitutions += [ "CHROMIUM_BUNDLE_ID=gtest.$target_name" ] |
| 150 } |
143 } | 151 } |
144 } | 152 } |
OLD | NEW |