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

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

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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"
(...skipping 26 matching lines...) Expand all
37 sync_driver::DataTypeManagerObserver* observer)); 37 sync_driver::DataTypeManagerObserver* observer));
38 MOCK_METHOD5(CreateSyncBackendHost, 38 MOCK_METHOD5(CreateSyncBackendHost,
39 browser_sync::SyncBackendHost*( 39 browser_sync::SyncBackendHost*(
40 const std::string& name, 40 const std::string& name,
41 Profile* profile, 41 Profile* profile,
42 invalidation::InvalidationService* invalidator, 42 invalidation::InvalidationService* invalidator,
43 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 43 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
44 const base::FilePath& sync_folder)); 44 const base::FilePath& sync_folder));
45 45
46 virtual scoped_ptr<sync_driver::LocalDeviceInfoProvider> 46 virtual scoped_ptr<sync_driver::LocalDeviceInfoProvider>
47 CreateLocalDeviceInfoProvider() OVERRIDE; 47 CreateLocalDeviceInfoProvider() override;
48 void SetLocalDeviceInfoProvider( 48 void SetLocalDeviceInfoProvider(
49 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device); 49 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device);
50 50
51 MOCK_METHOD1(GetSyncableServiceForType, 51 MOCK_METHOD1(GetSyncableServiceForType,
52 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); 52 base::WeakPtr<syncer::SyncableService>(syncer::ModelType));
53 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( 53 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
54 const scoped_refptr<syncer::AttachmentStore>& attachment_store, 54 const scoped_refptr<syncer::AttachmentStore>& attachment_store,
55 const syncer::UserShare& user_share, 55 const syncer::UserShare& user_share,
56 syncer::AttachmentService::Delegate* delegate) OVERRIDE; 56 syncer::AttachmentService::Delegate* delegate) override;
57 MOCK_METHOD2(CreateBookmarkSyncComponents, 57 MOCK_METHOD2(CreateBookmarkSyncComponents,
58 SyncComponents(ProfileSyncService* profile_sync_service, 58 SyncComponents(ProfileSyncService* profile_sync_service,
59 sync_driver::DataTypeErrorHandler* error_handler)); 59 sync_driver::DataTypeErrorHandler* error_handler));
60 #if defined(ENABLE_THEMES) 60 #if defined(ENABLE_THEMES)
61 MOCK_METHOD2(CreateThemeSyncComponents, 61 MOCK_METHOD2(CreateThemeSyncComponents,
62 SyncComponents(ProfileSyncService* profile_sync_service, 62 SyncComponents(ProfileSyncService* profile_sync_service,
63 sync_driver::DataTypeErrorHandler* error_handler)); 63 sync_driver::DataTypeErrorHandler* error_handler));
64 #endif 64 #endif
65 MOCK_METHOD3(CreateTypedUrlSyncComponents, 65 MOCK_METHOD3(CreateTypedUrlSyncComponents,
66 SyncComponents( 66 SyncComponents(
67 ProfileSyncService* profile_sync_service, 67 ProfileSyncService* profile_sync_service,
68 history::HistoryBackend* history_backend, 68 history::HistoryBackend* history_backend,
69 sync_driver::DataTypeErrorHandler* error_handler)); 69 sync_driver::DataTypeErrorHandler* error_handler));
70 70
71 private: 71 private:
72 SyncComponents MakeSyncComponents(); 72 SyncComponents MakeSyncComponents();
73 73
74 scoped_ptr<sync_driver::AssociatorInterface> model_associator_; 74 scoped_ptr<sync_driver::AssociatorInterface> model_associator_;
75 scoped_ptr<sync_driver::ChangeProcessor> change_processor_; 75 scoped_ptr<sync_driver::ChangeProcessor> change_processor_;
76 // LocalDeviceInfoProvider is initially owned by this class, 76 // LocalDeviceInfoProvider is initially owned by this class,
77 // transferred to caller when CreateLocalDeviceInfoProvider is called. 77 // transferred to caller when CreateLocalDeviceInfoProvider is called.
78 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device_; 78 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device_;
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 81 #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