distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
ThreadSleepForTestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_THREAD_THREADSLEEPFORTESTCASE_HPP_
13 #define TEST_THREAD_THREADSLEEPFORTESTCASE_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};
34 
35 public:
36 
41  constexpr ThreadSleepForTestCase() :
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_THREADSLEEPFORTESTCASE_HPP_
PrioritizedTestCase class header.
Tests "sleep for" functionality of threads.
Definition: ThreadSleepForTestCase.hpp:30
bool run_() const override
Runs the test case.
Definition: ThreadSleepForTestCase.cpp:102
Top-level namespace of distortos project.
PrioritizedTestCase class is a TestCase which runs at specific priority, restoring original priority ...
Definition: PrioritizedTestCase.hpp:30
static constexpr uint8_t testCasePriority_
priority at which this test case should be executed
Definition: ThreadSleepForTestCase.hpp:33
constexpr ThreadSleepForTestCase()
ThreadSleepForTestCase's constructor.
Definition: ThreadSleepForTestCase.hpp:41