OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 # You can set the variable 'use_official_google_api_keys' to true | 9 # You can set the variable 'use_official_google_api_keys' to true |
10 # to use the Google-internal file containing official API keys | 10 # to use the Google-internal file containing official API keys |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 "drive/request_sender.cc", | 166 "drive/request_sender.cc", |
167 "drive/request_sender.h", | 167 "drive/request_sender.h", |
168 "drive/request_util.cc", | 168 "drive/request_util.cc", |
169 "drive/request_util.h", | 169 "drive/request_util.h", |
170 "drive/task_util.cc", | 170 "drive/task_util.cc", |
171 "drive/task_util.h", | 171 "drive/task_util.h", |
172 "drive/time_util.cc", | 172 "drive/time_util.cc", |
173 "drive/time_util.h", | 173 "drive/time_util.h", |
174 ] | 174 ] |
175 } | 175 } |
| 176 |
| 177 if (is_mac || is_ios) { |
| 178 set_sources_assignment_filter([]) |
| 179 sources += [ |
| 180 "google_api_keys_mac.h", |
| 181 "google_api_keys_mac.mm", |
| 182 ] |
| 183 set_sources_assignment_filter(sources_assignment_filter) |
| 184 |
| 185 libs = [ "Foundation.framework" ] |
| 186 } |
176 } | 187 } |
177 } | 188 } |
178 | 189 |
179 google_apis_tmpl("google_apis") { | 190 google_apis_tmpl("google_apis") { |
180 deps = [ | 191 deps = [ |
181 "//net", | 192 "//net", |
182 ] | 193 ] |
183 } | 194 } |
184 | 195 |
185 static_library("test_support") { | 196 static_library("test_support") { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 "gaia/gaia_oauth_client_unittest.cc", | 234 "gaia/gaia_oauth_client_unittest.cc", |
224 "gaia/google_service_auth_error_unittest.cc", | 235 "gaia/google_service_auth_error_unittest.cc", |
225 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", | 236 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", |
226 "gaia/oauth2_api_call_flow_unittest.cc", | 237 "gaia/oauth2_api_call_flow_unittest.cc", |
227 "gaia/oauth2_mint_token_flow_unittest.cc", | 238 "gaia/oauth2_mint_token_flow_unittest.cc", |
228 "gaia/oauth2_token_service_request_unittest.cc", | 239 "gaia/oauth2_token_service_request_unittest.cc", |
229 "gaia/oauth2_token_service_unittest.cc", | 240 "gaia/oauth2_token_service_unittest.cc", |
230 "gaia/oauth_request_signer_unittest.cc", | 241 "gaia/oauth_request_signer_unittest.cc", |
231 "gaia/ubertoken_fetcher_unittest.cc", | 242 "gaia/ubertoken_fetcher_unittest.cc", |
232 "google_api_keys_unittest.cc", | 243 "google_api_keys_unittest.cc", |
| 244 "google_api_keys_unittest.h", |
233 ] | 245 ] |
234 | 246 |
235 data = [ | 247 data = [ |
236 "test/", | 248 "test/", |
237 ] | 249 ] |
238 | 250 |
239 configs += [ ":key_defines" ] | 251 configs += [ ":key_defines" ] |
240 | 252 |
241 deps = [ | 253 deps = [ |
242 ":google_apis", | 254 ":google_apis", |
(...skipping 10 matching lines...) Expand all Loading... |
253 "drive/base_requests_unittest.cc", | 265 "drive/base_requests_unittest.cc", |
254 "drive/drive_api_parser_unittest.cc", | 266 "drive/drive_api_parser_unittest.cc", |
255 "drive/drive_api_requests_unittest.cc", | 267 "drive/drive_api_requests_unittest.cc", |
256 "drive/drive_api_url_generator_unittest.cc", | 268 "drive/drive_api_url_generator_unittest.cc", |
257 "drive/files_list_request_runner_unittest.cc", | 269 "drive/files_list_request_runner_unittest.cc", |
258 "drive/request_sender_unittest.cc", | 270 "drive/request_sender_unittest.cc", |
259 "drive/request_util_unittest.cc", | 271 "drive/request_util_unittest.cc", |
260 "drive/time_util_unittest.cc", | 272 "drive/time_util_unittest.cc", |
261 ] | 273 ] |
262 } | 274 } |
| 275 |
| 276 if (is_mac || is_ios) { |
| 277 set_sources_assignment_filter([]) |
| 278 sources += [ "google_api_keys_mac_unittest.mm" ] |
| 279 set_sources_assignment_filter(sources_assignment_filter) |
| 280 |
| 281 deps += [ "//third_party/ocmock" ] |
| 282 } |
263 } | 283 } |
OLD | NEW |