FreeNOS
|
Represents test inside the same process. More...
#include <LocalTest.h>
Public Member Functions | |
LocalTest (const char *name, TestFunction func) | |
Class constructor. More... | |
virtual TestResult | run () |
Run the test function. More... | |
Public Member Functions inherited from TestInstance | |
TestInstance (const char *name) | |
Class constructor. More... | |
virtual | ~TestInstance () |
Destructor. More... | |
const String & | getName () const |
Retrieve test instance name. More... | |
Private Attributes | |
TestFunction * | m_func |
Contains the test to run. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TestInstance | |
String | m_name |
Name of the test instance. More... | |
Represents test inside the same process.
Definition at line 36 of file LocalTest.h.
LocalTest::LocalTest | ( | const char * | name, |
TestFunction | func | ||
) |
Class constructor.
name | Test name |
func | Test function to run |
Definition at line 20 of file LocalTest.cpp.
References m_func.
|
virtual |
Run the test function.
Implements TestInstance.
Definition at line 26 of file LocalTest.cpp.
References m_func.
|
private |
Contains the test to run.
Definition at line 58 of file LocalTest.h.
Referenced by LocalTest(), and run().