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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 ModelTypeSet types, | 48 ModelTypeSet types, |
49 const base::TimeDelta& throttle_duration) OVERRIDE; | 49 const base::TimeDelta& throttle_duration) OVERRIDE; |
50 virtual bool IsCurrentlyThrottled() OVERRIDE; | 50 virtual bool IsCurrentlyThrottled() OVERRIDE; |
51 virtual void OnReceivedShortPollIntervalUpdate( | 51 virtual void OnReceivedShortPollIntervalUpdate( |
52 const base::TimeDelta& new_interval) OVERRIDE; | 52 const base::TimeDelta& new_interval) OVERRIDE; |
53 virtual void OnReceivedLongPollIntervalUpdate( | 53 virtual void OnReceivedLongPollIntervalUpdate( |
54 const base::TimeDelta& new_interval) OVERRIDE; | 54 const base::TimeDelta& new_interval) OVERRIDE; |
55 virtual void OnReceivedSessionsCommitDelay( | 55 virtual void OnReceivedSessionsCommitDelay( |
56 const base::TimeDelta& new_delay) OVERRIDE; | 56 const base::TimeDelta& new_delay) OVERRIDE; |
57 virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE; | 57 virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE; |
58 virtual void OnShouldStopSyncingPermanently() OVERRIDE; | |
59 virtual void OnSyncProtocolError( | 58 virtual void OnSyncProtocolError( |
60 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; | 59 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; |
61 }; | 60 }; |
62 | 61 |
63 } // namespace syncer | 62 } // namespace syncer |
64 | 63 |
65 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 64 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
OLD | NEW |