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

Unified Diff: chrome/browser/chromeos/login/login_utils_browsertest.cc

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 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
Index: chrome/browser/chromeos/login/login_utils_browsertest.cc
diff --git a/chrome/browser/chromeos/login/login_utils_browsertest.cc b/chrome/browser/chromeos/login/login_utils_browsertest.cc
index abfed5ea008ad8457909c7d38387661198753bd4..8870cbc8273c22049757c03375c64ece1266cdc2 100644
--- a/chrome/browser/chromeos/login/login_utils_browsertest.cc
+++ b/chrome/browser/chromeos/login/login_utils_browsertest.cc
@@ -386,8 +386,7 @@ class LoginUtilsTest : public testing::Test,
FAIL() << "OnLoginFailure not expected";
}
- virtual void OnLoginSuccess(const std::string& username,
- const std::string& password,
+ virtual void OnLoginSuccess(const UserCredentials& credentials,
bool pending_requests,
bool using_oauth) OVERRIDE {
FAIL() << "OnLoginSuccess not expected";
@@ -416,15 +415,17 @@ class LoginUtilsTest : public testing::Test,
scoped_refptr<Authenticator> authenticator =
LoginUtils::Get()->CreateAuthenticator(this);
authenticator->CompleteLogin(ProfileManager::GetDefaultProfile(),
- username,
- "password");
+ UserCredentials(username,
+ "password",
+ ""));
const bool kUsingOAuth = true;
// Setting |kHasCookies| to false prevents ProfileAuthData::Transfer from
// waiting for an IO task before proceeding.
const bool kHasCookies = false;
- LoginUtils::Get()->PrepareProfile(username, std::string(), "password",
- kUsingOAuth, kHasCookies, this);
+ LoginUtils::Get()->PrepareProfile(
+ UserCredentials(username, "password", std::string()),
+ std::string(), kUsingOAuth, kHasCookies, this);
device_settings_test_helper.Flush();
RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698