Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "sync/test/engine/fake_sync_scheduler.h" | |
| 6 | |
| 7 #include "sync/engine/syncer.h" | |
| 8 | |
| 9 namespace syncer { | |
| 10 | |
| 11 FakeSyncScheduler::FakeSyncScheduler() | |
| 12 : SyncScheduler("fake", NULL, new Syncer()), | |
| 13 created_on_loop_(MessageLoop::current()) {} | |
| 14 | |
| 15 FakeSyncScheduler::~FakeSyncScheduler() {} | |
| 16 | |
| 17 void FakeSyncScheduler::Start(Mode mode) { | |
| 18 } | |
| 19 | |
| 20 void FakeSyncScheduler::RequestStop(const base::Closure& callback) { | |
| 21 created_on_loop_->PostTask(FROM_HERE, callback); | |
| 22 } | |
| 23 | |
| 24 void FakeSyncScheduler::ScheduleNudgeAsync( | |
| 25 const base::TimeDelta& delay, | |
| 26 NudgeSource source, | |
| 27 ModelTypeSet types, | |
| 28 const tracked_objects::Location& nudge_location) { | |
| 29 } | |
| 30 | |
| 31 void FakeSyncScheduler::ScheduleNudgeWithPayloadsAsync( | |
| 32 const base::TimeDelta& delay, NudgeSource source, | |
| 33 const ModelTypePayloadMap& types_with_payloads, | |
| 34 const tracked_objects::Location& nudge_location) { | |
| 35 } | |
| 36 | |
| 37 bool FakeSyncScheduler::ScheduleConfiguration( | |
| 38 const ConfigurationParams& params) { | |
|
Nicolas Zea
2012/07/18 21:10:12
probably should invoke the ready callback.
tim (not reviewing)
2012/07/18 21:57:47
Done.
| |
| 39 return true; | |
| 40 } | |
| 41 | |
| 42 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { | |
| 43 } | |
| 44 | |
| 45 void FakeSyncScheduler::OnSilencedUntil( | |
| 46 const base::TimeTicks& silenced_until) { | |
| 47 } | |
| 48 bool FakeSyncScheduler::IsSyncingCurrentlySilenced() { | |
| 49 return false; | |
| 50 } | |
| 51 | |
| 52 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate( | |
| 53 const base::TimeDelta& new_interval) { | |
| 54 } | |
| 55 | |
| 56 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate( | |
| 57 const base::TimeDelta& new_interval) { | |
| 58 } | |
| 59 | |
| 60 void FakeSyncScheduler::OnReceivedSessionsCommitDelay( | |
| 61 const base::TimeDelta& new_delay) { | |
| 62 } | |
| 63 | |
| 64 void FakeSyncScheduler::OnShouldStopSyncingPermanently() { | |
| 65 } | |
| 66 | |
| 67 void FakeSyncScheduler::OnSyncProtocolError( | |
| 68 const sessions::SyncSessionSnapshot& snapshot) { | |
| 69 } | |
| 70 | |
| 71 } // namespace csync | |
|
Nicolas Zea
2012/07/18 21:10:12
csync -> syncer
tim (not reviewing)
2012/07/18 21:57:47
Done.
| |
| OLD | NEW |