| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 void FakeSyncManager::RemoveObserver(Observer* observer) { | 180 void FakeSyncManager::RemoveObserver(Observer* observer) { |
| 181 observers_.RemoveObserver(observer); | 181 observers_.RemoveObserver(observer); |
| 182 } | 182 } |
| 183 | 183 |
| 184 SyncStatus FakeSyncManager::GetDetailedStatus() const { | 184 SyncStatus FakeSyncManager::GetDetailedStatus() const { |
| 185 NOTIMPLEMENTED(); | 185 NOTIMPLEMENTED(); |
| 186 return SyncStatus(); | 186 return SyncStatus(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void FakeSyncManager::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) { |
| 190 NOTIMPLEMENTED(); |
| 191 } |
| 192 |
| 189 void FakeSyncManager::SaveChanges() { | 193 void FakeSyncManager::SaveChanges() { |
| 190 // Do nothing. | 194 // Do nothing. |
| 191 } | 195 } |
| 192 | 196 |
| 193 void FakeSyncManager::ShutdownOnSyncThread(ShutdownReason reason) { | 197 void FakeSyncManager::ShutdownOnSyncThread(ShutdownReason reason) { |
| 194 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 198 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 195 test_user_share_.TearDown(); | 199 test_user_share_.TearDown(); |
| 196 } | 200 } |
| 197 | 201 |
| 198 UserShare* FakeSyncManager::GetUserShare() { | 202 UserShare* FakeSyncManager::GetUserShare() { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 262 } |
| 259 | 263 |
| 260 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { | 264 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { |
| 261 callback.Run(); | 265 callback.Run(); |
| 262 } | 266 } |
| 263 | 267 |
| 264 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, | 268 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, |
| 265 bool empty_jar) {} | 269 bool empty_jar) {} |
| 266 | 270 |
| 267 } // namespace syncer | 271 } // namespace syncer |
| OLD | NEW |