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

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

Issue 6056008: Move lots of GMock stuff out of line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright junk Created 9 years, 11 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) 2010 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::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 ProfileSyncFactoryMock::ProfileSyncFactoryMock() {}
15
14 ProfileSyncFactoryMock::ProfileSyncFactoryMock( 16 ProfileSyncFactoryMock::ProfileSyncFactoryMock(
15 AssociatorInterface* bookmark_model_associator, 17 AssociatorInterface* bookmark_model_associator,
16 ChangeProcessor* bookmark_change_processor) 18 ChangeProcessor* bookmark_change_processor)
17 : bookmark_model_associator_(bookmark_model_associator), 19 : bookmark_model_associator_(bookmark_model_associator),
18 bookmark_change_processor_(bookmark_change_processor) { 20 bookmark_change_processor_(bookmark_change_processor) {
19 ON_CALL(*this, CreateBookmarkSyncComponents(_, _)). 21 ON_CALL(*this, CreateBookmarkSyncComponents(_, _)).
20 WillByDefault( 22 WillByDefault(
21 InvokeWithoutArgs( 23 InvokeWithoutArgs(
22 this, 24 this,
23 &ProfileSyncFactoryMock::MakeBookmarkSyncComponents)); 25 &ProfileSyncFactoryMock::MakeBookmarkSyncComponents));
24 } 26 }
25 27
28 ProfileSyncFactoryMock::~ProfileSyncFactoryMock() {}
29
26 ProfileSyncFactory::SyncComponents 30 ProfileSyncFactory::SyncComponents
27 ProfileSyncFactoryMock::MakeBookmarkSyncComponents() { 31 ProfileSyncFactoryMock::MakeBookmarkSyncComponents() {
28 return SyncComponents(bookmark_model_associator_.release(), 32 return SyncComponents(bookmark_model_associator_.release(),
29 bookmark_change_processor_.release()); 33 bookmark_change_processor_.release());
30 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698