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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc

Issue 479353003: Add IsAuthenticated() method to SigninManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 6 years, 4 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/policy/cloud/user_policy_signin_service_unittest.cc
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
index 51db158ec4b2c862ca6fed00f609a59f05ebcd4e..602b1d4ebd6ede32e8fcc6734529683077d2c8b4 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
@@ -212,7 +212,7 @@ class UserPolicySigninServiceTest : public testing::Test {
virtual void AddProfile() {
// For this test, the user should not be signed in yet.
- DCHECK(signin_manager_->GetAuthenticatedUsername().empty());
+ DCHECK(!signin_manager_->IsAuthenticated());
// Initializing UserPolicySigninService while the user is not signed in
// should result in the store being cleared to remove any lingering policy.
@@ -394,8 +394,8 @@ class UserPolicySigninServiceSignedInTest : public UserPolicySigninServiceTest {
TEST_F(UserPolicySigninServiceTest, InitWhileSignedOut) {
// Make sure user is not signed in.
- ASSERT_TRUE(SigninManagerFactory::GetForProfile(profile_.get())->
- GetAuthenticatedUsername().empty());
+ ASSERT_FALSE(SigninManagerFactory::GetForProfile(profile_.get())->
+ IsAuthenticated());
// UserCloudPolicyManager should not be initialized.
ASSERT_FALSE(manager_->core()->service());
« no previous file with comments | « chrome/browser/metrics/signin_status_metrics_provider.cc ('k') | chrome/browser/profiles/gaia_info_update_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698