PhoenixClock  2.2.0
Library wrapping the usage of system's clock, allowing to use clock mock-ups
Loading...
Searching...
No Matches
PClockMock.cpp File Reference
#include "PClockMock.h"
+ Include dependency graph for PClockMock.cpp:

Go to the source code of this file.

Functions

bool phoenix_createMockBackend (PClockMock &mock, const std::string &prefix)
 Create a mock backend for clock.
 

Function Documentation

◆ phoenix_createMockBackend()

bool phoenix_createMockBackend ( PClockMock & mock,
const std::string & prefix )

Create a mock backend for clock.

Parameters
[out]mock: clock mock backend to be used
prefix: prefix of the mock file
Returns
true on success, false otherwise

Definition at line 15 of file PClockMock.cpp.

15 {
16 mock.setMockPrefix(prefix);
17 return true;
18}
void setMockPrefix(const std::string &mockPrefix)
Set the mock directory.

References PClockMock::setMockPrefix().

+ Here is the call graph for this function: