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

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

Issue 9395058: [Sync] Remove SyncableServiceAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 8 years, 10 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 #include "chrome/browser/sync/glue/change_processor.h" 5 #include "chrome/browser/sync/glue/change_processor.h"
6 #include "chrome/browser/sync/glue/model_associator.h" 6 #include "chrome/browser/sync/glue/model_associator.h"
7 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" 7 #include "chrome/browser/sync/profile_sync_components_factory_mock.h"
8 8
9 using browser_sync::AssociatorInterface; 9 using browser_sync::AssociatorInterface;
10 using browser_sync::ChangeProcessor; 10 using browser_sync::ChangeProcessor;
11 using testing::_; 11 using testing::_;
12 using testing::InvokeWithoutArgs; 12 using testing::InvokeWithoutArgs;
13 13
14 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock() {} 14 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock() {}
15 15
16 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock( 16 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock(
17 AssociatorInterface* model_associator, ChangeProcessor* change_processor) 17 AssociatorInterface* model_associator, ChangeProcessor* change_processor)
18 : model_associator_(model_associator), 18 : model_associator_(model_associator),
19 change_processor_(change_processor) { 19 change_processor_(change_processor) {
20 ON_CALL(*this, CreateBookmarkSyncComponents(_, _)). 20 ON_CALL(*this, CreateBookmarkSyncComponents(_, _)).
21 WillByDefault( 21 WillByDefault(
22 InvokeWithoutArgs( 22 InvokeWithoutArgs(
23 this, 23 this,
24 &ProfileSyncComponentsFactoryMock::MakeSyncComponents)); 24 &ProfileSyncComponentsFactoryMock::MakeSyncComponents));
25 ON_CALL(*this, CreateSearchEngineSyncComponents(_, _)).
26 WillByDefault(
27 InvokeWithoutArgs(
28 this,
29 &ProfileSyncComponentsFactoryMock::MakeSyncComponents));
30 ON_CALL(*this, CreateAppNotificationSyncComponents(_, _)).
31 WillByDefault(
32 InvokeWithoutArgs(
33 this,
34 &ProfileSyncComponentsFactoryMock::MakeSyncComponents));
35 } 25 }
36 26
37 ProfileSyncComponentsFactoryMock::~ProfileSyncComponentsFactoryMock() {} 27 ProfileSyncComponentsFactoryMock::~ProfileSyncComponentsFactoryMock() {}
38 28
39 ProfileSyncComponentsFactory::SyncComponents 29 ProfileSyncComponentsFactory::SyncComponents
40 ProfileSyncComponentsFactoryMock::MakeSyncComponents() { 30 ProfileSyncComponentsFactoryMock::MakeSyncComponents() {
41 return SyncComponents(model_associator_.release(), 31 return SyncComponents(model_associator_.release(),
42 change_processor_.release()); 32 change_processor_.release());
43 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698