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