summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc')
-rw-r--r--chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc b/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
index 92fd14d..db05b3c 100644
--- a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
+++ b/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
@@ -276,7 +276,7 @@ class SyncSetupHandlerTest : public testing::Test {
SigninManagerFactory::GetForProfile(profile_.get()));
std::string username = GetTestUser();
if (!username.empty())
- mock_signin_->SetAuthenticatedUsername(username);
+ mock_signin_->SetAuthenticatedAccountInfo(username, username);
mock_pss_ = static_cast<ProfileSyncServiceMock*>(
ProfileSyncServiceFactory::GetInstance()->SetTestingFactoryAndUse(
@@ -865,7 +865,7 @@ TEST_F(SyncSetupHandlerTest, ShowSigninOnAuthError) {
GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS);
SetupInitializedProfileSyncService();
- mock_signin_->SetAuthenticatedUsername(kTestUser);
+ mock_signin_->SetAuthenticatedAccountInfo(kTestUser, kTestUser);
FakeAuthStatusProvider provider(
SigninErrorControllerFactory::GetForProfile(profile_.get()));
provider.SetAuthError(kTestUser, kTestUser, error_);