distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep Class Reference

basic type of test step executed in signal handler More...

Collaboration diagram for distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep:
[legend]

Public Member Functions

constexpr BasicHandlerStep (const SignalSet pendingSignalSet, const SignalSet signalMask, const SignalInformation::Code code, const uint8_t signalNumber, const int value={})
 BasicHandlerStep's constructor. More...
 
int operator() (const SignalInformation &signalInformation) const
 BasicHandlerStep's function call operator. More...
 

Private Attributes

SignalSet pendingSignalSet_
 expected set of currently pending signals for current thread More...
 
SignalSet signalMask_
 expected signal mask for current thread More...
 
int value_
 expected signal value in received SignalInformation object More...
 
SignalInformation::Code code_
 expected signal code in received SignalInformation object More...
 
uint8_t signalNumber_
 expected signal number in received SignalInformation object More...
 

Detailed Description

basic type of test step executed in signal handler

Constructor & Destructor Documentation

◆ BasicHandlerStep()

constexpr distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep::BasicHandlerStep ( const SignalSet  pendingSignalSet,
const SignalSet  signalMask,
const SignalInformation::Code  code,
const uint8_t  signalNumber,
const int  value = {} 
)
inline

BasicHandlerStep's constructor.

Parameters
[in]pendingSignalSetis the expected set of currently pending signals for current thread
[in]signalMaskis the expected signal mask for current thread
[in]codeis the expected signal code in received SignalInformation object
[in]signalNumberis the expected signal number in received SignalInformation object
[in]valueis the expected signal value in received SignalInformation object, default - default constructed int value

Member Function Documentation

◆ operator()()

int distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep::operator() ( const SignalInformation signalInformation) const

BasicHandlerStep's function call operator.

Compares set of pending signals and signal mask of current thread with expected values. Verifies received SignalInformation object.

Parameters
[in]signalInformationis a reference to received SignalInformation object
Returns
0 on success, error code otherwise
Here is the call graph for this function:

Member Data Documentation

◆ code_

SignalInformation::Code distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep::code_
private

expected signal code in received SignalInformation object

◆ pendingSignalSet_

SignalSet distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep::pendingSignalSet_
private

expected set of currently pending signals for current thread

◆ signalMask_

SignalSet distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep::signalMask_
private

expected signal mask for current thread

◆ signalNumber_

uint8_t distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep::signalNumber_
private

expected signal number in received SignalInformation object

◆ value_

int distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::BasicHandlerStep::value_
private

expected signal value in received SignalInformation object


The documentation for this class was generated from the following file: