| 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 "components/sync/test/engine/fake_sync_scheduler.h" | 5 #include "components/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, base::Time last_poll_time) {} | 13 void FakeSyncScheduler::Start(Mode mode, base::Time last_poll_time) {} |
| 14 | 14 |
| 15 void FakeSyncScheduler::Stop() {} | 15 void FakeSyncScheduler::Stop() {} |
| 16 | 16 |
| 17 void FakeSyncScheduler::ScheduleLocalNudge( | 17 void FakeSyncScheduler::ScheduleLocalNudge( |
| 18 ModelTypeSet types, | 18 ModelTypeSet types, |
| 19 const tracked_objects::Location& nudge_location) {} | 19 const tracked_objects::Location& nudge_location) {} |
| 20 | 20 |
| 21 void FakeSyncScheduler::ScheduleLocalRefreshRequest( | 21 void FakeSyncScheduler::ScheduleLocalRefreshRequest( |
| 22 ModelTypeSet types, | 22 ModelTypeSet types, |
| 23 const tracked_objects::Location& nudge_location) {} | 23 const tracked_objects::Location& nudge_location) {} |
| 24 | 24 |
| 25 void FakeSyncScheduler::ScheduleInvalidationNudge( | 25 void FakeSyncScheduler::ScheduleInvalidationNudge( |
| 26 ModelType type, | 26 syncer::ModelType type, |
| 27 std::unique_ptr<InvalidationInterface> interface, | 27 std::unique_ptr<InvalidationInterface> interface, |
| 28 const tracked_objects::Location& nudge_location) {} | 28 const tracked_objects::Location& nudge_location) {} |
| 29 | 29 |
| 30 void FakeSyncScheduler::ScheduleConfiguration( | 30 void FakeSyncScheduler::ScheduleConfiguration( |
| 31 const ConfigurationParams& params) { | 31 const ConfigurationParams& params) { |
| 32 params.ready_task.Run(); | 32 params.ready_task.Run(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void FakeSyncScheduler::ScheduleClearServerData(const ClearParams& params) { | 35 void FakeSyncScheduler::ScheduleClearServerData(const ClearParams& params) { |
| 36 params.report_success_task.Run(); | 36 params.report_success_task.Run(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void FakeSyncScheduler::ScheduleInitialSyncNudge(ModelType model_type) {} | 39 void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type) { |
| 40 } |
| 40 | 41 |
| 41 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {} | 42 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {} |
| 42 | 43 |
| 43 void FakeSyncScheduler::OnCredentialsUpdated() {} | 44 void FakeSyncScheduler::OnCredentialsUpdated() {} |
| 44 | 45 |
| 45 void FakeSyncScheduler::OnConnectionStatusChange() {} | 46 void FakeSyncScheduler::OnConnectionStatusChange() {} |
| 46 | 47 |
| 47 void FakeSyncScheduler::OnThrottled(const base::TimeDelta& throttle_duration) {} | 48 void FakeSyncScheduler::OnThrottled(const base::TimeDelta& throttle_duration) {} |
| 48 | 49 |
| 49 void FakeSyncScheduler::OnTypesThrottled( | 50 void FakeSyncScheduler::OnTypesThrottled( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 65 | 66 |
| 66 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {} | 67 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {} |
| 67 | 68 |
| 68 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) {} | 69 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) {} |
| 69 | 70 |
| 70 void FakeSyncScheduler::OnReceivedGuRetryDelay(const base::TimeDelta& delay) {} | 71 void FakeSyncScheduler::OnReceivedGuRetryDelay(const base::TimeDelta& delay) {} |
| 71 | 72 |
| 72 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) {} | 73 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) {} |
| 73 | 74 |
| 74 } // namespace syncer | 75 } // namespace syncer |
| OLD | NEW |