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

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

Issue 473153002: Inline sign in extracts gaia id from HTTP header and seeds account tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one unit test, progress on second Created 6 years, 2 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 | Annotate | Revision Log
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 #ifndef GOOGLE_APIS_GAIA_FAKE_GAIA_H_ 5 #ifndef GOOGLE_APIS_GAIA_FAKE_GAIA_H_
6 #define GOOGLE_APIS_GAIA_FAKE_GAIA_H_ 6 #define GOOGLE_APIS_GAIA_FAKE_GAIA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Uber token response from /OAuthLogin call. 68 // Uber token response from /OAuthLogin call.
69 std::string gaia_uber_token; 69 std::string gaia_uber_token;
70 70
71 // Values of SID and LSID cookie generated from /MergeSession call. 71 // Values of SID and LSID cookie generated from /MergeSession call.
72 std::string session_sid_cookie; 72 std::string session_sid_cookie;
73 std::string session_lsid_cookie; 73 std::string session_lsid_cookie;
74 74
75 // The e-mail address returned by /ListAccounts. 75 // The e-mail address returned by /ListAccounts.
76 std::string email; 76 std::string email;
77
78 // The gaia_id address returned in GAIA headers.
bartfab (slow) 2014/10/17 09:54:56 Nit: s/gaia_id address/GAIA ID/
Roger Tawa OOO till Jul 10th 2014/10/20 16:04:01 Code removed.
79 std::string gaia_id;
77 }; 80 };
78 81
79 FakeGaia(); 82 FakeGaia();
80 virtual ~FakeGaia(); 83 virtual ~FakeGaia();
81 84
82 void SetFakeMergeSessionParams(const std::string& email, 85 void SetFakeMergeSessionParams(const std::string& gaia_id,
86 const std::string& email,
83 const std::string& auth_sid_cookie, 87 const std::string& auth_sid_cookie,
84 const std::string& auth_lsid_cookie); 88 const std::string& auth_lsid_cookie);
85 89
86 // Sets the initial value of tokens and cookies. 90 // Sets the initial value of tokens and cookies.
87 void SetMergeSessionParams(const MergeSessionParams& params); 91 void SetMergeSessionParams(const MergeSessionParams& params);
88 92
89 // Initializes HTTP request handlers. Should be called after switches 93 // Initializes HTTP request handlers. Should be called after switches
90 // for tweaking GaiaUrls are in place. 94 // for tweaking GaiaUrls are in place.
91 void Initialize(); 95 void Initialize();
92 96
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 MergeSessionParams merge_session_params_; 175 MergeSessionParams merge_session_params_;
172 AccessTokenInfoMap access_token_info_map_; 176 AccessTokenInfoMap access_token_info_map_;
173 RequestHandlerMap request_handlers_; 177 RequestHandlerMap request_handlers_;
174 std::string service_login_response_; 178 std::string service_login_response_;
175 SamlAccountIdpMap saml_account_idp_map_; 179 SamlAccountIdpMap saml_account_idp_map_;
176 180
177 DISALLOW_COPY_AND_ASSIGN(FakeGaia); 181 DISALLOW_COPY_AND_ASSIGN(FakeGaia);
178 }; 182 };
179 183
180 #endif // GOOGLE_APIS_GAIA_FAKE_GAIA_H_ 184 #endif // GOOGLE_APIS_GAIA_FAKE_GAIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698