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 27 matching lines...) Expand all Loading... |
38 browser_sync::FailedDataTypesHandler* | 38 browser_sync::FailedDataTypesHandler* |
39 failed_datatypes_handler)); | 39 failed_datatypes_handler)); |
40 MOCK_METHOD4(CreateSyncBackendHost, | 40 MOCK_METHOD4(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<sync_driver::SyncPrefs>& sync_prefs, | 44 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
45 const base::FilePath& sync_folder)); | 45 const base::FilePath& sync_folder)); |
46 MOCK_METHOD1(GetSyncableServiceForType, | 46 MOCK_METHOD1(GetSyncableServiceForType, |
47 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); | 47 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); |
48 virtual scoped_ptr<syncer::AttachmentStore> | 48 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( |
49 CreateCustomAttachmentStoreForType(syncer::ModelType type) OVERRIDE; | 49 syncer::AttachmentService::Delegate* delegate) OVERRIDE; |
50 MOCK_METHOD2(CreateBookmarkSyncComponents, | 50 MOCK_METHOD2(CreateBookmarkSyncComponents, |
51 SyncComponents(ProfileSyncService* profile_sync_service, | 51 SyncComponents(ProfileSyncService* profile_sync_service, |
52 browser_sync::DataTypeErrorHandler* error_handler)); | 52 browser_sync::DataTypeErrorHandler* error_handler)); |
53 #if defined(ENABLE_THEMES) | 53 #if defined(ENABLE_THEMES) |
54 MOCK_METHOD2(CreateThemeSyncComponents, | 54 MOCK_METHOD2(CreateThemeSyncComponents, |
55 SyncComponents(ProfileSyncService* profile_sync_service, | 55 SyncComponents(ProfileSyncService* profile_sync_service, |
56 browser_sync::DataTypeErrorHandler* error_handler)); | 56 browser_sync::DataTypeErrorHandler* error_handler)); |
57 #endif | 57 #endif |
58 MOCK_METHOD3(CreateTypedUrlSyncComponents, | 58 MOCK_METHOD3(CreateTypedUrlSyncComponents, |
59 SyncComponents( | 59 SyncComponents( |
60 ProfileSyncService* profile_sync_service, | 60 ProfileSyncService* profile_sync_service, |
61 history::HistoryBackend* history_backend, | 61 history::HistoryBackend* history_backend, |
62 browser_sync::DataTypeErrorHandler* error_handler)); | 62 browser_sync::DataTypeErrorHandler* error_handler)); |
63 | 63 |
64 private: | 64 private: |
65 SyncComponents MakeSyncComponents(); | 65 SyncComponents MakeSyncComponents(); |
66 | 66 |
67 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 67 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
68 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 68 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 71 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
OLD | NEW |