OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "google_apis/gaia/fake_gaia.h" | 5 #include "google_apis/gaia/fake_gaia.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 // Handles /o/oauth2/programmatic_auth GAIA call. | 239 // Handles /o/oauth2/programmatic_auth GAIA call. |
240 REGISTER_RESPONSE_HANDLER( | 240 REGISTER_RESPONSE_HANDLER( |
241 gaia_urls->client_login_to_oauth2_url(), HandleProgramaticAuth); | 241 gaia_urls->client_login_to_oauth2_url(), HandleProgramaticAuth); |
242 | 242 |
243 // Handles /ServiceLogin GAIA call. | 243 // Handles /ServiceLogin GAIA call. |
244 REGISTER_RESPONSE_HANDLER( | 244 REGISTER_RESPONSE_HANDLER( |
245 gaia_urls->service_login_url(), HandleServiceLogin); | 245 gaia_urls->service_login_url(), HandleServiceLogin); |
246 | 246 |
247 // Handles /embedded/setup/chromeos GAIA call. | 247 // Handles /embedded/setup/chromeos GAIA call. |
248 REGISTER_RESPONSE_HANDLER(gaia_urls->embedded_setup_chromeos_url(1), | 248 REGISTER_RESPONSE_HANDLER(gaia_urls->embedded_setup_chromeos_url(), |
249 HandleEmbeddedSetupChromeos); | |
250 // Handles /embedded/setup/v2/chromeos GAIA call. | |
251 REGISTER_RESPONSE_HANDLER(gaia_urls->embedded_setup_chromeos_url(2), | |
252 HandleEmbeddedSetupChromeos); | 249 HandleEmbeddedSetupChromeos); |
253 | 250 |
254 // Handles /OAuthLogin GAIA call. | 251 // Handles /OAuthLogin GAIA call. |
255 REGISTER_RESPONSE_HANDLER( | 252 REGISTER_RESPONSE_HANDLER( |
256 gaia_urls->oauth1_login_url(), HandleOAuthLogin); | 253 gaia_urls->oauth1_login_url(), HandleOAuthLogin); |
257 | 254 |
258 // Handles /ServiceLoginAuth GAIA call. | 255 // Handles /ServiceLoginAuth GAIA call. |
259 REGISTER_RESPONSE_HANDLER( | 256 REGISTER_RESPONSE_HANDLER( |
260 gaia_urls->service_login_auth_url(), HandleServiceLoginAuth); | 257 gaia_urls->service_login_auth_url(), HandleServiceLoginAuth); |
261 | 258 |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 http_response->AddCustomHeader("Google-Accounts-SAML", "Start"); | 847 http_response->AddCustomHeader("Google-Accounts-SAML", "Start"); |
851 http_response->AddCustomHeader("Location", redirect_url); | 848 http_response->AddCustomHeader("Location", redirect_url); |
852 } | 849 } |
853 | 850 |
854 void FakeGaia::HandleGetCheckConnectionInfo( | 851 void FakeGaia::HandleGetCheckConnectionInfo( |
855 const net::test_server::HttpRequest& request, | 852 const net::test_server::HttpRequest& request, |
856 net::test_server::BasicHttpResponse* http_response) { | 853 net::test_server::BasicHttpResponse* http_response) { |
857 base::ListValue connection_list; | 854 base::ListValue connection_list; |
858 FormatJSONResponse(connection_list, http_response); | 855 FormatJSONResponse(connection_list, http_response); |
859 } | 856 } |
OLD | NEW |