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

Side by Side Diff: chrome/browser/signin/signin_tracker_unittest.cc

Issue 10020028: Merge 130722 - On ChromeOS, the user is always signed in and we should not (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/signin/signin_tracker.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/signin/signin_tracker.h" 5 #include "chrome/browser/signin/signin_tracker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Now mimic an auth error - this should cause us to fail (not waiting for 267 // Now mimic an auth error - this should cause us to fail (not waiting for
268 // auth, but still have no credentials). 268 // auth, but still have no credentials).
269 GoogleServiceAuthError error( 269 GoogleServiceAuthError error(
270 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS); 270 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS);
271 EXPECT_CALL(*mock_pss_, GetAuthError()).WillRepeatedly(ReturnRef(error)); 271 EXPECT_CALL(*mock_pss_, GetAuthError()).WillRepeatedly(ReturnRef(error));
272 EXPECT_CALL(*mock_pss_, waiting_for_auth()).WillOnce(Return(false)); 272 EXPECT_CALL(*mock_pss_, waiting_for_auth()).WillOnce(Return(false));
273 EXPECT_CALL(observer_, SigninFailed(error)); 273 EXPECT_CALL(observer_, SigninFailed(error));
274 tracker_->OnStateChanged(); 274 tracker_->OnStateChanged();
275 } 275 }
276 276
277 // TODO(kochi) Add tests with initial state != WATIING_FOR_GAIA_VALIDATION.
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_tracker.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698