Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_mock.h

Issue 9395058: [Sync] Remove SyncableServiceAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/sync/glue/data_type_controller.h" 10 #include "chrome/browser/sync/glue/data_type_controller.h"
(...skipping 22 matching lines...) Expand all
33 const browser_sync::DataTypeController::TypeMap*)); 33 const browser_sync::DataTypeController::TypeMap*));
34 MOCK_METHOD3(CreateGenericChangeProcessor, 34 MOCK_METHOD3(CreateGenericChangeProcessor,
35 browser_sync::GenericChangeProcessor*( 35 browser_sync::GenericChangeProcessor*(
36 ProfileSyncService* profile_sync_service, 36 ProfileSyncService* profile_sync_service,
37 browser_sync::DataTypeErrorHandler* error_handler, 37 browser_sync::DataTypeErrorHandler* error_handler,
38 const base::WeakPtr<SyncableService>& local_service)); 38 const base::WeakPtr<SyncableService>& local_service));
39 MOCK_METHOD0(CreateSharedChangeProcessor, 39 MOCK_METHOD0(CreateSharedChangeProcessor,
40 browser_sync::SharedChangeProcessor*()); 40 browser_sync::SharedChangeProcessor*());
41 MOCK_METHOD1(GetSyncableServiceForType, 41 MOCK_METHOD1(GetSyncableServiceForType,
42 base::WeakPtr<SyncableService>(syncable::ModelType)); 42 base::WeakPtr<SyncableService>(syncable::ModelType));
43 MOCK_CONST_METHOD1(GetAutofillProfileSyncableService,
44 base::WeakPtr<SyncableService>(
45 WebDataService* web_data_service));
46 MOCK_CONST_METHOD1(GetAutocompleteSyncableService,
47 base::WeakPtr<SyncableService>(
48 WebDataService* web_data_service));
49 MOCK_METHOD2(CreateBookmarkSyncComponents, 43 MOCK_METHOD2(CreateBookmarkSyncComponents,
50 SyncComponents(ProfileSyncService* profile_sync_service, 44 SyncComponents(ProfileSyncService* profile_sync_service,
51 browser_sync::DataTypeErrorHandler* error_handler)); 45 browser_sync::DataTypeErrorHandler* error_handler));
52 MOCK_METHOD3(CreateExtensionOrAppSyncComponents,
53 SyncComponents(syncable::ModelType type,
54 ProfileSyncService* profile_sync_service,
55 browser_sync::DataTypeErrorHandler* error_handler));
56 MOCK_METHOD3(CreateExtensionOrAppSettingSyncComponents,
57 SyncComponents(syncable::ModelType model_type,
58 ProfileSyncService* profile_sync_service,
59 browser_sync::DataTypeErrorHandler* error_handler));
60 MOCK_METHOD3(CreatePasswordSyncComponents, 46 MOCK_METHOD3(CreatePasswordSyncComponents,
61 SyncComponents( 47 SyncComponents(
62 ProfileSyncService* profile_sync_service, 48 ProfileSyncService* profile_sync_service,
63 PasswordStore* password_store, 49 PasswordStore* password_store,
64 browser_sync::DataTypeErrorHandler* error_handler)); 50 browser_sync::DataTypeErrorHandler* error_handler));
65 MOCK_METHOD2(CreatePreferenceSyncComponents, 51 MOCK_METHOD2(CreateSessionSyncComponents,
66 SyncComponents(ProfileSyncService* profile_sync_service, 52 SyncComponents(ProfileSyncService* profile_sync_service,
67 browser_sync::DataTypeErrorHandler* error_handler)); 53 browser_sync::DataTypeErrorHandler* error_handler));
68 MOCK_METHOD2(CreateSessionSyncComponents,
69 SyncComponents(ProfileSyncService* profile_sync_service,
70 browser_sync::DataTypeErrorHandler* error_handler));
71 MOCK_METHOD2(CreateThemeSyncComponents, 54 MOCK_METHOD2(CreateThemeSyncComponents,
72 SyncComponents(ProfileSyncService* profile_sync_service, 55 SyncComponents(ProfileSyncService* profile_sync_service,
73 browser_sync::DataTypeErrorHandler* error_handler)); 56 browser_sync::DataTypeErrorHandler* error_handler));
74 MOCK_METHOD3(CreateTypedUrlSyncComponents, 57 MOCK_METHOD3(CreateTypedUrlSyncComponents,
75 SyncComponents( 58 SyncComponents(
76 ProfileSyncService* profile_sync_service, 59 ProfileSyncService* profile_sync_service,
77 history::HistoryBackend* history_backend, 60 history::HistoryBackend* history_backend,
78 browser_sync::DataTypeErrorHandler* error_handler)); 61 browser_sync::DataTypeErrorHandler* error_handler));
79 MOCK_METHOD2(CreateSearchEngineSyncComponents,
80 SyncComponents(
81 ProfileSyncService* profile_sync_service,
82 browser_sync::DataTypeErrorHandler* error_handler));
83 MOCK_METHOD2(CreateAppNotificationSyncComponents,
84 SyncComponents(
85 ProfileSyncService* profile_sync_service,
86 browser_sync::DataTypeErrorHandler* error_handler));
87 62
88 private: 63 private:
89 SyncComponents MakeSyncComponents(); 64 SyncComponents MakeSyncComponents();
90 65
91 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; 66 scoped_ptr<browser_sync::AssociatorInterface> model_associator_;
92 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; 67 scoped_ptr<browser_sync::ChangeProcessor> change_processor_;
93 }; 68 };
94 69
95 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 70 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698