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/glue/data_type_controller.h" | 10 #include "chrome/browser/sync/glue/data_type_controller.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); | 29 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); |
30 MOCK_METHOD2(CreateDataTypeManager, | 30 MOCK_METHOD2(CreateDataTypeManager, |
31 browser_sync::DataTypeManager*( | 31 browser_sync::DataTypeManager*( |
32 browser_sync::SyncBackendHost*, | 32 browser_sync::SyncBackendHost*, |
33 const browser_sync::DataTypeController::TypeMap*)); | 33 const browser_sync::DataTypeController::TypeMap*)); |
34 MOCK_METHOD3(CreateGenericChangeProcessor, | 34 MOCK_METHOD3(CreateGenericChangeProcessor, |
35 browser_sync::GenericChangeProcessor*( | 35 browser_sync::GenericChangeProcessor*( |
36 ProfileSyncService* profile_sync_service, | 36 ProfileSyncService* profile_sync_service, |
37 browser_sync::DataTypeErrorHandler* error_handler, | 37 browser_sync::DataTypeErrorHandler* error_handler, |
38 const base::WeakPtr<SyncableService>& local_service)); | 38 const base::WeakPtr<csync::SyncableService>& local_service)); |
39 MOCK_METHOD0(CreateSharedChangeProcessor, | 39 MOCK_METHOD0(CreateSharedChangeProcessor, |
40 browser_sync::SharedChangeProcessor*()); | 40 browser_sync::SharedChangeProcessor*()); |
41 MOCK_METHOD1(GetSyncableServiceForType, | 41 MOCK_METHOD1(GetSyncableServiceForType, |
42 base::WeakPtr<SyncableService>(syncable::ModelType)); | 42 base::WeakPtr<csync::SyncableService>(syncable::ModelType)); |
43 MOCK_METHOD2(CreateBookmarkSyncComponents, | 43 MOCK_METHOD2(CreateBookmarkSyncComponents, |
44 SyncComponents(ProfileSyncService* profile_sync_service, | 44 SyncComponents(ProfileSyncService* profile_sync_service, |
45 browser_sync::DataTypeErrorHandler* error_handler)); | 45 browser_sync::DataTypeErrorHandler* error_handler)); |
46 MOCK_METHOD3(CreatePasswordSyncComponents, | 46 MOCK_METHOD3(CreatePasswordSyncComponents, |
47 SyncComponents( | 47 SyncComponents( |
48 ProfileSyncService* profile_sync_service, | 48 ProfileSyncService* profile_sync_service, |
49 PasswordStore* password_store, | 49 PasswordStore* password_store, |
50 browser_sync::DataTypeErrorHandler* error_handler)); | 50 browser_sync::DataTypeErrorHandler* error_handler)); |
51 MOCK_METHOD2(CreateSessionSyncComponents, | 51 MOCK_METHOD2(CreateSessionSyncComponents, |
52 SyncComponents(ProfileSyncService* profile_sync_service, | 52 SyncComponents(ProfileSyncService* profile_sync_service, |
(...skipping 10 matching lines...) Expand all Loading... |
63 browser_sync::DataTypeErrorHandler* error_handler)); | 63 browser_sync::DataTypeErrorHandler* error_handler)); |
64 | 64 |
65 private: | 65 private: |
66 SyncComponents MakeSyncComponents(); | 66 SyncComponents MakeSyncComponents(); |
67 | 67 |
68 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 68 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
69 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 69 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
70 }; | 70 }; |
71 | 71 |
72 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 72 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
OLD | NEW |