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

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

Issue 1054403002: Basic tests for new webview based signin flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove flaky back-button check Created 5 years, 8 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | google_apis/gaia/fake_gaia.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 net::test_server::BasicHttpResponse* http_response)> 151 net::test_server::BasicHttpResponse* http_response)>
152 HttpRequestHandlerCallback; 152 HttpRequestHandlerCallback;
153 typedef std::map<std::string, HttpRequestHandlerCallback> RequestHandlerMap; 153 typedef std::map<std::string, HttpRequestHandlerCallback> RequestHandlerMap;
154 154
155 // HTTP request handlers. 155 // HTTP request handlers.
156 void HandleProgramaticAuth( 156 void HandleProgramaticAuth(
157 const net::test_server::HttpRequest& request, 157 const net::test_server::HttpRequest& request,
158 net::test_server::BasicHttpResponse* http_response); 158 net::test_server::BasicHttpResponse* http_response);
159 void HandleServiceLogin(const net::test_server::HttpRequest& request, 159 void HandleServiceLogin(const net::test_server::HttpRequest& request,
160 net::test_server::BasicHttpResponse* http_response); 160 net::test_server::BasicHttpResponse* http_response);
161 void HandleEmbeddedSetupChromeos(
162 const net::test_server::HttpRequest& request,
163 net::test_server::BasicHttpResponse* http_response);
161 void HandleOAuthLogin(const net::test_server::HttpRequest& request, 164 void HandleOAuthLogin(const net::test_server::HttpRequest& request,
162 net::test_server::BasicHttpResponse* http_response); 165 net::test_server::BasicHttpResponse* http_response);
163 void HandleServiceLoginAuth( 166 void HandleServiceLoginAuth(
164 const net::test_server::HttpRequest& request, 167 const net::test_server::HttpRequest& request,
165 net::test_server::BasicHttpResponse* http_response); 168 net::test_server::BasicHttpResponse* http_response);
169 void HandleEmbeddedLookupAccountLookup(
170 const net::test_server::HttpRequest& request,
171 net::test_server::BasicHttpResponse* http_response);
172 void HandleEmbeddedSigninChallenge(
173 const net::test_server::HttpRequest& request,
174 net::test_server::BasicHttpResponse* http_response);
166 void HandleSSO(const net::test_server::HttpRequest& request, 175 void HandleSSO(const net::test_server::HttpRequest& request,
167 net::test_server::BasicHttpResponse* http_response); 176 net::test_server::BasicHttpResponse* http_response);
168 void HandleAuthToken(const net::test_server::HttpRequest& request, 177 void HandleAuthToken(const net::test_server::HttpRequest& request,
169 net::test_server::BasicHttpResponse* http_response); 178 net::test_server::BasicHttpResponse* http_response);
170 void HandleTokenInfo(const net::test_server::HttpRequest& request, 179 void HandleTokenInfo(const net::test_server::HttpRequest& request,
171 net::test_server::BasicHttpResponse* http_response); 180 net::test_server::BasicHttpResponse* http_response);
172 void HandleIssueToken(const net::test_server::HttpRequest& request, 181 void HandleIssueToken(const net::test_server::HttpRequest& request,
173 net::test_server::BasicHttpResponse* http_response); 182 net::test_server::BasicHttpResponse* http_response);
174 void HandleListAccounts(const net::test_server::HttpRequest& request, 183 void HandleListAccounts(const net::test_server::HttpRequest& request,
175 net::test_server::BasicHttpResponse* http_response); 184 net::test_server::BasicHttpResponse* http_response);
(...skipping 15 matching lines...) Expand all
191 200
192 // Returns the access token identified by |access_token| or NULL if not found. 201 // Returns the access token identified by |access_token| or NULL if not found.
193 const AccessTokenInfo* GetAccessTokenInfo( 202 const AccessTokenInfo* GetAccessTokenInfo(
194 const std::string& access_token) const; 203 const std::string& access_token) const;
195 204
196 MergeSessionParams merge_session_params_; 205 MergeSessionParams merge_session_params_;
197 EmailToGaiaIdMap email_to_gaia_id_map_; 206 EmailToGaiaIdMap email_to_gaia_id_map_;
198 AccessTokenInfoMap access_token_info_map_; 207 AccessTokenInfoMap access_token_info_map_;
199 RequestHandlerMap request_handlers_; 208 RequestHandlerMap request_handlers_;
200 std::string service_login_response_; 209 std::string service_login_response_;
210 std::string embedded_setup_chromeos_response_;
201 SamlAccountIdpMap saml_account_idp_map_; 211 SamlAccountIdpMap saml_account_idp_map_;
202 bool issue_oauth_code_cookie_; 212 bool issue_oauth_code_cookie_;
203 213
204 DISALLOW_COPY_AND_ASSIGN(FakeGaia); 214 DISALLOW_COPY_AND_ASSIGN(FakeGaia);
205 }; 215 };
206 216
207 #endif // GOOGLE_APIS_GAIA_FAKE_GAIA_H_ 217 #endif // GOOGLE_APIS_GAIA_FAKE_GAIA_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | google_apis/gaia/fake_gaia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698