Mock object to return defined time points. More...
Public Member Functions | |
MockTimeServer (const String &name=MOCKPP_PCHAR(""), mockpp::VerifiableList *parent=0) | |
Construct a mock time server. | |
virtual MOCKPP_STD_NS::time_t | getUnixTime () |
Returns the "current" unix time. | |
void | addUnixTime (MOCKPP_STD_NS::time_t time) |
Adds another "current" unix time. |
Mock object to return defined time points.
Some unix times:
Definition at line 47 of file MockTimeServer.h.
mockpp::MockTimeServer::MockTimeServer | ( | const String & | name = MOCKPP_PCHAR("") , |
|
mockpp::VerifiableList * | parent = 0 | |||
) |
Construct a mock time server.
name | object name | |
parent | parent verifiable |
Definition at line 40 of file MockTimeServer.cpp.
void mockpp::MockTimeServer::addUnixTime | ( | MOCKPP_STD_NS::time_t | time | ) |
Adds another "current" unix time.
time | unix time |
Definition at line 53 of file MockTimeServer.cpp.
std::time_t mockpp::MockTimeServer::getUnixTime | ( | ) | [virtual] |
Returns the "current" unix time.
Implements mockpp::TimeServer.
Definition at line 47 of file MockTimeServer.cpp.