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 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/sync/profile_sync_components_factory.h" | 9 #include "chrome/browser/sync/profile_sync_components_factory.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 MOCK_METHOD6(CreateDataTypeManager, | 31 MOCK_METHOD6(CreateDataTypeManager, |
32 browser_sync::DataTypeManager*( | 32 browser_sync::DataTypeManager*( |
33 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, | 33 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, |
34 const browser_sync::DataTypeController::TypeMap*, | 34 const browser_sync::DataTypeController::TypeMap*, |
35 const browser_sync::DataTypeEncryptionHandler*, | 35 const browser_sync::DataTypeEncryptionHandler*, |
36 browser_sync::SyncBackendHost*, | 36 browser_sync::SyncBackendHost*, |
37 browser_sync::DataTypeManagerObserver* observer, | 37 browser_sync::DataTypeManagerObserver* observer, |
38 browser_sync::FailedDataTypesHandler* | 38 browser_sync::FailedDataTypesHandler* |
39 failed_datatypes_handler)); | 39 failed_datatypes_handler)); |
40 MOCK_METHOD3(CreateSyncBackendHost, | 40 MOCK_METHOD3(CreateSyncBackendHost, |
41 browser_sync::SyncBackendHost*( | 41 browser_sync::SyncBackendHost*( |
42 const std::string& name, | 42 const std::string& name, |
43 Profile* profile, | 43 Profile* profile, |
44 const base::WeakPtr<browser_sync::SyncPrefs>& sync_prefs)); | 44 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs)); |
45 MOCK_METHOD4(CreateGenericChangeProcessor, | 45 MOCK_METHOD4(CreateGenericChangeProcessor, |
46 browser_sync::GenericChangeProcessor*( | 46 browser_sync::GenericChangeProcessor*( |
47 ProfileSyncService* profile_sync_service, | 47 ProfileSyncService* profile_sync_service, |
48 browser_sync::DataTypeErrorHandler* error_handler, | 48 browser_sync::DataTypeErrorHandler* error_handler, |
49 const base::WeakPtr<syncer::SyncableService>& local_service, | 49 const base::WeakPtr<syncer::SyncableService>& local_service, |
50 const base::WeakPtr<syncer::SyncMergeResult>& merge_result)); | 50 const base::WeakPtr<syncer::SyncMergeResult>& merge_result)); |
51 MOCK_METHOD0(CreateSharedChangeProcessor, | 51 MOCK_METHOD0(CreateSharedChangeProcessor, |
52 browser_sync::SharedChangeProcessor*()); | 52 browser_sync::SharedChangeProcessor*()); |
53 MOCK_METHOD1(GetSyncableServiceForType, | 53 MOCK_METHOD1(GetSyncableServiceForType, |
54 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); | 54 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); |
(...skipping 15 matching lines...) Expand all Loading... |
70 browser_sync::DataTypeErrorHandler* error_handler)); | 70 browser_sync::DataTypeErrorHandler* error_handler)); |
71 | 71 |
72 private: | 72 private: |
73 SyncComponents MakeSyncComponents(); | 73 SyncComponents MakeSyncComponents(); |
74 | 74 |
75 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 75 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
76 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 76 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
77 }; | 77 }; |
78 | 78 |
79 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 79 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
OLD | NEW |