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 // A fake implementation of the SyncScheduler. If needed, we should add default | 5 // A fake implementation of the SyncScheduler. If needed, we should add default |
6 // logic needed for tests (invoking callbacks, etc) here rather than in higher | 6 // logic needed for tests (invoking callbacks, etc) here rather than in higher |
7 // level test classes. | 7 // level test classes. |
8 | 8 |
9 #ifndef SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 9 #ifndef SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
10 #define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 10 #define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
(...skipping 14 matching lines...) Expand all Loading... |
25 ModelTypeSet types, | 25 ModelTypeSet types, |
26 const tracked_objects::Location& nudge_location) override; | 26 const tracked_objects::Location& nudge_location) override; |
27 void ScheduleLocalRefreshRequest( | 27 void ScheduleLocalRefreshRequest( |
28 ModelTypeSet types, | 28 ModelTypeSet types, |
29 const tracked_objects::Location& nudge_location) override; | 29 const tracked_objects::Location& nudge_location) override; |
30 void ScheduleInvalidationNudge( | 30 void ScheduleInvalidationNudge( |
31 syncer::ModelType type, | 31 syncer::ModelType type, |
32 scoped_ptr<InvalidationInterface> interface, | 32 scoped_ptr<InvalidationInterface> interface, |
33 const tracked_objects::Location& nudge_location) override; | 33 const tracked_objects::Location& nudge_location) override; |
34 void ScheduleConfiguration(const ConfigurationParams& params) override; | 34 void ScheduleConfiguration(const ConfigurationParams& params) override; |
| 35 void ScheduleClearServerData(const ClearParams& params) override; |
| 36 |
35 void ScheduleInitialSyncNudge(syncer::ModelType model_type) override; | 37 void ScheduleInitialSyncNudge(syncer::ModelType model_type) override; |
36 void SetNotificationsEnabled(bool notifications_enabled) override; | 38 void SetNotificationsEnabled(bool notifications_enabled) override; |
37 | 39 |
38 void OnCredentialsUpdated() override; | 40 void OnCredentialsUpdated() override; |
39 void OnConnectionStatusChange() override; | 41 void OnConnectionStatusChange() override; |
40 | 42 |
41 // SyncSession::Delegate implementation. | 43 // SyncSession::Delegate implementation. |
42 void OnThrottled(const base::TimeDelta& throttle_duration) override; | 44 void OnThrottled(const base::TimeDelta& throttle_duration) override; |
43 void OnTypesThrottled(ModelTypeSet types, | 45 void OnTypesThrottled(ModelTypeSet types, |
44 const base::TimeDelta& throttle_duration) override; | 46 const base::TimeDelta& throttle_duration) override; |
45 bool IsCurrentlyThrottled() override; | 47 bool IsCurrentlyThrottled() override; |
46 void OnReceivedShortPollIntervalUpdate( | 48 void OnReceivedShortPollIntervalUpdate( |
47 const base::TimeDelta& new_interval) override; | 49 const base::TimeDelta& new_interval) override; |
48 void OnReceivedLongPollIntervalUpdate( | 50 void OnReceivedLongPollIntervalUpdate( |
49 const base::TimeDelta& new_interval) override; | 51 const base::TimeDelta& new_interval) override; |
50 void OnReceivedCustomNudgeDelays( | 52 void OnReceivedCustomNudgeDelays( |
51 const std::map<ModelType, base::TimeDelta>& nudge_delays) override; | 53 const std::map<ModelType, base::TimeDelta>& nudge_delays) override; |
52 void OnReceivedClientInvalidationHintBufferSize(int size) override; | 54 void OnReceivedClientInvalidationHintBufferSize(int size) override; |
53 void OnSyncProtocolError(const SyncProtocolError& error) override; | 55 void OnSyncProtocolError(const SyncProtocolError& error) override; |
54 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override; | 56 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override; |
55 void OnReceivedMigrationRequest(ModelTypeSet types) override; | 57 void OnReceivedMigrationRequest(ModelTypeSet types) override; |
56 }; | 58 }; |
57 | 59 |
58 } // namespace syncer | 60 } // namespace syncer |
59 | 61 |
60 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 62 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
OLD | NEW |