Index: components/signin/core/browser/account_tracker_service_unittest.cc |
diff --git a/components/signin/core/browser/account_tracker_service_unittest.cc b/components/signin/core/browser/account_tracker_service_unittest.cc |
index 7a4d3277ca0aa5593dd5817e9f867883b866c312..64b83b0dcebcac5437623511826a349fc5709c0d 100644 |
--- a/components/signin/core/browser/account_tracker_service_unittest.cc |
+++ b/components/signin/core/browser/account_tracker_service_unittest.cc |
@@ -10,7 +10,6 @@ |
#include "base/prefs/testing_pref_service.h" |
#include "base/strings/stringprintf.h" |
#include "components/signin/core/browser/account_tracker_service.h" |
-#include "components/signin/core/common/signin_pref_names.h" |
#include "google_apis/gaia/fake_oauth2_token_service.h" |
#include "google_apis/gaia/gaia_oauth_client.h" |
#include "net/http/http_status_code.h" |
@@ -199,9 +198,6 @@ |
pref_service_.registry()->RegisterListPref( |
AccountTrackerService::kAccountInfoPref); |
- pref_service_.registry()->RegisterIntegerPref( |
- prefs::kAccountIdMigrationState, |
- AccountTrackerService::MIGRATION_NOT_STARTED); |
account_tracker_.reset(new AccountTrackerService()); |
account_tracker_->Initialize(fake_oauth2_token_service_.get(), |
@@ -509,21 +505,3 @@ |
tracker.Shutdown(); |
} |
} |
- |
-TEST_F(AccountTrackerServiceTest, SeedAccountInfo) { |
- std::vector<AccountTrackerService::AccountInfo> infos = |
- account_tracker()->GetAccounts(); |
- EXPECT_EQ(0u, infos.size()); |
- |
- const std::string gaia_id = AccountIdToGaiaId("alpha"); |
- const std::string email = AccountIdToEmail("alpha"); |
- const std::string account_id = |
- account_tracker()->PickAccountIdForAccount(gaia_id, email); |
- account_tracker()->SeedAccountInfo(gaia_id, email); |
- |
- infos = account_tracker()->GetAccounts(); |
- EXPECT_EQ(1u, infos.size()); |
- EXPECT_EQ(account_id, infos[0].account_id); |
- EXPECT_EQ(gaia_id, infos[0].gaia); |
- EXPECT_EQ(email, infos[0].email); |
-} |