distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
SignalsWaitTestCase.cpp File Reference

SignalsWaitTestCase class implementation. More...

Include dependency graph for SignalsWaitTestCase.cpp:

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::test
 Functional tests of distortos project.
 

Typedefs

using distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::TestThreadFunction = void(SequenceAsserter &, unsigned int)
 type of test thread function More...
 
using distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::Trigger = bool(Thread &, size_t, const TestPhase &)
 function executed to trigger unblocking of test thread More...
 
using distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::Stage = std::pair< const TestThreadFunction &, const Trigger & >
 pair with functions for one stage More...
 

Functions

void distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::generatedSignalsThread (SequenceAsserter &sequenceAsserter, const unsigned int firstSequencePoint)
 Test thread for signals that were "generated". More...
 
bool distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::generatedSignalsTrigger (Thread &thread, const size_t index, const TestPhase &phase)
 Trigger function that "generates" signals. More...
 
void distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::queuedSignalsThread (SequenceAsserter &sequenceAsserter, const unsigned int firstSequencePoint)
 Test thread for signals that were "queued". More...
 
bool distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::queuedSignalsTrigger (Thread &thread, const size_t index, const TestPhase &phase)
 Trigger function that "queues" signals. More...
 
DynamicThread distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::makeTestThread (const TestThreadFunction &testThreadFunction, const uint8_t priority, SequenceAsserter &sequenceAsserter, const unsigned int firstSequencePoint)
 Builder of test threads. More...
 

Variables

constexpr size_t distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::testThreadStackSize {512}
 size of stack for test thread, bytes More...
 
constexpr size_t distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::signalNumberShift {(sizeof(decltype(sigval{}.sival_int)) / 2) * 8}
 bit shift of signal number encoded in signal value More...
 
decltype(sigval{}.sival_int) constexpr distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::signalValueMask {(1 << signalNumberShift) - 1}
 mask used to obtain sequence point from signal value (by removing encoded signal number) More...
 
const std::array< Stage, 2 > distortos::test::anonymous_namespace{SignalsWaitTestCase.cpp}::stages
 test stages More...
 

Detailed Description

SignalsWaitTestCase class implementation.

Author
Copyright (C) 2015-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.