distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
MutexOperationsTestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_MUTEX_MUTEXOPERATIONSTESTCASE_HPP_
13 #define TEST_MUTEX_MUTEXOPERATIONSTESTCASE_HPP_
14 
15 #include "PrioritizedTestCase.hpp"
16 
17 namespace distortos
18 {
19 
20 namespace test
21 {
22 
31 {
33  constexpr static uint8_t testCasePriority_ {UINT8_MAX - 1};
34 
35 public:
36 
41  constexpr static uint8_t getTestCasePriority()
42  {
43  return testCasePriority_;
44  }
45 
52  {
53 
54  }
55 
56 private:
57 
64  bool run_() const override;
65 };
66 
67 } // namespace test
68 
69 } // namespace distortos
70 
71 #endif // TEST_MUTEX_MUTEXOPERATIONSTESTCASE_HPP_
bool run_() const override
Runs the test case.
Definition: MutexOperationsTestCase.cpp:373
Tests various mutex operations.
Definition: MutexOperationsTestCase.hpp:30
PrioritizedTestCase class header.
static constexpr uint8_t getTestCasePriority()
Definition: MutexOperationsTestCase.hpp:41
Top-level namespace of distortos project.
PrioritizedTestCase class is a TestCase which runs at specific priority, restoring original priority ...
Definition: PrioritizedTestCase.hpp:30
constexpr MutexOperationsTestCase()
MutexOperationsTestCase's constructor.
Definition: MutexOperationsTestCase.hpp:50
static constexpr uint8_t testCasePriority_
priority at which this test case should be executed
Definition: MutexOperationsTestCase.hpp:33