distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
MutexPriorityProtectOperationsTestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_MUTEX_MUTEXPRIORITYPROTECTOPERATIONSTESTCASE_HPP_
13 #define TEST_MUTEX_MUTEXPRIORITYPROTECTOPERATIONSTESTCASE_HPP_
14 
15 #include "PrioritizedTestCase.hpp"
16 
17 namespace distortos
18 {
19 
20 namespace test
21 {
22 
31 {
33  constexpr static uint8_t testCasePriority_ {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_MUTEXPRIORITYPROTECTOPERATIONSTESTCASE_HPP_
static constexpr uint8_t testCasePriority_
priority at which this test case should be executed
Definition: MutexPriorityProtectOperationsTestCase.hpp:33
Tests operations in scenarios specific for PriorityProtect protocol of mutex.
Definition: MutexPriorityProtectOperationsTestCase.hpp:30
constexpr MutexPriorityProtectOperationsTestCase()
MutexPriorityProtectOperationsTestCase's constructor.
Definition: MutexPriorityProtectOperationsTestCase.hpp:50
PrioritizedTestCase class header.
Top-level namespace of distortos project.
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: MutexPriorityProtectOperationsTestCase.cpp:201
static constexpr uint8_t getTestCasePriority()
Definition: MutexPriorityProtectOperationsTestCase.hpp:41