distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
TestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_TESTCASE_HPP_
13 #define TEST_TESTCASE_HPP_
14 
15 namespace distortos
16 {
17 
18 namespace test
19 {
20 
28 class TestCase
29 {
30 public:
31 
38  bool run() const;
39 
40 protected:
41 
50  virtual bool finalize() const = 0;
51 
60  virtual bool initialize() const = 0;
61 
62 private:
63 
72  virtual bool run_() const = 0;
73 };
74 
75 } // namespace test
76 
77 } // namespace distortos
78 
79 #endif // TEST_TESTCASE_HPP_
virtual bool initialize() const =0
Initializes the test case.
Top-level namespace of distortos project.
virtual bool finalize() const =0
Finalizes the test case.
virtual bool run_() const =0
Runs the test case.
bool run() const
Public function to start the test case.
Definition: TestCase.cpp:24
TestCase class is an interface class for test cases.
Definition: TestCase.hpp:28