• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 namespace syncer {
8 
FakeSyncScheduler()9 FakeSyncScheduler::FakeSyncScheduler() {}
10 
~FakeSyncScheduler()11 FakeSyncScheduler::~FakeSyncScheduler() {}
12 
Start(Mode mode)13 void FakeSyncScheduler::Start(Mode mode) {
14 }
15 
Stop()16 void FakeSyncScheduler::Stop() {
17 }
18 
ScheduleLocalNudge(const base::TimeDelta & desired_delay,ModelTypeSet types,const tracked_objects::Location & nudge_location)19 void FakeSyncScheduler::ScheduleLocalNudge(
20     const base::TimeDelta& desired_delay,
21     ModelTypeSet types,
22     const tracked_objects::Location& nudge_location) {
23 }
24 
ScheduleLocalRefreshRequest(const base::TimeDelta & desired_delay,ModelTypeSet types,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) {
29 }
30 
ScheduleInvalidationNudge(const base::TimeDelta & desired_delay,const ObjectIdInvalidationMap & invalidation_map,const tracked_objects::Location & nudge_location)31 void FakeSyncScheduler::ScheduleInvalidationNudge(
32     const base::TimeDelta& desired_delay,
33     const ObjectIdInvalidationMap& invalidation_map,
34     const tracked_objects::Location& nudge_location) {
35 }
36 
ScheduleConfiguration(const ConfigurationParams & params)37 void FakeSyncScheduler::ScheduleConfiguration(
38      const ConfigurationParams& params) {
39   params.ready_task.Run();
40 }
41 
SetNotificationsEnabled(bool notifications_enabled)42 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
43 }
44 
GetSessionsCommitDelay() const45 base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const {
46   return base::TimeDelta();
47 }
48 
OnCredentialsUpdated()49 void FakeSyncScheduler::OnCredentialsUpdated() {
50 
51 }
52 
OnConnectionStatusChange()53 void FakeSyncScheduler::OnConnectionStatusChange() {
54 
55 }
56 
OnThrottled(const base::TimeDelta & throttle_duration)57 void FakeSyncScheduler::OnThrottled(
58     const base::TimeDelta& throttle_duration) {
59 }
60 
OnTypesThrottled(ModelTypeSet types,const base::TimeDelta & throttle_duration)61 void FakeSyncScheduler::OnTypesThrottled(
62     ModelTypeSet types,
63     const base::TimeDelta& throttle_duration) {
64 }
65 
IsCurrentlyThrottled()66 bool FakeSyncScheduler::IsCurrentlyThrottled() {
67   return false;
68 }
69 
OnReceivedShortPollIntervalUpdate(const base::TimeDelta & new_interval)70 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate(
71      const base::TimeDelta& new_interval) {
72 }
73 
OnReceivedLongPollIntervalUpdate(const base::TimeDelta & new_interval)74 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate(
75      const base::TimeDelta& new_interval) {
76 }
77 
OnReceivedSessionsCommitDelay(const base::TimeDelta & new_delay)78 void FakeSyncScheduler::OnReceivedSessionsCommitDelay(
79      const base::TimeDelta& new_delay) {
80 }
81 
OnReceivedClientInvalidationHintBufferSize(int size)82 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {
83 }
84 
OnSyncProtocolError(const sessions::SyncSessionSnapshot & snapshot)85 void FakeSyncScheduler::OnSyncProtocolError(
86      const sessions::SyncSessionSnapshot& snapshot) {
87 }
88 
89 }  // namespace syncer
90