Lhaz
WinUnitLogger.h
[詳解]
1 /* -------------------------------------------------------------------------- *
2  WinUnit - Maria Blees (maria.blees@microsoft.com)
3  * -------------------------------------------------------------------------- */
4 
9 
10 #ifndef WINUNIT_LOGGER_FUNCTION
11 #define WINUNIT_LOGGER_FUNCTION(returntype, func) extern "C" __declspec(dllexport) returntype __cdecl func
12 #endif
13 
50 
52 
58 WINUNIT_LOGGER_FUNCTION(void, Initialize)(
59  const wchar_t* initializationString
60  );
61 
64 WINUNIT_LOGGER_FUNCTION(void, OutputTestExecutableNamePreTest)(
65  const wchar_t* fullPath,
66  const wchar_t* nameOfExecutable
67 );
68 
71 WINUNIT_LOGGER_FUNCTION(void, OutputTestExecutableNamePostTest)(
72  const wchar_t* fullPath,
73  const wchar_t* nameOfExecutable,
74  unsigned int succeeded,
75  unsigned int totalRun
76 );
77 
82 WINUNIT_LOGGER_FUNCTION(void, OutputTestNamePreTest)(
83  const char* testName
84 );
85 
91 WINUNIT_LOGGER_FUNCTION(void, OutputTestNamePostTest)(
92  const char* testName,
93  bool passed
94 );
95 
100 WINUNIT_LOGGER_FUNCTION(void, OutputTrace)(
101  const wchar_t* message
102 );
103 
108 WINUNIT_LOGGER_FUNCTION(void, OutputTestError)(
109  const wchar_t* message
110 );
111 
116 WINUNIT_LOGGER_FUNCTION(void, OutputProgramErrorLine)(
117  const wchar_t* message
118  );
119 
123 WINUNIT_LOGGER_FUNCTION(void, OutputFinalResults)(
124  unsigned int succeeded,
125  unsigned int totalRun
126 );
127 
132 WINUNIT_LOGGER_FUNCTION(void, SetVerbosity)(
133  unsigned int verbosity
134 );
135 
const wchar_t unsigned int succeeded
Number of tests succeeded.
Definition: WinUnitLogger.h:73
const wchar_t unsigned int unsigned int totalRun
< Number of tests run.
Definition: WinUnitLogger.h:73
bool passed
< Name of test that was just run.
Definition: WinUnitLogger.h:94
#define WINUNIT_LOGGER_FUNCTION(returntype, func)
Definition: WinUnitLogger.h:11
const wchar_t * nameOfExecutable
< Full path to the executable whose tests are to be run.
Definition: WinUnitLogger.h:67