Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: google_apis/gaia/fake_gaia.cc

Issue 2952903002: ChromeOS: Add support for Gaia v2 API to FakeGaia and screen handler. (Closed)
Patch Set: Disable v2 by default Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | google_apis/gaia/gaia_urls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698