Add plumbing for scroll parent.
[chromium-blink-merge.git] / sync / test / engine / fake_sync_scheduler.cc
blob585248e3523d13f336c68c2fce3024138e245e21
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"
7 namespace syncer {
9 FakeSyncScheduler::FakeSyncScheduler() {}
11 FakeSyncScheduler::~FakeSyncScheduler() {}
13 void FakeSyncScheduler::Start(Mode mode) {
16 void FakeSyncScheduler::RequestStop() {
19 void FakeSyncScheduler::ScheduleLocalNudge(
20 const base::TimeDelta& desired_delay,
21 ModelTypeSet types,
22 const tracked_objects::Location& nudge_location) {
25 void FakeSyncScheduler::ScheduleLocalRefreshRequest(
26 const base::TimeDelta& desired_delay,
27 ModelTypeSet types,
28 const tracked_objects::Location& nudge_location) {
31 void FakeSyncScheduler::ScheduleInvalidationNudge(
32 const base::TimeDelta& desired_delay,
33 const ModelTypeInvalidationMap& invalidation_map,
34 const tracked_objects::Location& nudge_location) {
37 bool FakeSyncScheduler::ScheduleConfiguration(
38 const ConfigurationParams& params) {
39 params.ready_task.Run();
40 return true;
43 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
46 base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const {
47 return base::TimeDelta();
50 void FakeSyncScheduler::OnCredentialsUpdated() {
54 void FakeSyncScheduler::OnConnectionStatusChange() {
58 void FakeSyncScheduler::OnThrottled(
59 const base::TimeDelta& throttle_duration) {
62 void FakeSyncScheduler::OnTypesThrottled(
63 ModelTypeSet types,
64 const base::TimeDelta& throttle_duration) {
67 bool FakeSyncScheduler::IsCurrentlyThrottled() {
68 return false;
71 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate(
72 const base::TimeDelta& new_interval) {
75 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate(
76 const base::TimeDelta& new_interval) {
79 void FakeSyncScheduler::OnReceivedSessionsCommitDelay(
80 const base::TimeDelta& new_delay) {
83 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {
86 void FakeSyncScheduler::OnShouldStopSyncingPermanently() {
89 void FakeSyncScheduler::OnSyncProtocolError(
90 const sessions::SyncSessionSnapshot& snapshot) {
93 } // namespace syncer