OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 7 |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "chrome/browser/sync/profile_sync_service.h" | 9 #include "chrome/browser/sync/profile_sync_service.h" |
10 #include "chrome/browser/sync/profile_sync_factory.h" | 10 #include "chrome/browser/sync/profile_sync_factory.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 const browser_sync::DataTypeController::TypeMap&)); | 30 const browser_sync::DataTypeController::TypeMap&)); |
31 MOCK_METHOD4(CreateAutofillSyncComponents, | 31 MOCK_METHOD4(CreateAutofillSyncComponents, |
32 SyncComponents( | 32 SyncComponents( |
33 ProfileSyncService* profile_sync_service, | 33 ProfileSyncService* profile_sync_service, |
34 WebDatabase* web_database, | 34 WebDatabase* web_database, |
35 PersonalDataManager* personal_data, | 35 PersonalDataManager* personal_data, |
36 browser_sync::UnrecoverableErrorHandler* error_handler)); | 36 browser_sync::UnrecoverableErrorHandler* error_handler)); |
37 MOCK_METHOD2(CreateBookmarkSyncComponents, | 37 MOCK_METHOD2(CreateBookmarkSyncComponents, |
38 SyncComponents(ProfileSyncService* profile_sync_service, | 38 SyncComponents(ProfileSyncService* profile_sync_service, |
39 browser_sync::UnrecoverableErrorHandler* error_handler)); | 39 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 40 MOCK_METHOD3(CreatePasswordSyncComponents, |
| 41 SyncComponents( |
| 42 ProfileSyncService* profile_sync_service, |
| 43 PasswordStore* password_store, |
| 44 browser_sync::UnrecoverableErrorHandler* error_handler)); |
40 MOCK_METHOD2(CreatePreferenceSyncComponents, | 45 MOCK_METHOD2(CreatePreferenceSyncComponents, |
41 SyncComponents(ProfileSyncService* profile_sync_service, | 46 SyncComponents(ProfileSyncService* profile_sync_service, |
42 browser_sync::UnrecoverableErrorHandler* error_handler)); | 47 browser_sync::UnrecoverableErrorHandler* error_handler)); |
43 MOCK_METHOD2(CreateThemeSyncComponents, | 48 MOCK_METHOD2(CreateThemeSyncComponents, |
44 SyncComponents(ProfileSyncService* profile_sync_service, | 49 SyncComponents(ProfileSyncService* profile_sync_service, |
45 browser_sync::UnrecoverableErrorHandler* error_handler)); | 50 browser_sync::UnrecoverableErrorHandler* error_handler)); |
46 MOCK_METHOD3(CreateTypedUrlSyncComponents, | 51 MOCK_METHOD3(CreateTypedUrlSyncComponents, |
47 SyncComponents( | 52 SyncComponents( |
48 ProfileSyncService* profile_sync_service, | 53 ProfileSyncService* profile_sync_service, |
49 history::HistoryBackend* history_backend, | 54 history::HistoryBackend* history_backend, |
50 browser_sync::UnrecoverableErrorHandler* error_handler)); | 55 browser_sync::UnrecoverableErrorHandler* error_handler)); |
51 | 56 |
52 private: | 57 private: |
53 SyncComponents MakeBookmarkSyncComponents(); | 58 SyncComponents MakeBookmarkSyncComponents(); |
54 | 59 |
55 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; | 60 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; |
56 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; | 61 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; |
57 }; | 62 }; |
58 | 63 |
59 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 64 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
OLD | NEW |