Chromium Code Reviews| Index: sync/test/engine/fake_sync_scheduler.cc |
| diff --git a/sync/test/engine/fake_sync_scheduler.cc b/sync/test/engine/fake_sync_scheduler.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..845102a07ea199310cd9572e368d87ffb99fad02 |
| --- /dev/null |
| +++ b/sync/test/engine/fake_sync_scheduler.cc |
| @@ -0,0 +1,71 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "sync/test/engine/fake_sync_scheduler.h" |
| + |
| +#include "sync/engine/syncer.h" |
| + |
| +namespace syncer { |
| + |
| +FakeSyncScheduler::FakeSyncScheduler() |
| + : SyncScheduler("fake", NULL, new Syncer()), |
| + created_on_loop_(MessageLoop::current()) {} |
| + |
| +FakeSyncScheduler::~FakeSyncScheduler() {} |
| + |
| +void FakeSyncScheduler::Start(Mode mode) { |
| +} |
| + |
| +void FakeSyncScheduler::RequestStop(const base::Closure& callback) { |
| + created_on_loop_->PostTask(FROM_HERE, callback); |
| +} |
| + |
| +void FakeSyncScheduler::ScheduleNudgeAsync( |
| + const base::TimeDelta& delay, |
| + NudgeSource source, |
| + ModelTypeSet types, |
| + const tracked_objects::Location& nudge_location) { |
| +} |
| + |
| +void FakeSyncScheduler::ScheduleNudgeWithPayloadsAsync( |
| + const base::TimeDelta& delay, NudgeSource source, |
| + const ModelTypePayloadMap& types_with_payloads, |
| + const tracked_objects::Location& nudge_location) { |
| +} |
| + |
| +bool FakeSyncScheduler::ScheduleConfiguration( |
| + 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.
|
| + return true; |
| +} |
| + |
| +void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { |
| +} |
| + |
| +void FakeSyncScheduler::OnSilencedUntil( |
| + const base::TimeTicks& silenced_until) { |
| +} |
| +bool FakeSyncScheduler::IsSyncingCurrentlySilenced() { |
| + return false; |
| +} |
| + |
| +void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate( |
| + const base::TimeDelta& new_interval) { |
| +} |
| + |
| +void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate( |
| + const base::TimeDelta& new_interval) { |
| +} |
| + |
| +void FakeSyncScheduler::OnReceivedSessionsCommitDelay( |
| + const base::TimeDelta& new_delay) { |
| +} |
| + |
| +void FakeSyncScheduler::OnShouldStopSyncingPermanently() { |
| +} |
| + |
| +void FakeSyncScheduler::OnSyncProtocolError( |
| + const sessions::SyncSessionSnapshot& snapshot) { |
| +} |
| + |
| +} // namespace csync |
|
Nicolas Zea
2012/07/18 21:10:12
csync -> syncer
tim (not reviewing)
2012/07/18 21:57:47
Done.
|