xref: /haiku/src/tests/system/kernel/unit/TestError.h (revision 508f54795f39c3e7552d87c95aae9dd8ec6f505b)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef TEST_ERROR_H
6 #define TEST_ERROR_H
7 
8 
9 #include <SupportDefs.h>
10 
11 
12 class Test;
13 
14 
15 class TestError {
16 public:
17 								TestError(Test* test, char* message);
18 								~TestError();
19 
20 			Test*				GetTest() const	{ return fTest; }
21 			const char*			Message() const	{ return fMessage; }
22 
23 			TestError*&			ListLink()	{ return fNext; }
24 
25 private:
26 			TestError*			fNext;
27 			Test*				fTest;
28 			char*				fMessage;
29 };
30 
31 
32 #endif	// TEST_ERROR_H
33