Chromium Code Reviews| Index: google_apis/gaia/fake_gaia.cc |
| diff --git a/google_apis/gaia/fake_gaia.cc b/google_apis/gaia/fake_gaia.cc |
| index 7ba1c585f4d1cde1a527f9b502e20ac121478341..aba65a3af8234707b27c7baa6cd17b1400e16999 100644 |
| --- a/google_apis/gaia/fake_gaia.cc |
| +++ b/google_apis/gaia/fake_gaia.cc |
| @@ -142,6 +142,7 @@ FakeGaia::FakeGaia() { |
| FakeGaia::~FakeGaia() {} |
| void FakeGaia::SetFakeMergeSessionParams( |
| + const std::string& gaia_id, |
| const std::string& email, |
| const std::string& auth_sid_cookie, |
| const std::string& auth_lsid_cookie) { |
| @@ -155,6 +156,7 @@ void FakeGaia::SetFakeMergeSessionParams( |
| params.session_sid_cookie = kTestSessionSIDCookie; |
| params.session_lsid_cookie = kTestSessionLSIDCookie; |
| params.email = email; |
| + params.gaia_id = gaia_id; |
| SetMergeSessionParams(params); |
| } |
| @@ -432,7 +434,9 @@ void FakeGaia::HandleServiceLoginAuth(const HttpRequest& request, |
| http_response->set_code(net::HTTP_TEMPORARY_REDIRECT); |
| http_response->AddCustomHeader("Location", redirect_url); |
| http_response->AddCustomHeader("google-accounts-signin", |
|
bartfab (slow)
2014/10/17 09:54:56
This line is actually wrong - and was wrong before
Roger Tawa OOO till Jul 10th
2014/10/20 16:04:01
Done.
|
| - base::StringPrintf("email=\"%s\", sessionindex=0", email.c_str())); |
| + base::StringPrintf( |
| + "email=\"%s\", obfuscatedid=\"%s\", sessionindex=0", |
| + email.c_str(), merge_session_params_.gaia_id.c_str())); |
|
bartfab (slow)
2014/10/17 09:54:56
We have tests that set up multiple accounts and ve
Roger Tawa OOO till Jul 10th
2014/10/20 16:04:01
Not sure you can do that, or that it's needed. To
|
| } |
| void FakeGaia::HandleSSO(const HttpRequest& request, |