distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
ThreadSleepUntilTestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_THREAD_THREADSLEEPUNTILTESTCASE_HPP_
13 #define TEST_THREAD_THREADSLEEPUNTILTESTCASE_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 
43  {
44 
45  }
46 
47 private:
48 
55  bool run_() const override;
56 };
57 
58 } // namespace test
59 
60 } // namespace distortos
61 
62 #endif // TEST_THREAD_THREADSLEEPUNTILTESTCASE_HPP_
static constexpr uint8_t testCasePriority_
priority at which this test case should be executed
Definition: ThreadSleepUntilTestCase.hpp:33
bool run_() const override
Runs the test case.
Definition: ThreadSleepUntilTestCase.cpp:96
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
constexpr ThreadSleepUntilTestCase()
ThreadSleepUntilTestCase's constructor.
Definition: ThreadSleepUntilTestCase.hpp:41
Tests "sleep for" functionality of threads.
Definition: ThreadSleepUntilTestCase.hpp:30