| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/sync/profile_sync_components_factory.h" | 9 #include "chrome/browser/sync/profile_sync_components_factory.h" |
| 10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 browser_sync::DataTypeManagerObserver* observer, | 37 browser_sync::DataTypeManagerObserver* observer, |
| 38 browser_sync::FailedDataTypesHandler* | 38 browser_sync::FailedDataTypesHandler* |
| 39 failed_datatypes_handler)); | 39 failed_datatypes_handler)); |
| 40 MOCK_METHOD5(CreateSyncBackendHost, | 40 MOCK_METHOD5(CreateSyncBackendHost, |
| 41 browser_sync::SyncBackendHost*( | 41 browser_sync::SyncBackendHost*( |
| 42 const std::string& name, | 42 const std::string& name, |
| 43 Profile* profile, | 43 Profile* profile, |
| 44 invalidation::InvalidationService* invalidator, | 44 invalidation::InvalidationService* invalidator, |
| 45 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, | 45 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
| 46 const base::FilePath& sync_folder)); | 46 const base::FilePath& sync_folder)); |
| 47 | |
| 48 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> | |
| 49 CreateLocalDeviceInfoProvider() OVERRIDE; | |
| 50 MOCK_METHOD0(CreateLocalDeviceInfoProviderMock, LocalDeviceInfoProvider*()); | |
| 51 | |
| 52 MOCK_METHOD1(GetSyncableServiceForType, | 47 MOCK_METHOD1(GetSyncableServiceForType, |
| 53 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); | 48 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); |
| 54 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( | 49 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( |
| 55 const syncer::UserShare& user_share, | 50 const syncer::UserShare& user_share, |
| 56 syncer::AttachmentService::Delegate* delegate) OVERRIDE; | 51 syncer::AttachmentService::Delegate* delegate) OVERRIDE; |
| 57 MOCK_METHOD2(CreateBookmarkSyncComponents, | 52 MOCK_METHOD2(CreateBookmarkSyncComponents, |
| 58 SyncComponents(ProfileSyncService* profile_sync_service, | 53 SyncComponents(ProfileSyncService* profile_sync_service, |
| 59 browser_sync::DataTypeErrorHandler* error_handler)); | 54 browser_sync::DataTypeErrorHandler* error_handler)); |
| 60 #if defined(ENABLE_THEMES) | 55 #if defined(ENABLE_THEMES) |
| 61 MOCK_METHOD2(CreateThemeSyncComponents, | 56 MOCK_METHOD2(CreateThemeSyncComponents, |
| 62 SyncComponents(ProfileSyncService* profile_sync_service, | 57 SyncComponents(ProfileSyncService* profile_sync_service, |
| 63 browser_sync::DataTypeErrorHandler* error_handler)); | 58 browser_sync::DataTypeErrorHandler* error_handler)); |
| 64 #endif | 59 #endif |
| 65 MOCK_METHOD3(CreateTypedUrlSyncComponents, | 60 MOCK_METHOD3(CreateTypedUrlSyncComponents, |
| 66 SyncComponents( | 61 SyncComponents( |
| 67 ProfileSyncService* profile_sync_service, | 62 ProfileSyncService* profile_sync_service, |
| 68 history::HistoryBackend* history_backend, | 63 history::HistoryBackend* history_backend, |
| 69 browser_sync::DataTypeErrorHandler* error_handler)); | 64 browser_sync::DataTypeErrorHandler* error_handler)); |
| 70 | 65 |
| 71 private: | 66 private: |
| 72 SyncComponents MakeSyncComponents(); | 67 SyncComponents MakeSyncComponents(); |
| 73 | 68 |
| 74 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 69 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
| 75 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 70 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
| 76 }; | 71 }; |
| 77 | 72 |
| 78 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 73 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
| OLD | NEW |