| 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 COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
| 10 #define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 10 #define COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
| 11 | 11 |
| 12 #include <map> | 12 #include <map> |
| 13 | 13 |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "sync/engine/sync_scheduler.h" | 15 #include "components/sync/engine_impl/sync_scheduler.h" |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 | 18 |
| 19 class FakeSyncScheduler : public SyncScheduler { | 19 class FakeSyncScheduler : public SyncScheduler { |
| 20 public: | 20 public: |
| 21 FakeSyncScheduler(); | 21 FakeSyncScheduler(); |
| 22 ~FakeSyncScheduler() override; | 22 ~FakeSyncScheduler() override; |
| 23 | 23 |
| 24 void Start(Mode mode, base::Time last_poll_time) override; | 24 void Start(Mode mode, base::Time last_poll_time) override; |
| 25 void Stop() override; | 25 void Stop() override; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 54 void OnReceivedCustomNudgeDelays( | 54 void OnReceivedCustomNudgeDelays( |
| 55 const std::map<ModelType, base::TimeDelta>& nudge_delays) override; | 55 const std::map<ModelType, base::TimeDelta>& nudge_delays) override; |
| 56 void OnReceivedClientInvalidationHintBufferSize(int size) override; | 56 void OnReceivedClientInvalidationHintBufferSize(int size) override; |
| 57 void OnSyncProtocolError(const SyncProtocolError& error) override; | 57 void OnSyncProtocolError(const SyncProtocolError& error) override; |
| 58 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override; | 58 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override; |
| 59 void OnReceivedMigrationRequest(ModelTypeSet types) override; | 59 void OnReceivedMigrationRequest(ModelTypeSet types) override; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace syncer | 62 } // namespace syncer |
| 63 | 63 |
| 64 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ | 64 #endif // COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ |
| OLD | NEW |