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

Unified Diff: chrome/browser/chromeos/login/online_attempt_unittest.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/online_attempt_unittest.cc
diff --git a/chrome/browser/chromeos/login/online_attempt_unittest.cc b/chrome/browser/chromeos/login/online_attempt_unittest.cc
index 0cdd9e9979363855ea12728d4be6426b69451e04..02620ea36afe541ade64699c7db8ffa5cccc8eb8 100644
--- a/chrome/browser/chromeos/login/online_attempt_unittest.cc
+++ b/chrome/browser/chromeos/login/online_attempt_unittest.cc
@@ -35,7 +35,7 @@ class OnlineAttemptTest : public testing::Test {
OnlineAttemptTest()
: message_loop_(MessageLoop::TYPE_UI),
ui_thread_(BrowserThread::UI, &message_loop_),
- state_("", "", "", "", "", User::USER_TYPE_REGULAR, false),
+ state_(UserCredentials(), "", "", "", User::USER_TYPE_REGULAR, false),
resolver_(new MockAuthAttemptStateResolver) {
}
@@ -168,7 +168,7 @@ TEST_F(OnlineAttemptTest, HostedLoginRejected) {
// This is how we inject fake URLFetcher objects, with a factory.
MockURLFetcherFactory<HostedFetcher> factory;
- TestAttemptState local_state("", "", "", "", "",
+ TestAttemptState local_state(UserCredentials(), "", "", "",
User::USER_TYPE_REGULAR, true);
attempt_.reset(new OnlineAttempt(&local_state, resolver_.get()));
attempt_->Initiate(&profile);
@@ -193,7 +193,7 @@ TEST_F(OnlineAttemptTest, FullLogin) {
// This is how we inject fake URLFetcher objects, with a factory.
MockURLFetcherFactory<SuccessFetcher> factory;
- TestAttemptState local_state("", "", "", "", "",
+ TestAttemptState local_state(UserCredentials(), "", "", "",
User::USER_TYPE_REGULAR, true);
attempt_.reset(new OnlineAttempt(&local_state, resolver_.get()));
attempt_->Initiate(&profile);
« no previous file with comments | « chrome/browser/chromeos/login/online_attempt_host.cc ('k') | chrome/browser/chromeos/login/parallel_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698