| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 194 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 195 test_user_share_.TearDown(); | 195 test_user_share_.TearDown(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 UserShare* FakeSyncManager::GetUserShare() { | 198 UserShare* FakeSyncManager::GetUserShare() { |
| 199 return test_user_share_.user_share(); | 199 return test_user_share_.user_share(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 std::unique_ptr<syncer_v2::ModelTypeConnector> | 202 std::unique_ptr<syncer_v2::ModelTypeConnector> |
| 203 FakeSyncManager::GetModelTypeConnectorProxy() { | 203 FakeSyncManager::GetModelTypeConnectorProxy() { |
| 204 return base::WrapUnique(new syncer_v2::FakeModelTypeConnector()); | 204 return base::MakeUnique<syncer_v2::FakeModelTypeConnector>(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 const std::string FakeSyncManager::cache_guid() { | 207 const std::string FakeSyncManager::cache_guid() { |
| 208 return test_user_share_.user_share()->directory->cache_guid(); | 208 return test_user_share_.user_share()->directory->cache_guid(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { | 211 bool FakeSyncManager::ReceivedExperiment(Experiments* experiments) { |
| 212 return false; | 212 return false; |
| 213 } | 213 } |
| 214 | 214 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |