OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/core/test/fake_sync_manager.h" | 5 #include "components/sync/core/test/fake_sync_manager.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 bool FakeSyncManager::HasUnsyncedItems() { | 215 bool FakeSyncManager::HasUnsyncedItems() { |
216 NOTIMPLEMENTED(); | 216 NOTIMPLEMENTED(); |
217 return false; | 217 return false; |
218 } | 218 } |
219 | 219 |
220 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() { | 220 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() { |
221 return fake_encryption_handler_.get(); | 221 return fake_encryption_handler_.get(); |
222 } | 222 } |
223 | 223 |
224 ScopedVector<syncer::ProtocolEvent> | 224 std::vector<std::unique_ptr<ProtocolEvent>> |
225 FakeSyncManager::GetBufferedProtocolEvents() { | 225 FakeSyncManager::GetBufferedProtocolEvents() { |
226 return ScopedVector<syncer::ProtocolEvent>(); | 226 return std::vector<std::unique_ptr<ProtocolEvent>>(); |
227 } | 227 } |
228 | 228 |
229 std::unique_ptr<base::ListValue> FakeSyncManager::GetAllNodesForType( | 229 std::unique_ptr<base::ListValue> FakeSyncManager::GetAllNodesForType( |
230 syncer::ModelType type) { | 230 syncer::ModelType type) { |
231 return std::unique_ptr<base::ListValue>(new base::ListValue()); | 231 return std::unique_ptr<base::ListValue>(new base::ListValue()); |
232 } | 232 } |
233 | 233 |
234 void FakeSyncManager::RefreshTypes(ModelTypeSet types) { | 234 void FakeSyncManager::RefreshTypes(ModelTypeSet types) { |
235 last_refresh_request_types_ = types; | 235 last_refresh_request_types_ = types; |
236 } | 236 } |
(...skipping 26 matching lines...) Expand all Loading... |
263 } | 263 } |
264 | 264 |
265 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { | 265 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { |
266 callback.Run(); | 266 callback.Run(); |
267 } | 267 } |
268 | 268 |
269 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, | 269 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, |
270 bool empty_jar) {} | 270 bool empty_jar) {} |
271 | 271 |
272 } // namespace syncer | 272 } // namespace syncer |
OLD | NEW |