| Index: chrome/browser/sync/profile_sync_service_unittest.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
|
| index c86f5b30643903931b952a0c4139a802d1c53839..2b870fe7ecbefe596e3b31d2b4c70ee72bd11d10 100644
|
| --- a/chrome/browser/sync/profile_sync_service_unittest.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_unittest.cc
|
| @@ -21,6 +21,7 @@
|
| #include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "chrome/browser/sync/glue/sync_backend_host_mock.h"
|
| #include "chrome/browser/sync/profile_sync_components_factory_mock.h"
|
| +#include "chrome/browser/sync/profile_sync_service.h"
|
| #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -37,9 +38,11 @@
|
| #include "components/signin/core/browser/signin_manager.h"
|
| #include "components/signin/core/browser/signin_manager.h"
|
| #include "components/sync_driver/data_type_manager.h"
|
| +#include "components/sync_driver/data_type_manager_observer.h"
|
| #include "components/sync_driver/fake_data_type_controller.h"
|
| #include "components/sync_driver/pref_names.h"
|
| #include "components/sync_driver/sync_prefs.h"
|
| +#include "components/sync_driver/sync_service_observer.h"
|
| #include "components/version_info/version_info_values.h"
|
| #include "content/public/test/test_browser_thread_bundle.h"
|
| #include "google_apis/gaia/gaia_constants.h"
|
| @@ -239,7 +242,7 @@ class ProfileSyncServiceTest : public ::testing::Test {
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile_);
|
| components_factory_ = new ProfileSyncComponentsFactoryMock();
|
| service_.reset(new ProfileSyncService(
|
| - scoped_ptr<ProfileSyncComponentsFactory>(components_factory_),
|
| + scoped_ptr<sync_driver::SyncApiComponentFactory>(components_factory_),
|
| profile_,
|
| make_scoped_ptr(new SupervisedUserSigninManagerWrapper(profile_,
|
| signin)),
|
| @@ -296,21 +299,21 @@ class ProfileSyncServiceTest : public ::testing::Test {
|
| }
|
|
|
| void ExpectSyncBackendHostCreation(int times) {
|
| - EXPECT_CALL(*components_factory_, CreateSyncBackendHost(_, _, _, _, _))
|
| + EXPECT_CALL(*components_factory_, CreateSyncBackendHost(_, _, _, _))
|
| .Times(times)
|
| .WillRepeatedly(ReturnNewSyncBackendHostMock());
|
| }
|
|
|
| void ExpectSyncBackendHostCreationCollectDeleteDir(
|
| int times, std::vector<bool> *delete_dir_param) {
|
| - EXPECT_CALL(*components_factory_, CreateSyncBackendHost(_, _, _, _, _))
|
| + EXPECT_CALL(*components_factory_, CreateSyncBackendHost(_, _, _, _))
|
| .Times(times)
|
| .WillRepeatedly(ReturnNewMockHostCollectDeleteDirParam(
|
| delete_dir_param));
|
| }
|
|
|
| void PrepareDelayedInitSyncBackendHost() {
|
| - EXPECT_CALL(*components_factory_, CreateSyncBackendHost(_, _, _, _, _)).
|
| + EXPECT_CALL(*components_factory_, CreateSyncBackendHost(_, _, _, _)).
|
| WillOnce(ReturnNewSyncBackendHostNoReturn());
|
| }
|
|
|
|
|