OLD | NEW |
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 } |
OLD | NEW |