EmbeddedUnit
TestResult.h
Go to the documentation of this file.
1 
34 #ifndef __TESTRESULT_H__
35 #define __TESTRESULT_H__
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 /*typedef struct __TestResult TestResult;*//* -> Test.h*/
42 /*typedef struct __TestResult* TestResultRef;*//* -> Test.h*/
43 
44 typedef struct __TestListner TestListner;
45 typedef struct __TestListner* TestListnerRef;/*downward compatible*/
46 
47 struct __TestResult {
48  unsigned short runCount;
49  unsigned short failureCount;
50  TestListner* listener;
51 };
52 
53 #define new_TestResult(listener)\
54  {\
55  0,\
56  0,\
57  (TestListner*)listener,\
58  }
59 
60 void TestResult_init(TestResult* self,TestListner* listner);
61 void TestResult_startTest(TestResult* self,Test* test);
62 void TestResult_endTest(TestResult* self,Test* test);
63 void TestResult_addFailure(TestResult* self,Test* test,const char* msg,int line,const char* file);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif/*__TESTRESULT_H__*/
Definition: Test.h:56