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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.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 const browser_sync::DataTypeController::TypeMap&)); | 31 const browser_sync::DataTypeController::TypeMap&)); |
32 MOCK_METHOD2(CreateAppSyncComponents, | 32 MOCK_METHOD2(CreateAppSyncComponents, |
33 SyncComponents(ProfileSyncService* profile_sync_service, | 33 SyncComponents(ProfileSyncService* profile_sync_service, |
34 browser_sync::UnrecoverableErrorHandler* error_handler)); | 34 browser_sync::UnrecoverableErrorHandler* error_handler)); |
35 MOCK_METHOD4(CreateAutofillSyncComponents, | 35 MOCK_METHOD4(CreateAutofillSyncComponents, |
36 SyncComponents( | 36 SyncComponents( |
37 ProfileSyncService* profile_sync_service, | 37 ProfileSyncService* profile_sync_service, |
38 WebDatabase* web_database, | 38 WebDatabase* web_database, |
39 PersonalDataManager* personal_data, | 39 PersonalDataManager* personal_data, |
40 browser_sync::UnrecoverableErrorHandler* error_handler)); | 40 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 41 MOCK_METHOD4(CreateAutofillProfileSyncComponents, |
| 42 SyncComponents( |
| 43 ProfileSyncService* profile_sync_service, |
| 44 WebDatabase* web_database, |
| 45 PersonalDataManager* personal_data, |
| 46 browser_sync::UnrecoverableErrorHandler* error_handler)); |
41 MOCK_METHOD2(CreateBookmarkSyncComponents, | 47 MOCK_METHOD2(CreateBookmarkSyncComponents, |
42 SyncComponents(ProfileSyncService* profile_sync_service, | 48 SyncComponents(ProfileSyncService* profile_sync_service, |
43 browser_sync::UnrecoverableErrorHandler* error_handler)); | 49 browser_sync::UnrecoverableErrorHandler* error_handler)); |
44 MOCK_METHOD2(CreateExtensionSyncComponents, | 50 MOCK_METHOD2(CreateExtensionSyncComponents, |
45 SyncComponents(ProfileSyncService* profile_sync_service, | 51 SyncComponents(ProfileSyncService* profile_sync_service, |
46 browser_sync::UnrecoverableErrorHandler* error_handler)); | 52 browser_sync::UnrecoverableErrorHandler* error_handler)); |
47 MOCK_METHOD3(CreatePasswordSyncComponents, | 53 MOCK_METHOD3(CreatePasswordSyncComponents, |
48 SyncComponents( | 54 SyncComponents( |
49 ProfileSyncService* profile_sync_service, | 55 ProfileSyncService* profile_sync_service, |
50 PasswordStore* password_store, | 56 PasswordStore* password_store, |
(...skipping 14 matching lines...) Expand all Loading... |
65 browser_sync::UnrecoverableErrorHandler* error_handler)); | 71 browser_sync::UnrecoverableErrorHandler* error_handler)); |
66 | 72 |
67 private: | 73 private: |
68 SyncComponents MakeBookmarkSyncComponents(); | 74 SyncComponents MakeBookmarkSyncComponents(); |
69 | 75 |
70 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; | 76 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; |
71 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; | 77 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; |
72 }; | 78 }; |
73 | 79 |
74 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 80 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
OLD | NEW |