| 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..2327949e5223375621ab20869a72e4ad4e78bd69
|
| --- /dev/null
|
| +++ b/sync/test/engine/fake_sync_scheduler.cc
|
| @@ -0,0 +1,81 @@
|
| +// 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"
|
| +
|
| +namespace syncer {
|
| +
|
| +FakeSyncScheduler::FakeSyncScheduler()
|
| + : 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) {
|
| + params.ready_task.Run();
|
| + return true;
|
| +}
|
| +
|
| +void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
|
| +}
|
| +
|
| +base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const {
|
| + return base::TimeDelta();
|
| +}
|
| +
|
| +void FakeSyncScheduler::OnCredentialsUpdated() {
|
| +
|
| +}
|
| +
|
| +void FakeSyncScheduler::OnConnectionStatusChange() {
|
| +
|
| +}
|
| +
|
| +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 syncer
|
|
|