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 18 matching lines...) Expand all Loading... |
29 const base::TimeDelta& desired_delay, | 29 const base::TimeDelta& desired_delay, |
30 ModelTypeSet types, | 30 ModelTypeSet types, |
31 const tracked_objects::Location& nudge_location) OVERRIDE; | 31 const tracked_objects::Location& nudge_location) OVERRIDE; |
32 virtual void ScheduleInvalidationNudge( | 32 virtual void ScheduleInvalidationNudge( |
33 const base::TimeDelta& desired_delay, | 33 const base::TimeDelta& desired_delay, |
34 syncer::ModelType type, | 34 syncer::ModelType type, |
35 scoped_ptr<InvalidationInterface> interface, | 35 scoped_ptr<InvalidationInterface> interface, |
36 const tracked_objects::Location& nudge_location) OVERRIDE; | 36 const tracked_objects::Location& nudge_location) OVERRIDE; |
37 virtual void ScheduleConfiguration( | 37 virtual void ScheduleConfiguration( |
38 const ConfigurationParams& params) OVERRIDE; | 38 const ConfigurationParams& params) OVERRIDE; |
| 39 virtual void ScheduleInitialSyncNudge(syncer::ModelType model_type) OVERRIDE; |
39 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE; | 40 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE; |
40 | 41 |
41 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE; | 42 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE; |
42 virtual void OnCredentialsUpdated() OVERRIDE; | 43 virtual void OnCredentialsUpdated() OVERRIDE; |
43 virtual void OnConnectionStatusChange() OVERRIDE; | 44 virtual void OnConnectionStatusChange() OVERRIDE; |
44 | 45 |
45 // SyncSession::Delegate implementation. | 46 // SyncSession::Delegate implementation. |
46 virtual void OnThrottled( | 47 virtual void OnThrottled( |
47 const base::TimeDelta& throttle_duration) OVERRIDE; | 48 const base::TimeDelta& throttle_duration) OVERRIDE; |
48 virtual void OnTypesThrottled( | 49 virtual void OnTypesThrottled( |
(...skipping 10 matching lines...) Expand all Loading... |
59 virtual void OnSyncProtocolError( | 60 virtual void OnSyncProtocolError( |
60 const SyncProtocolError& error) OVERRIDE; | 61 const SyncProtocolError& error) OVERRIDE; |
61 virtual void OnReceivedGuRetryDelay( | 62 virtual void OnReceivedGuRetryDelay( |
62 const base::TimeDelta& delay) OVERRIDE; | 63 const base::TimeDelta& delay) OVERRIDE; |
63 virtual void OnReceivedMigrationRequest(ModelTypeSet types) OVERRIDE; | 64 virtual void OnReceivedMigrationRequest(ModelTypeSet types) OVERRIDE; |
64 }; | 65 }; |
65 | 66 |
66 } // namespace syncer | 67 } // namespace syncer |
67 | 68 |
68 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 69 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
OLD | NEW |