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 "sync/internal_api/public/test/fake_sync_manager.h" | 5 #include "sync/internal_api/public/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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 void FakeSyncManager::RemoveObserver(Observer* observer) { | 183 void FakeSyncManager::RemoveObserver(Observer* observer) { |
184 observers_.RemoveObserver(observer); | 184 observers_.RemoveObserver(observer); |
185 } | 185 } |
186 | 186 |
187 SyncStatus FakeSyncManager::GetDetailedStatus() const { | 187 SyncStatus FakeSyncManager::GetDetailedStatus() const { |
188 NOTIMPLEMENTED(); | 188 NOTIMPLEMENTED(); |
189 return SyncStatus(); | 189 return SyncStatus(); |
190 } | 190 } |
191 | 191 |
| 192 void FakeSyncManager::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) { |
| 193 NOTIMPLEMENTED(); |
| 194 } |
| 195 |
192 void FakeSyncManager::SaveChanges() { | 196 void FakeSyncManager::SaveChanges() { |
193 // Do nothing. | 197 // Do nothing. |
194 } | 198 } |
195 | 199 |
196 void FakeSyncManager::ShutdownOnSyncThread(ShutdownReason reason) { | 200 void FakeSyncManager::ShutdownOnSyncThread(ShutdownReason reason) { |
197 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 201 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
198 test_user_share_.TearDown(); | 202 test_user_share_.TearDown(); |
199 } | 203 } |
200 | 204 |
201 UserShare* FakeSyncManager::GetUserShare() { | 205 UserShare* FakeSyncManager::GetUserShare() { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 } | 270 } |
267 | 271 |
268 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { | 272 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { |
269 callback.Run(); | 273 callback.Run(); |
270 } | 274 } |
271 | 275 |
272 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, | 276 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, |
273 bool empty_jar) {} | 277 bool empty_jar) {} |
274 | 278 |
275 } // namespace syncer | 279 } // namespace syncer |
OLD | NEW |