OLD | NEW |
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/sync_backend_host_mock.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" |
6 | 6 |
7 namespace browser_sync { | 7 namespace browser_sync { |
8 | 8 |
9 using ::testing::_; | 9 using ::testing::_; |
10 | 10 |
11 ACTION(InvokeTask) { | 11 ACTION(InvokeTask) { |
12 arg3.Run(syncable::ModelEnumSet()); | 12 arg3.Run(syncable::ModelTypeSet()); |
13 } | 13 } |
14 | 14 |
15 SyncBackendHostMock::SyncBackendHostMock() { | 15 SyncBackendHostMock::SyncBackendHostMock() { |
16 // By default, invoke the ready callback. | 16 // By default, invoke the ready callback. |
17 ON_CALL(*this, ConfigureDataTypes(_, _, _, _, _)). | 17 ON_CALL(*this, ConfigureDataTypes(_, _, _, _, _)). |
18 WillByDefault(InvokeTask()); | 18 WillByDefault(InvokeTask()); |
19 } | 19 } |
20 | 20 |
21 SyncBackendHostMock::~SyncBackendHostMock() {} | 21 SyncBackendHostMock::~SyncBackendHostMock() {} |
22 | 22 |
23 } // namespace browser_sync | 23 } // namespace browser_sync |
OLD | NEW |