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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const base::TimeDelta& new_interval) OVERRIDE; | 46 const base::TimeDelta& new_interval) OVERRIDE; |
47 virtual void OnReceivedLongPollIntervalUpdate( | 47 virtual void OnReceivedLongPollIntervalUpdate( |
48 const base::TimeDelta& new_interval) OVERRIDE; | 48 const base::TimeDelta& new_interval) OVERRIDE; |
49 virtual void OnReceivedSessionsCommitDelay( | 49 virtual void OnReceivedSessionsCommitDelay( |
50 const base::TimeDelta& new_delay) OVERRIDE; | 50 const base::TimeDelta& new_delay) OVERRIDE; |
51 virtual void OnShouldStopSyncingPermanently() OVERRIDE; | 51 virtual void OnShouldStopSyncingPermanently() OVERRIDE; |
52 virtual void OnSyncProtocolError( | 52 virtual void OnSyncProtocolError( |
53 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; | 53 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; |
54 | 54 |
55 private: | 55 private: |
56 MessageLoop* const created_on_loop_; | 56 base::MessageLoop* const created_on_loop_; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace syncer | 59 } // namespace syncer |
60 | 60 |
61 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 61 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
OLD | NEW |