OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FACTORY_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_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 15 matching lines...) Expand all Loading... |
26 browser_sync::ChangeProcessor* change_processor); | 26 browser_sync::ChangeProcessor* change_processor); |
27 virtual ~ProfileSyncFactoryMock(); | 27 virtual ~ProfileSyncFactoryMock(); |
28 | 28 |
29 MOCK_METHOD1(CreateProfileSyncService, | 29 MOCK_METHOD1(CreateProfileSyncService, |
30 ProfileSyncService*(const std::string&)); | 30 ProfileSyncService*(const std::string&)); |
31 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); | 31 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); |
32 MOCK_METHOD2(CreateDataTypeManager, | 32 MOCK_METHOD2(CreateDataTypeManager, |
33 browser_sync::DataTypeManager*( | 33 browser_sync::DataTypeManager*( |
34 browser_sync::SyncBackendHost*, | 34 browser_sync::SyncBackendHost*, |
35 const browser_sync::DataTypeController::TypeMap*)); | 35 const browser_sync::DataTypeController::TypeMap*)); |
36 MOCK_METHOD3(CreateGenericChangeProcessor, | |
37 browser_sync::GenericChangeProcessor*( | |
38 ProfileSyncService* profile_sync_service, | |
39 browser_sync::UnrecoverableErrorHandler* error_handler, | |
40 const base::WeakPtr<SyncableService>& local_service)); | |
41 MOCK_METHOD0(CreateSharedChangeProcessor, | |
42 browser_sync::SharedChangeProcessor*()); | |
43 MOCK_METHOD2(CreateAppSyncComponents, | 36 MOCK_METHOD2(CreateAppSyncComponents, |
44 SyncComponents(ProfileSyncService* profile_sync_service, | 37 SyncComponents(ProfileSyncService* profile_sync_service, |
45 browser_sync::UnrecoverableErrorHandler* error_handler)); | 38 browser_sync::UnrecoverableErrorHandler* error_handler)); |
46 MOCK_METHOD3(CreateAutofillSyncComponents, | 39 MOCK_METHOD3(CreateAutofillSyncComponents, |
47 SyncComponents( | 40 SyncComponents( |
48 ProfileSyncService* profile_sync_service, | 41 ProfileSyncService* profile_sync_service, |
49 WebDatabase* web_database, | 42 WebDatabase* web_database, |
50 browser_sync::UnrecoverableErrorHandler* error_handler)); | 43 browser_sync::UnrecoverableErrorHandler* error_handler)); |
51 MOCK_CONST_METHOD1(GetAutofillProfileSyncableService, | 44 MOCK_METHOD3(CreateAutofillProfileSyncComponents, |
52 base::WeakPtr<SyncableService>( | 45 SyncComponents( |
53 WebDataService* web_data_service)); | 46 ProfileSyncService* profile_sync_service, |
| 47 WebDataService* web_data_service, |
| 48 browser_sync::UnrecoverableErrorHandler* error_handler)); |
54 MOCK_METHOD2(CreateBookmarkSyncComponents, | 49 MOCK_METHOD2(CreateBookmarkSyncComponents, |
55 SyncComponents(ProfileSyncService* profile_sync_service, | 50 SyncComponents(ProfileSyncService* profile_sync_service, |
56 browser_sync::UnrecoverableErrorHandler* error_handler)); | 51 browser_sync::UnrecoverableErrorHandler* error_handler)); |
57 MOCK_METHOD2(CreateExtensionSyncComponents, | 52 MOCK_METHOD2(CreateExtensionSyncComponents, |
58 SyncComponents(ProfileSyncService* profile_sync_service, | 53 SyncComponents(ProfileSyncService* profile_sync_service, |
59 browser_sync::UnrecoverableErrorHandler* error_handler)); | 54 browser_sync::UnrecoverableErrorHandler* error_handler)); |
60 MOCK_METHOD3(CreateExtensionSettingSyncComponents, | 55 MOCK_METHOD3(CreateExtensionSettingSyncComponents, |
61 SyncComponents(ExtensionSettingsBackend* extension_settings_backend, | 56 SyncComponents(ExtensionSettingsBackend* extension_settings_backend, |
62 ProfileSyncService* profile_sync_service, | 57 ProfileSyncService* profile_sync_service, |
63 browser_sync::UnrecoverableErrorHandler* error_handler)); | 58 browser_sync::UnrecoverableErrorHandler* error_handler)); |
(...skipping 22 matching lines...) Expand all Loading... |
86 browser_sync::UnrecoverableErrorHandler* error_handler)); | 81 browser_sync::UnrecoverableErrorHandler* error_handler)); |
87 | 82 |
88 private: | 83 private: |
89 SyncComponents MakeSyncComponents(); | 84 SyncComponents MakeSyncComponents(); |
90 | 85 |
91 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 86 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
92 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 87 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
93 }; | 88 }; |
94 | 89 |
95 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 90 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
OLD | NEW |