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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 5 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"
11 #include "chrome/browser/sync/glue/data_type_error_handler.h" 11 #include "chrome/browser/sync/glue/data_type_error_handler.h"
12 #include "chrome/browser/sync/profile_sync_components_factory.h"
12 #include "chrome/browser/sync/profile_sync_service.h" 13 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "chrome/browser/sync/profile_sync_components_factory.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 class AssociatorInterface; 17 class AssociatorInterface;
18 class ChangeProcessor; 18 class ChangeProcessor;
19 } 19 }
20 20
21 class ProfileSyncComponentsFactoryMock : public ProfileSyncComponentsFactory { 21 class ProfileSyncComponentsFactoryMock : public ProfileSyncComponentsFactory {
22 public: 22 public:
23 ProfileSyncComponentsFactoryMock(); 23 ProfileSyncComponentsFactoryMock();
24 ProfileSyncComponentsFactoryMock( 24 ProfileSyncComponentsFactoryMock(
25 browser_sync::AssociatorInterface* model_associator, 25 browser_sync::AssociatorInterface* model_associator,
26 browser_sync::ChangeProcessor* change_processor); 26 browser_sync::ChangeProcessor* change_processor);
27 virtual ~ProfileSyncComponentsFactoryMock(); 27 virtual ~ProfileSyncComponentsFactoryMock();
28 28
29 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); 29 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*));
30 MOCK_METHOD2(CreateDataTypeManager, 30 MOCK_METHOD2(CreateDataTypeManager,
31 browser_sync::DataTypeManager*( 31 browser_sync::DataTypeManager*(
32 browser_sync::SyncBackendHost*, 32 browser_sync::SyncBackendHost*,
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<syncer::SyncableService>& local_service)); 38 const base::WeakPtr<syncer::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<syncer::SyncableService>(syncable::ModelType)); 42 base::WeakPtr<syncer::SyncableService>(syncer::ModelType));
43 MOCK_METHOD2(CreateBookmarkSyncComponents, 43 MOCK_METHOD2(CreateBookmarkSyncComponents,
44 SyncComponents(ProfileSyncService* profile_sync_service, 44 SyncComponents(ProfileSyncService* profile_sync_service,
45 browser_sync::DataTypeErrorHandler* error_handler)); 45 browser_sync::DataTypeErrorHandler* error_handler));
46 MOCK_METHOD3(CreatePasswordSyncComponents, 46 MOCK_METHOD3(CreatePasswordSyncComponents,
47 SyncComponents( 47 SyncComponents(
48 ProfileSyncService* profile_sync_service, 48 ProfileSyncService* profile_sync_service,
49 PasswordStore* password_store, 49 PasswordStore* password_store,
50 browser_sync::DataTypeErrorHandler* error_handler)); 50 browser_sync::DataTypeErrorHandler* error_handler));
51 MOCK_METHOD2(CreateSessionSyncComponents, 51 MOCK_METHOD2(CreateSessionSyncComponents,
52 SyncComponents(ProfileSyncService* profile_sync_service, 52 SyncComponents(ProfileSyncService* profile_sync_service,
(...skipping 10 matching lines...) Expand all
63 browser_sync::DataTypeErrorHandler* error_handler)); 63 browser_sync::DataTypeErrorHandler* error_handler));
64 64
65 private: 65 private:
66 SyncComponents MakeSyncComponents(); 66 SyncComponents MakeSyncComponents();
67 67
68 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; 68 scoped_ptr<browser_sync::AssociatorInterface> model_associator_;
69 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; 69 scoped_ptr<browser_sync::ChangeProcessor> change_processor_;
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 72 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698