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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 SyncComponents(ProfileSyncService* profile_sync_service, | 42 SyncComponents(ProfileSyncService* profile_sync_service, |
43 browser_sync::UnrecoverableErrorHandler* error_handler)); | 43 browser_sync::UnrecoverableErrorHandler* error_handler)); |
44 MOCK_METHOD3(CreatePasswordSyncComponents, | 44 MOCK_METHOD3(CreatePasswordSyncComponents, |
45 SyncComponents( | 45 SyncComponents( |
46 ProfileSyncService* profile_sync_service, | 46 ProfileSyncService* profile_sync_service, |
47 PasswordStore* password_store, | 47 PasswordStore* password_store, |
48 browser_sync::UnrecoverableErrorHandler* error_handler)); | 48 browser_sync::UnrecoverableErrorHandler* error_handler)); |
49 MOCK_METHOD2(CreatePreferenceSyncComponents, | 49 MOCK_METHOD2(CreatePreferenceSyncComponents, |
50 SyncComponents(ProfileSyncService* profile_sync_service, | 50 SyncComponents(ProfileSyncService* profile_sync_service, |
51 browser_sync::UnrecoverableErrorHandler* error_handler)); | 51 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 52 MOCK_METHOD2(CreateSessionSyncComponents, |
| 53 SyncComponents(ProfileSyncService* profile_sync_service, |
| 54 browser_sync::UnrecoverableErrorHandler* error_handler)); |
52 MOCK_METHOD2(CreateThemeSyncComponents, | 55 MOCK_METHOD2(CreateThemeSyncComponents, |
53 SyncComponents(ProfileSyncService* profile_sync_service, | 56 SyncComponents(ProfileSyncService* profile_sync_service, |
54 browser_sync::UnrecoverableErrorHandler* error_handler)); | 57 browser_sync::UnrecoverableErrorHandler* error_handler)); |
55 MOCK_METHOD3(CreateTypedUrlSyncComponents, | 58 MOCK_METHOD3(CreateTypedUrlSyncComponents, |
56 SyncComponents( | 59 SyncComponents( |
57 ProfileSyncService* profile_sync_service, | 60 ProfileSyncService* profile_sync_service, |
58 history::HistoryBackend* history_backend, | 61 history::HistoryBackend* history_backend, |
59 browser_sync::UnrecoverableErrorHandler* error_handler)); | 62 browser_sync::UnrecoverableErrorHandler* error_handler)); |
60 | 63 |
61 private: | 64 private: |
62 SyncComponents MakeBookmarkSyncComponents(); | 65 SyncComponents MakeBookmarkSyncComponents(); |
63 | 66 |
64 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; | 67 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; |
65 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; | 68 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; |
66 }; | 69 }; |
67 | 70 |
68 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 71 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
OLD | NEW |