10Duke Scale C++ Client
Loading...
Searching...
No Matches
ClockMock.h
1#ifndef TENDUKE_TEST_MOCKS_CLOCKMOCK_H
2#define TENDUKE_TEST_MOCKS_CLOCKMOCK_H
3
4#include "time/Clock.h"
5
6#include "gmock/gmock.h"
7
8#include <memory>
9
10namespace tenduke { namespace test { namespace mocks {
11
13{
14public:
15 MOCK_METHOD(std::int64_t, epochSeconds, (), (const, noexcept, override));
16
17 static std::shared_ptr<ClockMock> createShared()
18 {
19 return std::make_shared<ClockMock>();
20 }
21};
22
23}}}
24
25#endif //TENDUKE_TEST_MOCKS_CLOCKMOCK_H
Definition ClockMock.h:13
A clock-service to generate timestamps.
Definition Clock.h:13
virtual std::int64_t epochSeconds() const noexcept=0
Returns current time as seconds from epoch.
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7