OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/sync/driver/glue/sync_backend_host_mock.h" | 5 #include "components/sync/driver/glue/sync_backend_host_mock.h" |
6 | 6 |
7 #include "components/sync/core/activation_context.h" | 7 #include "components/sync/core/activation_context.h" |
8 #include "components/sync/driver/sync_frontend.h" | 8 #include "components/sync/driver/sync_frontend.h" |
9 | 9 |
10 namespace browser_sync { | 10 namespace browser_sync { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 void SyncBackendHostMock::DisableProtocolEventForwarding() {} | 134 void SyncBackendHostMock::DisableProtocolEventForwarding() {} |
135 | 135 |
136 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {} | 136 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {} |
137 | 137 |
138 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {} | 138 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {} |
139 | 139 |
140 void SyncBackendHostMock::GetAllNodesForTypes( | 140 void SyncBackendHostMock::GetAllNodesForTypes( |
141 syncer::ModelTypeSet types, | 141 syncer::ModelTypeSet types, |
142 base::Callback<void(const std::vector<syncer::ModelType>& type, | 142 base::Callback<void(const std::vector<syncer::ModelType>& type, |
143 ScopedVector<base::ListValue>)> callback) {} | 143 std::vector<std::unique_ptr<base::ListValue>>)> |
| 144 callback) {} |
144 | 145 |
145 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 146 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { |
146 fail_initial_download_ = should_fail; | 147 fail_initial_download_ = should_fail; |
147 } | 148 } |
148 | 149 |
149 void SyncBackendHostMock::ClearServerData( | 150 void SyncBackendHostMock::ClearServerData( |
150 const syncer::SyncManager::ClearServerDataCallback& callback) { | 151 const syncer::SyncManager::ClearServerDataCallback& callback) { |
151 callback.Run(); | 152 callback.Run(); |
152 } | 153 } |
153 | 154 |
154 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, | 155 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, |
155 bool empty_jar) {} | 156 bool empty_jar) {} |
156 | 157 |
157 } // namespace browser_sync | 158 } // namespace browser_sync |
OLD | NEW |