distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
MutexPriorityInheritanceOperationsTestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_MUTEX_MUTEXPRIORITYINHERITANCEOPERATIONSTESTCASE_HPP_
13 #define TEST_MUTEX_MUTEXPRIORITYINHERITANCEOPERATIONSTESTCASE_HPP_
14 
15 #include "PrioritizedTestCase.hpp"
16 
17 namespace distortos
18 {
19 
20 namespace test
21 {
22 
33 {
35  constexpr static uint8_t testCasePriority_ {1};
36 
37 public:
38 
43  constexpr static uint8_t getTestCasePriority()
44  {
45  return testCasePriority_;
46  }
47 
54  {
55 
56  }
57 
58 private:
59 
66  bool run_() const override;
67 };
68 
69 } // namespace test
70 
71 } // namespace distortos
72 
73 #endif // TEST_MUTEX_MUTEXPRIORITYINHERITANCEOPERATIONSTESTCASE_HPP_
static constexpr uint8_t getTestCasePriority()
Definition: MutexPriorityInheritanceOperationsTestCase.hpp:43
PrioritizedTestCase class header.
Top-level namespace of distortos project.
constexpr MutexPriorityInheritanceOperationsTestCase()
MutexPriorityInheritanceOperationsTestCase's constructor.
Definition: MutexPriorityInheritanceOperationsTestCase.hpp:52
static constexpr uint8_t testCasePriority_
priority at which this test case should be executed
Definition: MutexPriorityInheritanceOperationsTestCase.hpp:35
PrioritizedTestCase class is a TestCase which runs at specific priority, restoring original priority ...
Definition: PrioritizedTestCase.hpp:30
bool run_() const override
Runs the test case.
Definition: MutexPriorityInheritanceOperationsTestCase.cpp:584
Tests operations in scenarios specific for PriorityInheritance protocol of mutex. ...
Definition: MutexPriorityInheritanceOperationsTestCase.hpp:32