1 #include "clock_manager.h"
2 
3 namespace pixel_modem {
4 
5 /**
6  * @brief Fake implementation of clock manager that doesn't actually sleep.
7  *
8  * A lot of vendor code don't have return values and instead force the client
9  * codes to sleep for a specified period of time before checking some system
10  * properties. However, since unit tests don't rely on the real vendor
11  * implementations, these sleeps should be ignored and so a fake clock should be
12  * used.
13  *
14  * Since this definition is unlikely to change, it will be defined in the header
15  * and not an implementation file.
16  */
17 struct FakeClockManager : public ClockManager {
SleepFakeClockManager18   void Sleep(size_t /*seconds*/) const override{};
19 };
20 
21 }  // namespace pixel_modem
22