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 |
| 180 sources += [ |
| 181 "google_api_keys_mac.h", |
| 182 "google_api_keys_mac.mm", |
| 183 ] |
| 184 |
| 185 set_sources_assignment_filter(sources_assignment_filter) |
| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 "drive/base_requests_unittest.cc", | 264 "drive/base_requests_unittest.cc", |
254 "drive/drive_api_parser_unittest.cc", | 265 "drive/drive_api_parser_unittest.cc", |
255 "drive/drive_api_requests_unittest.cc", | 266 "drive/drive_api_requests_unittest.cc", |
256 "drive/drive_api_url_generator_unittest.cc", | 267 "drive/drive_api_url_generator_unittest.cc", |
257 "drive/files_list_request_runner_unittest.cc", | 268 "drive/files_list_request_runner_unittest.cc", |
258 "drive/request_sender_unittest.cc", | 269 "drive/request_sender_unittest.cc", |
259 "drive/request_util_unittest.cc", | 270 "drive/request_util_unittest.cc", |
260 "drive/time_util_unittest.cc", | 271 "drive/time_util_unittest.cc", |
261 ] | 272 ] |
262 } | 273 } |
| 274 |
| 275 if (is_mac || is_ios) { |
| 276 set_sources_assignment_filter([]) |
| 277 sources += [ "google_api_keys_mac_unittest.mm" ] |
| 278 set_sources_assignment_filter(sources_assignment_filter) |
| 279 |
| 280 deps += [ "//third_party/ocmock" ] |
| 281 } |
263 } | 282 } |
OLD | NEW |