| 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(), | 248 REGISTER_RESPONSE_HANDLER(gaia_urls->embedded_setup_chromeos_url(1), |
| 249 HandleEmbeddedSetupChromeos); |
| 250 // Handles /embedded/setup/v2/chromeos GAIA call. |
| 251 REGISTER_RESPONSE_HANDLER(gaia_urls->embedded_setup_chromeos_url(2), |
| 249 HandleEmbeddedSetupChromeos); | 252 HandleEmbeddedSetupChromeos); |
| 250 | 253 |
| 251 // Handles /OAuthLogin GAIA call. | 254 // Handles /OAuthLogin GAIA call. |
| 252 REGISTER_RESPONSE_HANDLER( | 255 REGISTER_RESPONSE_HANDLER( |
| 253 gaia_urls->oauth1_login_url(), HandleOAuthLogin); | 256 gaia_urls->oauth1_login_url(), HandleOAuthLogin); |
| 254 | 257 |
| 255 // Handles /ServiceLoginAuth GAIA call. | 258 // Handles /ServiceLoginAuth GAIA call. |
| 256 REGISTER_RESPONSE_HANDLER( | 259 REGISTER_RESPONSE_HANDLER( |
| 257 gaia_urls->service_login_auth_url(), HandleServiceLoginAuth); | 260 gaia_urls->service_login_auth_url(), HandleServiceLoginAuth); |
| 258 | 261 |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 http_response->AddCustomHeader("Google-Accounts-SAML", "Start"); | 850 http_response->AddCustomHeader("Google-Accounts-SAML", "Start"); |
| 848 http_response->AddCustomHeader("Location", redirect_url); | 851 http_response->AddCustomHeader("Location", redirect_url); |
| 849 } | 852 } |
| 850 | 853 |
| 851 void FakeGaia::HandleGetCheckConnectionInfo( | 854 void FakeGaia::HandleGetCheckConnectionInfo( |
| 852 const net::test_server::HttpRequest& request, | 855 const net::test_server::HttpRequest& request, |
| 853 net::test_server::BasicHttpResponse* http_response) { | 856 net::test_server::BasicHttpResponse* http_response) { |
| 854 base::ListValue connection_list; | 857 base::ListValue connection_list; |
| 855 FormatJSONResponse(connection_list, http_response); | 858 FormatJSONResponse(connection_list, http_response); |
| 856 } | 859 } |
| OLD | NEW |