Dataflow Runtime API
2.7.4.0
|
Helper for sending messages to an active part. More...
#include <Imt.Base.Dff.UnitTest.Helper/ActivePartHelper.h>
Static Public Member Functions | |
static void | sendSignal (imt::base::dff::activeparts::test::ChannelMockIn *const pChannelIn, const uint16_t protocolIdentifier) |
Sends a signal over the channelIn. More... | |
static void | sendMessage (imt::base::dff::activeparts::test::ChannelMockIn *const pChannelIn, const uint16_t protocolIdentifier, const imt::base::core::serialization::SerializableIfc &pMessage) |
Sends a single message over the channelIn. More... | |
static void | assertNoMessage (imt::base::dff::activeparts::test::ChannelMockOut *const channelOut) |
Check if no message was sent on the given output channel. More... | |
static void | assertMessage (imt::base::dff::activeparts::test::ChannelMockOut *const pChannelOut, size_t pos, const uint16_t expectedProtocol) |
Check if the message at the given position has the given protocol identifier. More... | |
template<typename MessageType > | |
static void | assertMessage (imt::base::dff::activeparts::test::ChannelMockOut *const pChannelOut, size_t pos, const uint16_t expectedProtocol, const MessageType &expectedMessage) |
Check if the message at the given position has the given protocol identifier and message data. More... | |
static void | assertNextMessage (imt::base::dff::activeparts::test::ChannelMockOut *const pChannelOut, const uint16_t expectedProtocol) |
Check if the oldest message on the channel has the given protocol identifier. More... | |
template<typename MessageType > | |
static void | assertNextMessage (imt::base::dff::activeparts::test::ChannelMockOut *const pChannelOut, const uint16_t expectedProtocol, const MessageType &expectedMessage) |
Check if the oldest message on the channel has the given protocol identifier and message data. More... | |
static void | assertNextMessageAndPop (imt::base::dff::activeparts::test::ChannelMockOut *const pChannelOut, const uint16_t expectedProtocol) |
Check if the oldest message on the channel has the given protocol identifier and dequeues the message. More... | |
template<typename MessageType > | |
static void | assertNextMessageAndPop (imt::base::dff::activeparts::test::ChannelMockOut *const pChannelOut, const uint16_t expectedProtocol, const MessageType &expectedMessage) |
Check if the oldest message on the channel has the given protocol identifier and message data and dequeues the message. More... | |
Helper for sending messages to an active part.
|
static |
Check if the message at the given position has the given protocol identifier.
pChannelOut | The channel to check for messages. |
pos | The message at the given position in the queue is checked. |
expectedProtocol | The protocol identifier to verify. |
|
inlinestatic |
Check if the message at the given position has the given protocol identifier and message data.
pChannelOut | The channel to check for messages. |
pos | The message at the given position in the queue is checked. |
expectedProtocol | The protocol identifier to verify. |
expectedMessage | The message to verify against. |
|
static |
Check if the oldest message on the channel has the given protocol identifier.
pChannelOut | The channel to check for messages. |
expectedProtocol | The protocol identifier to verify. |
|
inlinestatic |
Check if the oldest message on the channel has the given protocol identifier and message data.
pChannelOut | The channel to check for messages. |
expectedProtocol | The protocol identifier to verify. |
expectedMessage | The message to verify against. |
|
static |
Check if the oldest message on the channel has the given protocol identifier and dequeues the message.
pChannelOut | The channel to check for messages. |
expectedProtocol | The protocol identifier to verify. |
|
inlinestatic |
Check if the oldest message on the channel has the given protocol identifier and message data and dequeues the message.
pChannelOut | The channel to check for messages. |
expectedProtocol | The protocol identifier to verify. |
expectedMessage | The message to verify against. |
|
static |
Check if no message was sent on the given output channel.
channelOut | The channel to check for messages. |
|
static |
Sends a single message over the channelIn.
pChannelIn | The passed message is send over this channel. |
protocolIdentifier | The protocol identifier of the message. |
pMessage | the message to be send. |
|
static |
Sends a signal over the channelIn.
pChannelIn | The passed message is send over this channel. |
protocolIdentifier | The protocol identifier of the signal. |