xlnt/third-party/cxxtest/doc/examples/time_mock.h

9 lines
309 B
C

// time_mock.h
#include <time.h>
#include <cxxtest/Mock.h>
CXXTEST_MOCK_GLOBAL(time_t, /* Return type */
time, /* Name of the function */
(time_t *t), /* Prototype */
(t) /* Argument list */);