Various fixes and additions to logger system.
This commit is contained in:
parent
ac07ad67d9
commit
94c6ae4eab
9 changed files with 266 additions and 104 deletions
|
@ -26,25 +26,26 @@
|
|||
// Function pointer to function which handles to output
|
||||
typedef int (*LogOutputFp)(const char *);
|
||||
|
||||
|
||||
/*!
|
||||
* Generic logger interface
|
||||
*
|
||||
*/
|
||||
void RunStarted(LogOutputFp outputFn, const char *runnerParameters, time_t eventTime);
|
||||
void RunEnded(time_t endTime, time_t totalRuntime);
|
||||
typedef void (*RunStartedFp)(LogOutputFp outputFn, const char *runnerParameters, time_t eventTime);
|
||||
typedef void (*RunEndedFp)(time_t endTime, time_t totalRuntime);
|
||||
|
||||
void SuiteStarted(const char *suiteName, time_t eventTime);
|
||||
void SuiteEnded(int testsPassed, int testsFailed, int testsSkipped,
|
||||
double endTime, time_t totalRuntime);
|
||||
typedef void (*SuiteStartedFp)(const char *suiteName, time_t eventTime);
|
||||
typedef void (*SuiteEndedFp)(int testsPassed, int testsFailed, int testsSkipped,
|
||||
double endTime, time_t totalRuntime);
|
||||
|
||||
void TestStarted(const char *testName, const char *testDescription, time_t startTime);
|
||||
void TestEnded(const char *testName, const char *testDescription, int testResult,
|
||||
int numAsserts, time_t endTime, time_t totalRuntime);
|
||||
typedef void (*TestStartedFp)(const char *testName, const char *testDescription, time_t startTime);
|
||||
typedef void (*TestEndedFp)(const char *testName, const char *testDescription, int testResult,
|
||||
int numAsserts, time_t endTime, time_t totalRuntime);
|
||||
|
||||
void Assert(const char *assertName, int assertResult, const char *assertMessage,
|
||||
time_t eventTime);
|
||||
typedef void (*AssertFp)(const char *assertName, int assertResult, const char *assertMessage,
|
||||
time_t eventTime);
|
||||
|
||||
void Log(const char *logMessage, time_t eventTime);
|
||||
typedef void (*LogFp)(const char *logMessage, time_t eventTime);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue