35 time_t currentTime = 0lu;
36 p_mock.getCurrentValue(currentTime);
53 p_mock.append(currentTime);
60 std::stringstream socketFileName;
61 socketFileName << mockPrefix <<
"clock.pclockmock";
62 p_mock.setFileName(socketFileName.str());
bool phoenix_createMockBackend(PClockMock &mock, const std::string &prefix)
Create a mock backend for clock.
void resetIndex()
Reset the mock index to the beginning.
void close()
Close the mock.
PClockMock()
Default constructor of PClockMock.
time_t now()
Get the mocked current time.
virtual ~PClockMock()
Destructor of PClockMock.
void setCurrentTime(time_t currentTime)
Set the current time to be recorded.
void initialisationPClockMock()
Initialisation function of the class PClockMock.
PGenericVecMock< time_t > p_mock
Mock handler.
void setMockPrefix(const std::string &mockPrefix)
Set the mock directory.
void sleep(EllapsedTime sleepTime) const
Sleep for the given time.