| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 ProfileSyncService* profile_sync_service, | 45 ProfileSyncService* profile_sync_service, |
| 46 WebDatabase* web_database, | 46 WebDatabase* web_database, |
| 47 PersonalDataManager* personal_data, | 47 PersonalDataManager* personal_data, |
| 48 browser_sync::UnrecoverableErrorHandler* error_handler)); | 48 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 49 MOCK_METHOD2(CreateBookmarkSyncComponents, | 49 MOCK_METHOD2(CreateBookmarkSyncComponents, |
| 50 SyncComponents(ProfileSyncService* profile_sync_service, | 50 SyncComponents(ProfileSyncService* profile_sync_service, |
| 51 browser_sync::UnrecoverableErrorHandler* error_handler)); | 51 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 52 MOCK_METHOD2(CreateExtensionSyncComponents, | 52 MOCK_METHOD2(CreateExtensionSyncComponents, |
| 53 SyncComponents(ProfileSyncService* profile_sync_service, | 53 SyncComponents(ProfileSyncService* profile_sync_service, |
| 54 browser_sync::UnrecoverableErrorHandler* error_handler)); | 54 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 55 MOCK_METHOD2(CreateExtensionSettingSyncComponents, |
| 56 SyncComponents(ProfileSyncService* profile_sync_service, |
| 57 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 55 MOCK_METHOD3(CreatePasswordSyncComponents, | 58 MOCK_METHOD3(CreatePasswordSyncComponents, |
| 56 SyncComponents( | 59 SyncComponents( |
| 57 ProfileSyncService* profile_sync_service, | 60 ProfileSyncService* profile_sync_service, |
| 58 PasswordStore* password_store, | 61 PasswordStore* password_store, |
| 59 browser_sync::UnrecoverableErrorHandler* error_handler)); | 62 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 60 MOCK_METHOD2(CreatePreferenceSyncComponents, | 63 MOCK_METHOD2(CreatePreferenceSyncComponents, |
| 61 SyncComponents(ProfileSyncService* profile_sync_service, | 64 SyncComponents(ProfileSyncService* profile_sync_service, |
| 62 browser_sync::UnrecoverableErrorHandler* error_handler)); | 65 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 63 MOCK_METHOD2(CreateSessionSyncComponents, | 66 MOCK_METHOD2(CreateSessionSyncComponents, |
| 64 SyncComponents(ProfileSyncService* profile_sync_service, | 67 SyncComponents(ProfileSyncService* profile_sync_service, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 77 browser_sync::UnrecoverableErrorHandler* error_handler)); | 80 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 78 | 81 |
| 79 private: | 82 private: |
| 80 SyncComponents MakeSyncComponents(); | 83 SyncComponents MakeSyncComponents(); |
| 81 | 84 |
| 82 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 85 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
| 83 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 86 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 89 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| OLD | NEW |