Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / sync / profile_sync_components_factory_mock.cc
blob3f492b4a54110d87bd99365c161dc3b805719170
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;
11 using testing::_;
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(_, _)).
21 WillByDefault(
22 InvokeWithoutArgs(
23 this,
24 &ProfileSyncComponentsFactoryMock::MakeSyncComponents));
27 ProfileSyncComponentsFactoryMock::~ProfileSyncComponentsFactoryMock() {}
29 ProfileSyncComponentsFactory::SyncComponents
30 ProfileSyncComponentsFactoryMock::MakeSyncComponents() {
31 return SyncComponents(model_associator_.release(),
32 change_processor_.release());