| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 "gaia/gaia_switches.cc", | 94 "gaia/gaia_switches.cc", |
| 95 "gaia/gaia_switches.h", | 95 "gaia/gaia_switches.h", |
| 96 "gaia/gaia_urls.cc", | 96 "gaia/gaia_urls.cc", |
| 97 "gaia/gaia_urls.h", | 97 "gaia/gaia_urls.h", |
| 98 "gaia/google_service_auth_error.cc", | 98 "gaia/google_service_auth_error.cc", |
| 99 "gaia/google_service_auth_error.h", | 99 "gaia/google_service_auth_error.h", |
| 100 "gaia/identity_provider.cc", | 100 "gaia/identity_provider.cc", |
| 101 "gaia/identity_provider.h", | 101 "gaia/identity_provider.h", |
| 102 "gaia/merge_session_helper.cc", | 102 "gaia/merge_session_helper.cc", |
| 103 "gaia/merge_session_helper.h", | 103 "gaia/merge_session_helper.h", |
| 104 "gaia/oauth_request_signer.cc", | |
| 105 "gaia/oauth_request_signer.h", | |
| 106 "gaia/oauth2_access_token_consumer.h", | 104 "gaia/oauth2_access_token_consumer.h", |
| 107 "gaia/oauth2_access_token_fetcher.cc", | 105 "gaia/oauth2_access_token_fetcher.cc", |
| 108 "gaia/oauth2_access_token_fetcher.h", | 106 "gaia/oauth2_access_token_fetcher.h", |
| 109 "gaia/oauth2_access_token_fetcher_impl.cc", | 107 "gaia/oauth2_access_token_fetcher_impl.cc", |
| 110 "gaia/oauth2_access_token_fetcher_impl.h", | 108 "gaia/oauth2_access_token_fetcher_impl.h", |
| 111 "gaia/oauth2_api_call_flow.cc", | 109 "gaia/oauth2_api_call_flow.cc", |
| 112 "gaia/oauth2_api_call_flow.h", | 110 "gaia/oauth2_api_call_flow.h", |
| 113 "gaia/oauth2_mint_token_flow.cc", | 111 "gaia/oauth2_mint_token_flow.cc", |
| 114 "gaia/oauth2_mint_token_flow.h", | 112 "gaia/oauth2_mint_token_flow.h", |
| 115 "gaia/oauth2_token_service.cc", | 113 "gaia/oauth2_token_service.cc", |
| 116 "gaia/oauth2_token_service.h", | 114 "gaia/oauth2_token_service.h", |
| 117 "gaia/oauth2_token_service_request.cc", | 115 "gaia/oauth2_token_service_request.cc", |
| 118 "gaia/oauth2_token_service_request.h", | 116 "gaia/oauth2_token_service_request.h", |
| 117 "gaia/oauth_request_signer.cc", |
| 118 "gaia/oauth_request_signer.h", |
| 119 "gaia/ubertoken_fetcher.cc", | 119 "gaia/ubertoken_fetcher.cc", |
| 120 "gaia/ubertoken_fetcher.h", | 120 "gaia/ubertoken_fetcher.h", |
| 121 "google_api_keys.cc", | 121 "google_api_keys.cc", |
| 122 "google_api_keys.h", | 122 "google_api_keys.h", |
| 123 ] | 123 ] |
| 124 | 124 |
| 125 if (is_win) { | 125 if (is_win) { |
| 126 cflags = [ "/wd4267" ] # size_t -> int | 126 cflags = [ "/wd4267" ] # size_t -> int |
| 127 } | 127 } |
| 128 | 128 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 if (!is_win || link_chrome_on_windows) { | 199 if (!is_win || link_chrome_on_windows) { |
| 200 test("google_apis_unittest") { | 200 test("google_apis_unittest") { |
| 201 sources = [ | 201 sources = [ |
| 202 "google_api_keys_unittest.cc", | |
| 203 "gaia/gaia_auth_fetcher_unittest.cc", | 202 "gaia/gaia_auth_fetcher_unittest.cc", |
| 204 "gaia/gaia_auth_util_unittest.cc", | 203 "gaia/gaia_auth_util_unittest.cc", |
| 205 "gaia/gaia_oauth_client_unittest.cc", | 204 "gaia/gaia_oauth_client_unittest.cc", |
| 206 "gaia/google_service_auth_error_unittest.cc", | 205 "gaia/google_service_auth_error_unittest.cc", |
| 207 "gaia/merge_session_helper_unittest.cc", | 206 "gaia/merge_session_helper_unittest.cc", |
| 208 "gaia/oauth_request_signer_unittest.cc", | |
| 209 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", | 207 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", |
| 210 "gaia/oauth2_api_call_flow_unittest.cc", | 208 "gaia/oauth2_api_call_flow_unittest.cc", |
| 211 "gaia/oauth2_mint_token_flow_unittest.cc", | 209 "gaia/oauth2_mint_token_flow_unittest.cc", |
| 212 "gaia/oauth2_token_service_unittest.cc", | 210 "gaia/oauth2_token_service_unittest.cc", |
| 211 "gaia/oauth_request_signer_unittest.cc", |
| 213 "gaia/ubertoken_fetcher_unittest.cc", | 212 "gaia/ubertoken_fetcher_unittest.cc", |
| 213 "google_api_keys_unittest.cc", |
| 214 ] | 214 ] |
| 215 | 215 |
| 216 configs += [ ":key_defines" ] | 216 configs += [ ":key_defines" ] |
| 217 | 217 |
| 218 deps = [ | 218 deps = [ |
| 219 ":google_apis", | 219 ":google_apis", |
| 220 ":test_support", | 220 ":test_support", |
| 221 "//base", | 221 "//base", |
| 222 "//base/test:run_all_unittests", | 222 "//base/test:run_all_unittests", |
| 223 "//testing/gmock", | 223 "//testing/gmock", |
| 224 "//testing/gtest", | 224 "//testing/gtest", |
| 225 ] | 225 ] |
| 226 | 226 |
| 227 if (enable_extensions) { | 227 if (enable_extensions) { |
| 228 sources += [ | 228 sources += [ |
| 229 "drive/base_requests_server_unittest.cc", | 229 "drive/base_requests_server_unittest.cc", |
| 230 "drive/base_requests_unittest.cc", | 230 "drive/base_requests_unittest.cc", |
| 231 "drive/drive_api_parser_unittest.cc", | 231 "drive/drive_api_parser_unittest.cc", |
| 232 "drive/drive_api_requests_unittest.cc", | 232 "drive/drive_api_requests_unittest.cc", |
| 233 "drive/drive_api_url_generator_unittest.cc", | 233 "drive/drive_api_url_generator_unittest.cc", |
| 234 "drive/request_sender_unittest.cc", | 234 "drive/request_sender_unittest.cc", |
| 235 "drive/request_util_unittest.cc", | 235 "drive/request_util_unittest.cc", |
| 236 "drive/time_util_unittest.cc", | 236 "drive/time_util_unittest.cc", |
| 237 ] | 237 ] |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 } | 240 } |
| OLD | NEW |