MockPosixClock.hpp 599 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-15
  6. * Changed: 2023-03-15
  7. *
  8. * */
  9. #ifndef LS_STD_MOCK_POSIX_CLOCK_HPP
  10. #define LS_STD_MOCK_POSIX_CLOCK_HPP
  11. #include <gmock/gmock.h>
  12. #include <ls-std/time/system-time/IPosixClock.hpp>
  13. namespace test::time
  14. {
  15. class MockPosixClock : public ls::std::time::IPosixClock
  16. {
  17. public:
  18. MockPosixClock();
  19. ~MockPosixClock() noexcept override;
  20. MOCK_METHOD(bool, setTime, (uint32_t _timeStamp), (override));
  21. };
  22. }
  23. #endif