PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::cyclic::CyclicTxTests Class Reference

Fixture for TX behavior and generated frame validation. More...

+ Inheritance diagram for profinet::cyclic::CyclicTxTests:
+ Collaboration diagram for profinet::cyclic::CyclicTxTests:

Protected Member Functions

void SetUp () override
 Construct the controller and retain its TX socket stub.
 

Protected Attributes

std::unique_ptr< CyclicController > controller
 Controller under test.
 
std::unique_ptr< test::CyclicRawEthernetSocketStub > txSocket
 
std::unique_ptr< test::CyclicRawEthernetSocketStub > rxSocket = std::make_unique<test::CyclicRawEthernetSocketStub>()
 
test::CyclicRawEthernetSocketStub * tx {nullptr}
 Injected TX socket stub.
 
std::unique_ptr< asio::io_context > ioContext
 Shared ASIO context.
 

Detailed Description

Fixture for TX behavior and generated frame validation.

Definition at line 1391 of file test_cyclicMore.cpp.

Member Function Documentation

◆ SetUp()

void profinet::cyclic::CyclicTxTests::SetUp ( )
inlineoverrideprotected

Construct the controller and retain its TX socket stub.

Definition at line 1395 of file test_cyclicMore.cpp.

References controller, profinet::cyclic::DEFAULT_MAX_CONSECUTIVE_TIMEOUTS, ioContext, profinet::kInputFrameId, profinet::kOutputFrameId, profinet::cyclic::CyclicControllerTestAccess::SetTxSock(), tx, and txSocket.

+ Here is the call graph for this function:

Member Data Documentation

◆ controller

std::unique_ptr<CyclicController> profinet::cyclic::CyclicTxTests::controller
protected

Controller under test.

Definition at line 1408 of file test_cyclicMore.cpp.

Referenced by SetUp().

◆ ioContext

std::unique_ptr<asio::io_context> profinet::cyclic::CyclicTxTests::ioContext
protected

Shared ASIO context.

Definition at line 1416 of file test_cyclicMore.cpp.

Referenced by SetUp().

◆ rxSocket

std::unique_ptr<test::CyclicRawEthernetSocketStub> profinet::cyclic::CyclicTxTests::rxSocket = std::make_unique<test::CyclicRawEthernetSocketStub>()
protected

Definition at line 1410 of file test_cyclicMore.cpp.

◆ tx

test::CyclicRawEthernetSocketStub* profinet::cyclic::CyclicTxTests::tx {nullptr}
protected

Injected TX socket stub.

Definition at line 1413 of file test_cyclicMore.cpp.

Referenced by SetUp().

◆ txSocket

std::unique_ptr<test::CyclicRawEthernetSocketStub> profinet::cyclic::CyclicTxTests::txSocket
protected

Definition at line 1409 of file test_cyclicMore.cpp.

Referenced by SetUp().


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