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

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

Issue 7977018: Enable sync for the settings from the Extension Settings API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix race condition in ExtensionSettingsUIWrapper::Core Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "chrome/browser/sync/profile_sync_factory.h" 11 #include "chrome/browser/sync/profile_sync_factory.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 class ExtensionSettings;
15
14 namespace browser_sync { 16 namespace browser_sync {
15 class AssociatorInterface; 17 class AssociatorInterface;
16 class ChangeProcessor; 18 class ChangeProcessor;
17 } 19 }
18 20
19 class ProfileSyncFactoryMock : public ProfileSyncFactory { 21 class ProfileSyncFactoryMock : public ProfileSyncFactory {
20 public: 22 public:
21 ProfileSyncFactoryMock(); 23 ProfileSyncFactoryMock();
22 ProfileSyncFactoryMock( 24 ProfileSyncFactoryMock(
23 browser_sync::AssociatorInterface* model_associator, 25 browser_sync::AssociatorInterface* model_associator,
(...skipping 21 matching lines...) Expand all
45 ProfileSyncService* profile_sync_service, 47 ProfileSyncService* profile_sync_service,
46 WebDatabase* web_database, 48 WebDatabase* web_database,
47 PersonalDataManager* personal_data, 49 PersonalDataManager* personal_data,
48 browser_sync::UnrecoverableErrorHandler* error_handler)); 50 browser_sync::UnrecoverableErrorHandler* error_handler));
49 MOCK_METHOD2(CreateBookmarkSyncComponents, 51 MOCK_METHOD2(CreateBookmarkSyncComponents,
50 SyncComponents(ProfileSyncService* profile_sync_service, 52 SyncComponents(ProfileSyncService* profile_sync_service,
51 browser_sync::UnrecoverableErrorHandler* error_handler)); 53 browser_sync::UnrecoverableErrorHandler* error_handler));
52 MOCK_METHOD2(CreateExtensionSyncComponents, 54 MOCK_METHOD2(CreateExtensionSyncComponents,
53 SyncComponents(ProfileSyncService* profile_sync_service, 55 SyncComponents(ProfileSyncService* profile_sync_service,
54 browser_sync::UnrecoverableErrorHandler* error_handler)); 56 browser_sync::UnrecoverableErrorHandler* error_handler));
57 MOCK_METHOD3(CreateExtensionSettingSyncComponents,
58 SyncComponents(ExtensionSettings* extension_settings,
59 ProfileSyncService* profile_sync_service,
60 browser_sync::UnrecoverableErrorHandler* error_handler));
55 MOCK_METHOD3(CreatePasswordSyncComponents, 61 MOCK_METHOD3(CreatePasswordSyncComponents,
56 SyncComponents( 62 SyncComponents(
57 ProfileSyncService* profile_sync_service, 63 ProfileSyncService* profile_sync_service,
58 PasswordStore* password_store, 64 PasswordStore* password_store,
59 browser_sync::UnrecoverableErrorHandler* error_handler)); 65 browser_sync::UnrecoverableErrorHandler* error_handler));
60 MOCK_METHOD2(CreatePreferenceSyncComponents, 66 MOCK_METHOD2(CreatePreferenceSyncComponents,
61 SyncComponents(ProfileSyncService* profile_sync_service, 67 SyncComponents(ProfileSyncService* profile_sync_service,
62 browser_sync::UnrecoverableErrorHandler* error_handler)); 68 browser_sync::UnrecoverableErrorHandler* error_handler));
63 MOCK_METHOD2(CreateSessionSyncComponents, 69 MOCK_METHOD2(CreateSessionSyncComponents,
64 SyncComponents(ProfileSyncService* profile_sync_service, 70 SyncComponents(ProfileSyncService* profile_sync_service,
(...skipping 12 matching lines...) Expand all
77 browser_sync::UnrecoverableErrorHandler* error_handler)); 83 browser_sync::UnrecoverableErrorHandler* error_handler));
78 84
79 private: 85 private:
80 SyncComponents MakeSyncComponents(); 86 SyncComponents MakeSyncComponents();
81 87
82 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; 88 scoped_ptr<browser_sync::AssociatorInterface> model_associator_;
83 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; 89 scoped_ptr<browser_sync::ChangeProcessor> change_processor_;
84 }; 90 };
85 91
86 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ 92 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_factory_impl.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698