aboutsummaryrefslogtreecommitdiff
path: root/modem/clock_manager/fake/include/fake_clock_manager.h
blob: 8956777552cf647cefe429c44045ece5c9f3241d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "clock_manager.h"

namespace pixel_modem {

/**
 * @brief Fake implementation of clock manager that doesn't actually sleep.
 *
 * A lot of vendor code don't have return values and instead force the client
 * codes to sleep for a specified period of time before checking some system
 * properties. However, since unit tests don't rely on the real vendor
 * implementations, these sleeps should be ignored and so a fake clock should be
 * used.
 *
 * Since this definition is unlikely to change, it will be defined in the header
 * and not an implementation file.
 */
struct FakeClockManager : public ClockManager {
  void Sleep(size_t /*seconds*/) const override{};
};

}  // namespace pixel_modem