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

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

Issue 513543004: [Sync] Rename FailedDataTypesHandler -> DataTypeStatusTable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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
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 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/sync/profile_sync_components_factory.h" 9 #include "chrome/browser/sync/profile_sync_components_factory.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "components/sync_driver/data_type_controller.h" 11 #include "components/sync_driver/data_type_controller.h"
12 #include "components/sync_driver/data_type_error_handler.h" 12 #include "components/sync_driver/data_type_error_handler.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 14
15 namespace sync_driver { 15 namespace sync_driver {
16 class AssociatorInterface; 16 class AssociatorInterface;
17 class ChangeProcessor; 17 class ChangeProcessor;
18 class DataTypeEncryptionHandler; 18 class DataTypeEncryptionHandler;
19 class FailedDataTypesHandler; 19 class DataTypeStatusTable;
20 } 20 }
21 21
22 class ProfileSyncComponentsFactoryMock : public ProfileSyncComponentsFactory { 22 class ProfileSyncComponentsFactoryMock : public ProfileSyncComponentsFactory {
23 public: 23 public:
24 ProfileSyncComponentsFactoryMock(); 24 ProfileSyncComponentsFactoryMock();
25 ProfileSyncComponentsFactoryMock( 25 ProfileSyncComponentsFactoryMock(
26 sync_driver::AssociatorInterface* model_associator, 26 sync_driver::AssociatorInterface* model_associator,
27 sync_driver::ChangeProcessor* change_processor); 27 sync_driver::ChangeProcessor* change_processor);
28 virtual ~ProfileSyncComponentsFactoryMock(); 28 virtual ~ProfileSyncComponentsFactoryMock();
29 29
30 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); 30 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*));
31 MOCK_METHOD6(CreateDataTypeManager, 31 MOCK_METHOD6(CreateDataTypeManager,
32 sync_driver::DataTypeManager*( 32 sync_driver::DataTypeManager*(
33 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, 33 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&,
34 const sync_driver::DataTypeController::TypeMap*, 34 const sync_driver::DataTypeController::TypeMap*,
35 const sync_driver::DataTypeEncryptionHandler*, 35 const sync_driver::DataTypeEncryptionHandler*,
36 browser_sync::SyncBackendHost*, 36 browser_sync::SyncBackendHost*,
37 sync_driver::DataTypeManagerObserver* observer, 37 sync_driver::DataTypeManagerObserver* observer,
38 sync_driver::FailedDataTypesHandler* 38 sync_driver::DataTypeStatusTable*
39 failed_datatypes_handler)); 39 data_type_status_table));
40 MOCK_METHOD5(CreateSyncBackendHost, 40 MOCK_METHOD5(CreateSyncBackendHost,
41 browser_sync::SyncBackendHost*( 41 browser_sync::SyncBackendHost*(
42 const std::string& name, 42 const std::string& name,
43 Profile* profile, 43 Profile* profile,
44 invalidation::InvalidationService* invalidator, 44 invalidation::InvalidationService* invalidator,
45 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 45 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
46 const base::FilePath& sync_folder)); 46 const base::FilePath& sync_folder));
47 47
48 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> 48 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider>
49 CreateLocalDeviceInfoProvider() OVERRIDE; 49 CreateLocalDeviceInfoProvider() OVERRIDE;
(...skipping 23 matching lines...) Expand all
73 SyncComponents MakeSyncComponents(); 73 SyncComponents MakeSyncComponents();
74 74
75 scoped_ptr<sync_driver::AssociatorInterface> model_associator_; 75 scoped_ptr<sync_driver::AssociatorInterface> model_associator_;
76 scoped_ptr<sync_driver::ChangeProcessor> change_processor_; 76 scoped_ptr<sync_driver::ChangeProcessor> change_processor_;
77 // LocalDeviceInfoProvider is initially owned by this class, 77 // LocalDeviceInfoProvider is initially owned by this class,
78 // transferred to caller when CreateLocalDeviceInfoProvider is called. 78 // transferred to caller when CreateLocalDeviceInfoProvider is called.
79 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device_; 79 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device_;
80 }; 80 };
81 81
82 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 82 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698