57 time_t currentTime = 0lu;
58 p_mock.getCurrentValue(currentTime);
75 p_mock.append(currentTime);
82 std::stringstream socketFileName;
83 socketFileName << mockPrefix <<
"clock.pclockmock";
84 p_mock.setFileName(socketFileName.str());
bool phoenix_createClockMock(const std::string &prefix, size_t nbTime, time_t firstTime, time_t timeIncrement)
Create a clock mock.
bool phoenix_createMockBackend(PClockMockFile &mock, const std::string &prefix)
Create a mock backend for clock.
void phoenix_fillClockMock(_TClockMock &mock, size_t nbTime, time_t firstTime, time_t timeIncrement)
Fill the given clock mock.
virtual ~PClockMockFile()
Destructor of PClockMockFile.
PClockMockFile()
Default constructor of PClockMockFile.
void setCurrentTime(time_t currentTime)
Set the current time to be recorded.
void close()
Close the PClockMockFile.
PGenericFileMock< time_t > p_mock
Mock handler.
void initialisationPClockMockFile()
Initialisation function of the class PClockMockFile.
void setMockPrefix(const std::string &mockPrefix)
Set the mock directory.
time_t now()
Get the mocked current time.
void sleep(EllapsedTime ellapsedTime) const
Sleep for the given ellapsed time.
void close()
Close the mock.