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

Unified Diff: google_apis/gaia/fake_gaia.h

Issue 1004753004: cros: Port SAML support to webview sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle loadabort to fix test Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/webview_saml_injected.js ('k') | google_apis/gaia/fake_gaia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/fake_gaia.h
diff --git a/google_apis/gaia/fake_gaia.h b/google_apis/gaia/fake_gaia.h
index ec9ee169258f1496e8601f401852f0570fd09425..b66c02fa8593e531a785bfafee24f9d3eaae86e8 100644
--- a/google_apis/gaia/fake_gaia.h
+++ b/google_apis/gaia/fake_gaia.h
@@ -113,6 +113,10 @@ class FakeGaia {
// to the associated redirect endpoint.
void RegisterSamlUser(const std::string& account_id, const GURL& saml_idp);
+ void set_issue_oauth_code_cookie(bool value) {
+ issue_oauth_code_cookie_ = value;
+ }
+
// Extracts the parameter named |key| from |query| and places it in |value|.
// Returns false if no parameter is found.
static bool GetQueryParameter(const std::string& query,
@@ -135,6 +139,9 @@ class FakeGaia {
net::test_server::BasicHttpResponse* http_response,
const std::string& email) const;
+ void SetOAuthCodeCookie(
+ net::test_server::BasicHttpResponse* http_response) const;
+
// Formats a JSON response with the data in |response_dict|.
void FormatJSONResponse(const base::DictionaryValue& response_dict,
net::test_server::BasicHttpResponse* http_response);
@@ -192,6 +199,7 @@ class FakeGaia {
RequestHandlerMap request_handlers_;
std::string service_login_response_;
SamlAccountIdpMap saml_account_idp_map_;
+ bool issue_oauth_code_cookie_;
DISALLOW_COPY_AND_ASSIGN(FakeGaia);
};
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/webview_saml_injected.js ('k') | google_apis/gaia/fake_gaia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698