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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the previous fix Created 9 years, 8 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_factory_mock.h" 7 #include "chrome/browser/sync/profile_sync_factory_mock.h"
8 8
9 using browser_sync::AssociatorInterface; 9 using browser_sync::NewAssociatorInterface;
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 ProfileSyncFactoryMock::ProfileSyncFactoryMock() {} 14 ProfileSyncFactoryMock::ProfileSyncFactoryMock() {}
15 15
16 ProfileSyncFactoryMock::ProfileSyncFactoryMock( 16 ProfileSyncFactoryMock::ProfileSyncFactoryMock(
17 AssociatorInterface* bookmark_model_associator, 17 NewAssociatorInterface* bookmark_model_associator,
18 ChangeProcessor* bookmark_change_processor) 18 ChangeProcessor* bookmark_change_processor)
19 : bookmark_model_associator_(bookmark_model_associator), 19 : bookmark_model_associator_(bookmark_model_associator),
20 bookmark_change_processor_(bookmark_change_processor) { 20 bookmark_change_processor_(bookmark_change_processor) {
21 ON_CALL(*this, CreateBookmarkSyncComponents(_, _)). 21 ON_CALL(*this, CreateBookmarkSyncComponents(_, _)).
22 WillByDefault( 22 WillByDefault(
23 InvokeWithoutArgs( 23 InvokeWithoutArgs(
24 this, 24 this,
25 &ProfileSyncFactoryMock::MakeBookmarkSyncComponents)); 25 &ProfileSyncFactoryMock::MakeBookmarkSyncComponents));
26 } 26 }
27 27
28 ProfileSyncFactoryMock::~ProfileSyncFactoryMock() {} 28 ProfileSyncFactoryMock::~ProfileSyncFactoryMock() {}
29 29
30 ProfileSyncFactory::SyncComponents 30 ProfileSyncFactory::SyncComponents
31 ProfileSyncFactoryMock::MakeBookmarkSyncComponents() { 31 ProfileSyncFactoryMock::MakeBookmarkSyncComponents() {
32 return SyncComponents(bookmark_model_associator_.release(), 32 return SyncComponents(bookmark_model_associator_,
33 bookmark_change_processor_.release()); 33 bookmark_change_processor_.release());
34 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698