| 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/test/engine/fake_sync_scheduler.h" | 5 #include "sync/test/engine/fake_sync_scheduler.h" |
| 6 | 6 |
| 7 namespace syncer { | 7 namespace syncer { |
| 8 | 8 |
| 9 FakeSyncScheduler::FakeSyncScheduler() | 9 FakeSyncScheduler::FakeSyncScheduler() |
| 10 : created_on_loop_(MessageLoop::current()) {} | 10 : created_on_loop_(MessageLoop::current()) {} |
| 11 | 11 |
| 12 FakeSyncScheduler::~FakeSyncScheduler() {} | 12 FakeSyncScheduler::~FakeSyncScheduler() {} |
| 13 | 13 |
| 14 void FakeSyncScheduler::Start(Mode mode) { | 14 void FakeSyncScheduler::Start(Mode mode) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) { | 17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) { |
| 18 created_on_loop_->PostTask(FROM_HERE, callback); | 18 created_on_loop_->PostTask(FROM_HERE, callback); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void FakeSyncScheduler::ScheduleNudgeAsync( | 21 void FakeSyncScheduler::ScheduleNudgeAsync( |
| 22 const base::TimeDelta& delay, | 22 const base::TimeDelta& delay, |
| 23 NudgeSource source, | 23 NudgeSource source, |
| 24 ModelTypeSet types, | 24 ModelTypeSet types, |
| 25 const tracked_objects::Location& nudge_location) { | 25 const tracked_objects::Location& nudge_location) { |
| 26 } | 26 } |
| 27 | 27 |
| 28 void FakeSyncScheduler::ScheduleNudgeWithPayloadsAsync( | 28 void FakeSyncScheduler::ScheduleNudgeWithStatesAsync( |
| 29 const base::TimeDelta& delay, NudgeSource source, | 29 const base::TimeDelta& delay, NudgeSource source, |
| 30 const ModelTypePayloadMap& types_with_payloads, | 30 const ModelTypeStateMap& types_with_payloads, |
| 31 const tracked_objects::Location& nudge_location) { | 31 const tracked_objects::Location& nudge_location) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 bool FakeSyncScheduler::ScheduleConfiguration( | 34 bool FakeSyncScheduler::ScheduleConfiguration( |
| 35 const ConfigurationParams& params) { | 35 const ConfigurationParams& params) { |
| 36 params.ready_task.Run(); | 36 params.ready_task.Run(); |
| 37 return true; | 37 return true; |
| 38 } | 38 } |
| 39 | 39 |
| 40 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { | 40 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() { | 74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() { |
| 75 } | 75 } |
| 76 | 76 |
| 77 void FakeSyncScheduler::OnSyncProtocolError( | 77 void FakeSyncScheduler::OnSyncProtocolError( |
| 78 const sessions::SyncSessionSnapshot& snapshot) { | 78 const sessions::SyncSessionSnapshot& snapshot) { |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace syncer | 81 } // namespace syncer |
| OLD | NEW |