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

Fixture for state-transition and lifecycle behavior. More...

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

Protected Member Functions

std::unique_ptr< CyclicController > MakeController ()
 Create a controller with deterministic socket injection.
 

Protected Attributes

std::unique_ptr< CyclicController > controller = MakeController()
 Controller under test.
 
std::unique_ptr< MockRawEthernetSocket > txSock = std::make_unique<MockRawEthernetSocket>()
 Mocked Tx Socket.
 
std::unique_ptr< MockRawEthernetSocket > rxSock = std::make_unique<MockRawEthernetSocket>()
 Mocked Rx Socket.
 
int callbackCount {0}
 Number of state callback invocations.
 

Detailed Description

Fixture for state-transition and lifecycle behavior.

Definition at line 321 of file test_cyclicMore.cpp.

Member Function Documentation

◆ MakeController()

std::unique_ptr< CyclicController > profinet::cyclic::CyclicStateTests::MakeController ( )
inlineprotected

Create a controller with deterministic socket injection.

Returns
Controller under test.

Definition at line 326 of file test_cyclicMore.cpp.

References profinet::cyclic::DEFAULT_MAX_CONSECUTIVE_TIMEOUTS, ioContext, profinet::kInputFrameId, and profinet::kOutputFrameId.

Member Data Documentation

◆ callbackCount

int profinet::cyclic::CyclicStateTests::callbackCount {0}
protected

Number of state callback invocations.

Definition at line 346 of file test_cyclicMore.cpp.

◆ controller

std::unique_ptr<CyclicController> profinet::cyclic::CyclicStateTests::controller = MakeController()
protected

Controller under test.

Definition at line 337 of file test_cyclicMore.cpp.

◆ rxSock

std::unique_ptr<MockRawEthernetSocket> profinet::cyclic::CyclicStateTests::rxSock = std::make_unique<MockRawEthernetSocket>()
protected

Mocked Rx Socket.

Definition at line 343 of file test_cyclicMore.cpp.

◆ txSock

std::unique_ptr<MockRawEthernetSocket> profinet::cyclic::CyclicStateTests::txSock = std::make_unique<MockRawEthernetSocket>()
protected

Mocked Tx Socket.

Definition at line 340 of file test_cyclicMore.cpp.


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