Fake implementation of Clock that returns an injected time.
More...
#include <Clock.hxx>
|
| long long | time_ |
| | Current mock time.
|
| |
Fake implementation of Clock that returns an injected time.
- Todo:
- (balazs.racz) this should be called FakeClock instead.
Definition at line 66 of file Clock.hxx.
◆ MockClock()
| MockClock::MockClock |
( |
long long |
time | ) |
|
|
inline |
Consturctor.
- Parameters
-
| time | the clock vale to set. |
Definition at line 70 of file Clock.hxx.
◆ get_time_nsec()
| long long MockClock::get_time_nsec |
( |
| ) |
|
|
inlinevirtual |
- Returns
- the mock time.
Implements Clock.
Definition at line 74 of file Clock.hxx.
◆ set_time()
| void MockClock::set_time |
( |
long long |
time | ) |
|
|
inline |
- Parameters
-
| time | is the mock time to set. |
Definition at line 79 of file Clock.hxx.
◆ time_
| long long MockClock::time_ |
|
private |
Current mock time.
Definition at line 85 of file Clock.hxx.
The documentation for this class was generated from the following file: