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