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.
5 #include "sync/test/engine/fake_sync_scheduler.h"
9 FakeSyncScheduler::FakeSyncScheduler() {}
11 FakeSyncScheduler::~FakeSyncScheduler() {}
13 void FakeSyncScheduler::Start(Mode mode
, base::Time last_poll_time
) {
16 void FakeSyncScheduler::Stop() {
19 void FakeSyncScheduler::ScheduleLocalNudge(
21 const tracked_objects::Location
& nudge_location
) {
24 void FakeSyncScheduler::ScheduleLocalRefreshRequest(
26 const tracked_objects::Location
& nudge_location
) {
29 void FakeSyncScheduler::ScheduleInvalidationNudge(
30 syncer::ModelType type
,
31 scoped_ptr
<InvalidationInterface
> interface
,
32 const tracked_objects::Location
& nudge_location
) {
35 void FakeSyncScheduler::ScheduleConfiguration(
36 const ConfigurationParams
& params
) {
37 params
.ready_task
.Run();
40 void FakeSyncScheduler::ScheduleClearServerData(const ClearParams
& params
) {
41 params
.report_success_task
.Run();
44 void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type
) {
47 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled
) {
50 void FakeSyncScheduler::OnCredentialsUpdated() {
54 void FakeSyncScheduler::OnConnectionStatusChange() {
58 void FakeSyncScheduler::OnThrottled(
59 const base::TimeDelta
& throttle_duration
) {
62 void FakeSyncScheduler::OnTypesThrottled(
64 const base::TimeDelta
& throttle_duration
) {
67 bool FakeSyncScheduler::IsCurrentlyThrottled() {
71 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate(
72 const base::TimeDelta
& new_interval
) {
75 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate(
76 const base::TimeDelta
& new_interval
) {
79 void FakeSyncScheduler::OnReceivedCustomNudgeDelays(
80 const std::map
<ModelType
, base::TimeDelta
>& nudge_delays
) {
83 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size
) {
86 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError
& error
) {
89 void FakeSyncScheduler::OnReceivedGuRetryDelay(
90 const base::TimeDelta
& delay
) {
93 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types
) {