Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm |
index 4137d7740c6192a682029b4cfd8f9a5539209433..00bfd891fc133c74ba0f044ee05386053071fe9e 100644 |
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm |
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm |
@@ -13,6 +13,8 @@ |
#include "chrome/browser/prefs/pref_service_syncable.h" |
#include "chrome/browser/profiles/avatar_menu.h" |
#include "chrome/browser/profiles/profile_info_cache.h" |
+#include "chrome/browser/signin/account_tracker_service_factory.h" |
+#include "chrome/browser/signin/fake_account_tracker_service.h" |
#include "chrome/browser/signin/fake_profile_oauth2_token_service.h" |
#include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" |
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
@@ -38,10 +40,16 @@ class ProfileChooserControllerTest : public CocoaProfileTest { |
CocoaProfileTest::SetUp(); |
ASSERT_TRUE(browser()->profile()); |
+ AccountTrackerServiceFactory::GetInstance()->SetTestingFactory( |
+ browser()->profile(), FakeAccountTrackerService::Build); |
+ |
TestingProfile::TestingFactories factories; |
factories.push_back( |
std::make_pair(ProfileOAuth2TokenServiceFactory::GetInstance(), |
BuildFakeProfileOAuth2TokenService)); |
+ factories.push_back( |
+ std::make_pair(AccountTrackerServiceFactory::GetInstance(), |
+ FakeAccountTrackerService::Build)); |
testing_profile_manager()-> |
CreateTestingProfile("test1", scoped_ptr<PrefServiceSyncable>(), |
base::ASCIIToUTF16("Test 1"), 0, std::string(), |