| 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     : created_on_loop_(base::MessageLoop::current()) {} | 10     : created_on_loop_(base::MessageLoop::current()) {} | 
| 11 | 11 | 
| 12 FakeSyncScheduler::~FakeSyncScheduler() {} | 12 FakeSyncScheduler::~FakeSyncScheduler() {} | 
| 13 | 13 | 
| 14 void FakeSyncScheduler::Start(Mode mode) { | 14 void FakeSyncScheduler::Start(Mode mode) { | 
| 15 } | 15 } | 
| 16 | 16 | 
| 17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) { | 17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) { | 
| 18   created_on_loop_->PostTask(FROM_HERE, callback); | 18   created_on_loop_->PostTask(FROM_HERE, callback); | 
| 19 } | 19 } | 
| 20 | 20 | 
| 21 void FakeSyncScheduler::ScheduleNudgeAsync( | 21 void FakeSyncScheduler::ScheduleLocalNudge( | 
| 22      const base::TimeDelta& delay, | 22     const base::TimeDelta& desired_delay, | 
| 23      NudgeSource source, | 23     ModelTypeSet types, | 
| 24      ModelTypeSet types, | 24     const tracked_objects::Location& nudge_location) { | 
| 25      const tracked_objects::Location& nudge_location) { |  | 
| 26 } | 25 } | 
| 27 | 26 | 
| 28 void FakeSyncScheduler::ScheduleNudgeWithStatesAsync( | 27 void FakeSyncScheduler::ScheduleLocalRefreshRequest( | 
| 29      const base::TimeDelta& delay, NudgeSource source, | 28     const base::TimeDelta& desired_delay, | 
| 30      const ModelTypeInvalidationMap& invalidation_map, | 29     ModelTypeSet types, | 
| 31      const tracked_objects::Location& nudge_location) { | 30     const tracked_objects::Location& nudge_location) { | 
|  | 31 } | 
|  | 32 | 
|  | 33 void FakeSyncScheduler::ScheduleInvalidationNudge( | 
|  | 34     const base::TimeDelta& desired_delay, | 
|  | 35     const ModelTypeInvalidationMap& invalidation_map, | 
|  | 36     const tracked_objects::Location& nudge_location) { | 
| 32 } | 37 } | 
| 33 | 38 | 
| 34 bool FakeSyncScheduler::ScheduleConfiguration( | 39 bool FakeSyncScheduler::ScheduleConfiguration( | 
| 35      const ConfigurationParams& params) { | 40      const ConfigurationParams& params) { | 
| 36   params.ready_task.Run(); | 41   params.ready_task.Run(); | 
| 37   return true; | 42   return true; | 
| 38 } | 43 } | 
| 39 | 44 | 
| 40 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { | 45 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { | 
| 41 } | 46 } | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 64 } | 69 } | 
| 65 | 70 | 
| 66 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate( | 71 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate( | 
| 67      const base::TimeDelta& new_interval) { | 72      const base::TimeDelta& new_interval) { | 
| 68 } | 73 } | 
| 69 | 74 | 
| 70 void FakeSyncScheduler::OnReceivedSessionsCommitDelay( | 75 void FakeSyncScheduler::OnReceivedSessionsCommitDelay( | 
| 71      const base::TimeDelta& new_delay) { | 76      const base::TimeDelta& new_delay) { | 
| 72 } | 77 } | 
| 73 | 78 | 
|  | 79 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) { | 
|  | 80 } | 
|  | 81 | 
| 74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() { | 82 void FakeSyncScheduler::OnShouldStopSyncingPermanently() { | 
| 75 } | 83 } | 
| 76 | 84 | 
| 77 void FakeSyncScheduler::OnSyncProtocolError( | 85 void FakeSyncScheduler::OnSyncProtocolError( | 
| 78      const sessions::SyncSessionSnapshot& snapshot) { | 86      const sessions::SyncSessionSnapshot& snapshot) { | 
| 79 } | 87 } | 
| 80 | 88 | 
| 81 }  // namespace syncer | 89 }  // namespace syncer | 
| OLD | NEW | 
|---|