| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 if (enable_extensions) { | 189 if (enable_extensions) { |
| 190 sources += [ | 190 sources += [ |
| 191 "drive/dummy_auth_service.cc", | 191 "drive/dummy_auth_service.cc", |
| 192 "drive/dummy_auth_service.h", | 192 "drive/dummy_auth_service.h", |
| 193 "drive/test_util.cc", | 193 "drive/test_util.cc", |
| 194 "drive/test_util.h", | 194 "drive/test_util.h", |
| 195 ] | 195 ] |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 | 198 |
| 199 test("google_apis_unittest") { | 199 if (!is_win || link_chrome_on_windows) { |
| 200 sources = [ | 200 test("google_apis_unittest") { |
| 201 "google_api_keys_unittest.cc", | 201 sources = [ |
| 202 "gaia/gaia_auth_fetcher_unittest.cc", | 202 "google_api_keys_unittest.cc", |
| 203 "gaia/gaia_auth_util_unittest.cc", | 203 "gaia/gaia_auth_fetcher_unittest.cc", |
| 204 "gaia/gaia_oauth_client_unittest.cc", | 204 "gaia/gaia_auth_util_unittest.cc", |
| 205 "gaia/google_service_auth_error_unittest.cc", | 205 "gaia/gaia_oauth_client_unittest.cc", |
| 206 "gaia/merge_session_helper_unittest.cc", | 206 "gaia/google_service_auth_error_unittest.cc", |
| 207 "gaia/oauth_request_signer_unittest.cc", | 207 "gaia/merge_session_helper_unittest.cc", |
| 208 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", | 208 "gaia/oauth_request_signer_unittest.cc", |
| 209 "gaia/oauth2_api_call_flow_unittest.cc", | 209 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", |
| 210 "gaia/oauth2_mint_token_flow_unittest.cc", | 210 "gaia/oauth2_api_call_flow_unittest.cc", |
| 211 "gaia/oauth2_token_service_unittest.cc", | 211 "gaia/oauth2_mint_token_flow_unittest.cc", |
| 212 "gaia/ubertoken_fetcher_unittest.cc", | 212 "gaia/oauth2_token_service_unittest.cc", |
| 213 ] | 213 "gaia/ubertoken_fetcher_unittest.cc", |
| 214 ] |
| 214 | 215 |
| 215 configs += [ ":key_defines" ] | 216 configs += [ ":key_defines" ] |
| 216 | 217 |
| 217 deps = [ | 218 deps = [ |
| 218 ":google_apis", | 219 ":google_apis", |
| 219 ":test_support", | 220 ":test_support", |
| 220 "//base", | 221 "//base", |
| 221 "//base/test:run_all_unittests", | 222 "//base/test:run_all_unittests", |
| 222 "//testing/gmock", | 223 "//testing/gmock", |
| 223 "//testing/gtest", | 224 "//testing/gtest", |
| 224 ] | 225 ] |
| 225 | 226 |
| 226 if (enable_extensions) { | 227 if (enable_extensions) { |
| 227 sources += [ | 228 sources += [ |
| 228 "drive/base_requests_server_unittest.cc", | 229 "drive/base_requests_server_unittest.cc", |
| 229 "drive/base_requests_unittest.cc", | 230 "drive/base_requests_unittest.cc", |
| 230 "drive/drive_api_parser_unittest.cc", | 231 "drive/drive_api_parser_unittest.cc", |
| 231 "drive/drive_api_requests_unittest.cc", | 232 "drive/drive_api_requests_unittest.cc", |
| 232 "drive/drive_api_url_generator_unittest.cc", | 233 "drive/drive_api_url_generator_unittest.cc", |
| 233 "drive/request_sender_unittest.cc", | 234 "drive/request_sender_unittest.cc", |
| 234 "drive/request_util_unittest.cc", | 235 "drive/request_util_unittest.cc", |
| 235 "drive/time_util_unittest.cc", | 236 "drive/time_util_unittest.cc", |
| 236 ] | 237 ] |
| 238 } |
| 237 } | 239 } |
| 238 } | 240 } |
| OLD | NEW |