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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the previous fix Created 9 years, 7 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/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 11 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "chrome/browser/sync/profile_sync_factory.h" 12 #include "chrome/browser/sync/profile_sync_factory.h"
12 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
13 14
14 namespace browser_sync { 15 namespace browser_sync {
15 class AssociatorInterface; 16 class NewAssociatorInterface;
16 class ChangeProcessor; 17 class ChangeProcessor;
17 } 18 }
18 19
19 class ProfileSyncFactoryMock : public ProfileSyncFactory { 20 class ProfileSyncFactoryMock : public ProfileSyncFactory {
20 public: 21 public:
21 ProfileSyncFactoryMock(); 22 ProfileSyncFactoryMock();
22 ProfileSyncFactoryMock( 23 ProfileSyncFactoryMock(
23 browser_sync::AssociatorInterface* bookmark_model_associator, 24 browser_sync::NewAssociatorInterface* bookmark_model_associator,
24 browser_sync::ChangeProcessor* bookmark_change_processor); 25 browser_sync::ChangeProcessor* bookmark_change_processor);
25 virtual ~ProfileSyncFactoryMock(); 26 virtual ~ProfileSyncFactoryMock();
26 27
27 MOCK_METHOD1(CreateProfileSyncService, 28 MOCK_METHOD1(CreateProfileSyncService,
28 ProfileSyncService*(const std::string&)); 29 ProfileSyncService*(const std::string&));
29 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); 30 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*));
30 MOCK_METHOD2(CreateDataTypeManager, 31 MOCK_METHOD2(CreateDataTypeManager,
31 browser_sync::DataTypeManager*( 32 browser_sync::DataTypeManager*(
32 browser_sync::SyncBackendHost*, 33 browser_sync::SyncBackendHost*,
33 const browser_sync::DataTypeController::TypeMap&)); 34 const browser_sync::DataTypeController::TypeMap&));
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 browser_sync::UnrecoverableErrorHandler* error_handler)); 69 browser_sync::UnrecoverableErrorHandler* error_handler));
69 MOCK_METHOD3(CreateTypedUrlSyncComponents, 70 MOCK_METHOD3(CreateTypedUrlSyncComponents,
70 SyncComponents( 71 SyncComponents(
71 ProfileSyncService* profile_sync_service, 72 ProfileSyncService* profile_sync_service,
72 history::HistoryBackend* history_backend, 73 history::HistoryBackend* history_backend,
73 browser_sync::UnrecoverableErrorHandler* error_handler)); 74 browser_sync::UnrecoverableErrorHandler* error_handler));
74 75
75 private: 76 private:
76 SyncComponents MakeBookmarkSyncComponents(); 77 SyncComponents MakeBookmarkSyncComponents();
77 78
78 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; 79 browser_sync::NewAssociatorInterface* bookmark_model_associator_;
79 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; 80 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_;
80 }; 81 };
81 82
82 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ 83 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698