| 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 18 matching lines...) Expand all Loading... |
| 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_METHOD2(CreateAppSyncComponents, | 36 MOCK_METHOD2(CreateAppSyncComponents, |
| 37 SyncComponents(ProfileSyncService* profile_sync_service, | 37 SyncComponents(ProfileSyncService* profile_sync_service, |
| 38 browser_sync::UnrecoverableErrorHandler* error_handler)); | 38 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 39 MOCK_METHOD4(CreateAutofillSyncComponents, | 39 MOCK_METHOD3(CreateAutofillSyncComponents, |
| 40 SyncComponents( | 40 SyncComponents( |
| 41 ProfileSyncService* profile_sync_service, | 41 ProfileSyncService* profile_sync_service, |
| 42 WebDatabase* web_database, | 42 WebDatabase* web_database, |
| 43 PersonalDataManager* personal_data, | |
| 44 browser_sync::UnrecoverableErrorHandler* error_handler)); | 43 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 45 MOCK_METHOD4(CreateAutofillProfileSyncComponents, | 44 MOCK_METHOD3(CreateAutofillProfileSyncComponents, |
| 46 SyncComponents( | 45 SyncComponents( |
| 47 ProfileSyncService* profile_sync_service, | 46 ProfileSyncService* profile_sync_service, |
| 48 WebDatabase* web_database, | 47 WebDatabase* web_database, |
| 49 PersonalDataManager* personal_data, | |
| 50 browser_sync::UnrecoverableErrorHandler* error_handler)); | 48 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 51 MOCK_METHOD2(CreateBookmarkSyncComponents, | 49 MOCK_METHOD2(CreateBookmarkSyncComponents, |
| 52 SyncComponents(ProfileSyncService* profile_sync_service, | 50 SyncComponents(ProfileSyncService* profile_sync_service, |
| 53 browser_sync::UnrecoverableErrorHandler* error_handler)); | 51 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 54 MOCK_METHOD2(CreateExtensionSyncComponents, | 52 MOCK_METHOD2(CreateExtensionSyncComponents, |
| 55 SyncComponents(ProfileSyncService* profile_sync_service, | 53 SyncComponents(ProfileSyncService* profile_sync_service, |
| 56 browser_sync::UnrecoverableErrorHandler* error_handler)); | 54 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 57 MOCK_METHOD3(CreateExtensionSettingSyncComponents, | 55 MOCK_METHOD3(CreateExtensionSettingSyncComponents, |
| 58 SyncComponents(ExtensionSettings* extension_settings, | 56 SyncComponents(ExtensionSettings* extension_settings, |
| 59 ProfileSyncService* profile_sync_service, | 57 ProfileSyncService* profile_sync_service, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 83 browser_sync::UnrecoverableErrorHandler* error_handler)); | 81 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 84 | 82 |
| 85 private: | 83 private: |
| 86 SyncComponents MakeSyncComponents(); | 84 SyncComponents MakeSyncComponents(); |
| 87 | 85 |
| 88 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 86 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
| 89 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 87 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 90 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| OLD | NEW |