| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 const browser_sync::DataTypeController::TypeMap*)); | 31 const browser_sync::DataTypeController::TypeMap*)); |
| 32 MOCK_METHOD3(CreateGenericChangeProcessor, | 32 MOCK_METHOD3(CreateGenericChangeProcessor, |
| 33 browser_sync::GenericChangeProcessor*( | 33 browser_sync::GenericChangeProcessor*( |
| 34 ProfileSyncService* profile_sync_service, | 34 ProfileSyncService* profile_sync_service, |
| 35 browser_sync::UnrecoverableErrorHandler* error_handler, | 35 browser_sync::UnrecoverableErrorHandler* error_handler, |
| 36 const base::WeakPtr<SyncableService>& local_service)); | 36 const base::WeakPtr<SyncableService>& local_service)); |
| 37 MOCK_METHOD0(CreateSharedChangeProcessor, | 37 MOCK_METHOD0(CreateSharedChangeProcessor, |
| 38 browser_sync::SharedChangeProcessor*()); | 38 browser_sync::SharedChangeProcessor*()); |
| 39 MOCK_METHOD1(GetSyncableServiceForType, | 39 MOCK_METHOD1(GetSyncableServiceForType, |
| 40 base::WeakPtr<SyncableService>(syncable::ModelType)); | 40 base::WeakPtr<SyncableService>(syncable::ModelType)); |
| 41 MOCK_CONST_METHOD1(GetAutofillProfileSyncableService, | |
| 42 base::WeakPtr<SyncableService>( | |
| 43 WebDataService* web_data_service)); | |
| 44 MOCK_CONST_METHOD1(GetAutocompleteSyncableService, | |
| 45 base::WeakPtr<SyncableService>( | |
| 46 WebDataService* web_data_service)); | |
| 47 MOCK_METHOD2(CreateBookmarkSyncComponents, | 41 MOCK_METHOD2(CreateBookmarkSyncComponents, |
| 48 SyncComponents(ProfileSyncService* profile_sync_service, | 42 SyncComponents(ProfileSyncService* profile_sync_service, |
| 49 browser_sync::UnrecoverableErrorHandler* error_handler)); | 43 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 50 MOCK_METHOD3(CreateExtensionOrAppSyncComponents, | |
| 51 SyncComponents(syncable::ModelType type, | |
| 52 ProfileSyncService* profile_sync_service, | |
| 53 browser_sync::UnrecoverableErrorHandler* error_handler)); | |
| 54 MOCK_METHOD3(CreateExtensionOrAppSettingSyncComponents, | |
| 55 SyncComponents(syncable::ModelType model_type, | |
| 56 ProfileSyncService* profile_sync_service, | |
| 57 browser_sync::UnrecoverableErrorHandler* error_handler)); | |
| 58 MOCK_METHOD3(CreatePasswordSyncComponents, | 44 MOCK_METHOD3(CreatePasswordSyncComponents, |
| 59 SyncComponents( | 45 SyncComponents( |
| 60 ProfileSyncService* profile_sync_service, | 46 ProfileSyncService* profile_sync_service, |
| 61 PasswordStore* password_store, | 47 PasswordStore* password_store, |
| 62 browser_sync::UnrecoverableErrorHandler* error_handler)); | 48 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 63 MOCK_METHOD2(CreatePreferenceSyncComponents, | |
| 64 SyncComponents(ProfileSyncService* profile_sync_service, | |
| 65 browser_sync::UnrecoverableErrorHandler* error_handler)); | |
| 66 MOCK_METHOD2(CreateSessionSyncComponents, | 49 MOCK_METHOD2(CreateSessionSyncComponents, |
| 67 SyncComponents(ProfileSyncService* profile_sync_service, | 50 SyncComponents(ProfileSyncService* profile_sync_service, |
| 68 browser_sync::UnrecoverableErrorHandler* error_handler)); | 51 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 69 MOCK_METHOD2(CreateThemeSyncComponents, | 52 MOCK_METHOD2(CreateThemeSyncComponents, |
| 70 SyncComponents(ProfileSyncService* profile_sync_service, | 53 SyncComponents(ProfileSyncService* profile_sync_service, |
| 71 browser_sync::UnrecoverableErrorHandler* error_handler)); | 54 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 72 MOCK_METHOD3(CreateTypedUrlSyncComponents, | 55 MOCK_METHOD3(CreateTypedUrlSyncComponents, |
| 73 SyncComponents( | 56 SyncComponents( |
| 74 ProfileSyncService* profile_sync_service, | 57 ProfileSyncService* profile_sync_service, |
| 75 history::HistoryBackend* history_backend, | 58 history::HistoryBackend* history_backend, |
| 76 browser_sync::UnrecoverableErrorHandler* error_handler)); | 59 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 77 MOCK_METHOD2(CreateSearchEngineSyncComponents, | |
| 78 SyncComponents( | |
| 79 ProfileSyncService* profile_sync_service, | |
| 80 browser_sync::UnrecoverableErrorHandler* error_handler)); | |
| 81 MOCK_METHOD2(CreateAppNotificationSyncComponents, | |
| 82 SyncComponents( | |
| 83 ProfileSyncService* profile_sync_service, | |
| 84 browser_sync::UnrecoverableErrorHandler* error_handler)); | |
| 85 | 60 |
| 86 private: | 61 private: |
| 87 SyncComponents MakeSyncComponents(); | 62 SyncComponents MakeSyncComponents(); |
| 88 | 63 |
| 89 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 64 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
| 90 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 65 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
| 91 }; | 66 }; |
| 92 | 67 |
| 93 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 68 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
| OLD | NEW |