| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sync/test/engine/fake_sync_scheduler.h" | 5 #include "sync/test/engine/fake_sync_scheduler.h" |
| 6 | 6 |
| 7 namespace syncer { | 7 namespace syncer { |
| 8 | 8 |
| 9 FakeSyncScheduler::FakeSyncScheduler() {} | 9 FakeSyncScheduler::FakeSyncScheduler() {} |
| 10 | 10 |
| 11 FakeSyncScheduler::~FakeSyncScheduler() {} | 11 FakeSyncScheduler::~FakeSyncScheduler() {} |
| 12 | 12 |
| 13 void FakeSyncScheduler::Start(Mode mode) { | 13 void FakeSyncScheduler::Start(Mode mode) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 void FakeSyncScheduler::Stop() { | 16 void FakeSyncScheduler::Stop() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 void FakeSyncScheduler::ScheduleLocalNudge( | 19 void FakeSyncScheduler::ScheduleLocalNudge( |
| 20 const base::TimeDelta& desired_delay, | |
| 21 ModelTypeSet types, | 20 ModelTypeSet types, |
| 22 const tracked_objects::Location& nudge_location) { | 21 const tracked_objects::Location& nudge_location) { |
| 23 } | 22 } |
| 24 | 23 |
| 25 void FakeSyncScheduler::ScheduleLocalRefreshRequest( | 24 void FakeSyncScheduler::ScheduleLocalRefreshRequest( |
| 26 const base::TimeDelta& desired_delay, | |
| 27 ModelTypeSet types, | 25 ModelTypeSet types, |
| 28 const tracked_objects::Location& nudge_location) { | 26 const tracked_objects::Location& nudge_location) { |
| 29 } | 27 } |
| 30 | 28 |
| 31 void FakeSyncScheduler::ScheduleInvalidationNudge( | 29 void FakeSyncScheduler::ScheduleInvalidationNudge( |
| 32 const base::TimeDelta& desired_delay, | |
| 33 syncer::ModelType type, | 30 syncer::ModelType type, |
| 34 scoped_ptr<InvalidationInterface> interface, | 31 scoped_ptr<InvalidationInterface> interface, |
| 35 const tracked_objects::Location& nudge_location) { | 32 const tracked_objects::Location& nudge_location) { |
| 36 } | 33 } |
| 37 | 34 |
| 38 void FakeSyncScheduler::ScheduleConfiguration( | 35 void FakeSyncScheduler::ScheduleConfiguration( |
| 39 const ConfigurationParams& params) { | 36 const ConfigurationParams& params) { |
| 40 params.ready_task.Run(); | 37 params.ready_task.Run(); |
| 41 } | 38 } |
| 42 | 39 |
| 43 void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type) { | 40 void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type) { |
| 44 } | 41 } |
| 45 | 42 |
| 46 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { | 43 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { |
| 47 } | 44 } |
| 48 | 45 |
| 49 base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const { | |
| 50 return base::TimeDelta(); | |
| 51 } | |
| 52 | |
| 53 void FakeSyncScheduler::OnCredentialsUpdated() { | 46 void FakeSyncScheduler::OnCredentialsUpdated() { |
| 54 | 47 |
| 55 } | 48 } |
| 56 | 49 |
| 57 void FakeSyncScheduler::OnConnectionStatusChange() { | 50 void FakeSyncScheduler::OnConnectionStatusChange() { |
| 58 | 51 |
| 59 } | 52 } |
| 60 | 53 |
| 61 void FakeSyncScheduler::OnThrottled( | 54 void FakeSyncScheduler::OnThrottled( |
| 62 const base::TimeDelta& throttle_duration) { | 55 const base::TimeDelta& throttle_duration) { |
| 63 } | 56 } |
| 64 | 57 |
| 65 void FakeSyncScheduler::OnTypesThrottled( | 58 void FakeSyncScheduler::OnTypesThrottled( |
| 66 ModelTypeSet types, | 59 ModelTypeSet types, |
| 67 const base::TimeDelta& throttle_duration) { | 60 const base::TimeDelta& throttle_duration) { |
| 68 } | 61 } |
| 69 | 62 |
| 70 bool FakeSyncScheduler::IsCurrentlyThrottled() { | 63 bool FakeSyncScheduler::IsCurrentlyThrottled() { |
| 71 return false; | 64 return false; |
| 72 } | 65 } |
| 73 | 66 |
| 74 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate( | 67 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate( |
| 75 const base::TimeDelta& new_interval) { | 68 const base::TimeDelta& new_interval) { |
| 76 } | 69 } |
| 77 | 70 |
| 78 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate( | 71 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate( |
| 79 const base::TimeDelta& new_interval) { | 72 const base::TimeDelta& new_interval) { |
| 80 } | 73 } |
| 81 | 74 |
| 82 void FakeSyncScheduler::OnReceivedSessionsCommitDelay( | 75 void FakeSyncScheduler::OnReceivedCustomNudgeDelays( |
| 83 const base::TimeDelta& new_delay) { | 76 const std::map<ModelType, int>& nudge_delays) { |
| 84 } | 77 } |
| 85 | 78 |
| 86 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) { | 79 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) { |
| 87 } | 80 } |
| 88 | 81 |
| 89 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) { | 82 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) { |
| 90 } | 83 } |
| 91 | 84 |
| 92 void FakeSyncScheduler::OnReceivedGuRetryDelay( | 85 void FakeSyncScheduler::OnReceivedGuRetryDelay( |
| 93 const base::TimeDelta& delay) { | 86 const base::TimeDelta& delay) { |
| 94 } | 87 } |
| 95 | 88 |
| 96 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) { | 89 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) { |
| 97 } | 90 } |
| 98 | 91 |
| 99 } // namespace syncer | 92 } // namespace syncer |
| OLD | NEW |