7#ifndef __PCLOCKMOCK_H__
8#define __PCLOCKMOCK_H__
11#include "phoenix_generic_mock.h"
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.