1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/sync/glue/change_processor.h"
6 #include "chrome/browser/sync/glue/model_associator.h"
7 #include "chrome/browser/sync/profile_sync_components_factory_mock.h"
9 using browser_sync::AssociatorInterface
;
10 using browser_sync::ChangeProcessor
;
12 using testing::InvokeWithoutArgs
;
14 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock() {}
16 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock(
17 AssociatorInterface
* model_associator
, ChangeProcessor
* change_processor
)
18 : model_associator_(model_associator
),
19 change_processor_(change_processor
) {
20 ON_CALL(*this, CreateBookmarkSyncComponents(_
, _
)).
24 &ProfileSyncComponentsFactoryMock::MakeSyncComponents
));
27 ProfileSyncComponentsFactoryMock::~ProfileSyncComponentsFactoryMock() {}
29 ProfileSyncComponentsFactory::SyncComponents
30 ProfileSyncComponentsFactoryMock::MakeSyncComponents() {
31 return SyncComponents(model_associator_
.release(),
32 change_processor_
.release());