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/engine/fake_sync_manager.h" | 5 #include "components/sync/engine/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 16 matching lines...) Expand all Loading... |
27 namespace syncer { | 27 namespace syncer { |
28 | 28 |
29 FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types, | 29 FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types, |
30 ModelTypeSet progress_marker_types, | 30 ModelTypeSet progress_marker_types, |
31 ModelTypeSet configure_fail_types) | 31 ModelTypeSet configure_fail_types) |
32 : initial_sync_ended_types_(initial_sync_ended_types), | 32 : initial_sync_ended_types_(initial_sync_ended_types), |
33 progress_marker_types_(progress_marker_types), | 33 progress_marker_types_(progress_marker_types), |
34 configure_fail_types_(configure_fail_types), | 34 configure_fail_types_(configure_fail_types), |
35 last_configure_reason_(CONFIGURE_REASON_UNKNOWN), | 35 last_configure_reason_(CONFIGURE_REASON_UNKNOWN), |
36 num_invalidations_received_(0) { | 36 num_invalidations_received_(0) { |
37 fake_encryption_handler_.reset(new FakeSyncEncryptionHandler()); | 37 fake_encryption_handler_ = base::MakeUnique<FakeSyncEncryptionHandler>(); |
38 } | 38 } |
39 | 39 |
40 FakeSyncManager::~FakeSyncManager() {} | 40 FakeSyncManager::~FakeSyncManager() {} |
41 | 41 |
42 ModelTypeSet FakeSyncManager::GetAndResetCleanedTypes() { | 42 ModelTypeSet FakeSyncManager::GetAndResetCleanedTypes() { |
43 ModelTypeSet cleaned_types = cleaned_types_; | 43 ModelTypeSet cleaned_types = cleaned_types_; |
44 cleaned_types_.Clear(); | 44 cleaned_types_.Clear(); |
45 return cleaned_types; | 45 return cleaned_types; |
46 } | 46 } |
47 | 47 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } | 258 } |
259 | 259 |
260 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { | 260 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { |
261 callback.Run(); | 261 callback.Run(); |
262 } | 262 } |
263 | 263 |
264 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, | 264 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, |
265 bool empty_jar) {} | 265 bool empty_jar) {} |
266 | 266 |
267 } // namespace syncer | 267 } // namespace syncer |
OLD | NEW |