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

Fixture for watchdog and RX-loop behavior. More...

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

Protected Member Functions

void SetUp () override
 Construct a controller with a very short input watchdog.
 

Protected Attributes

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

Detailed Description

Fixture for watchdog and RX-loop behavior.

Definition at line 1206 of file test_cyclicMore.cpp.

Member Function Documentation

◆ SetUp()

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

Construct a controller with a very short input watchdog.

Definition at line 1210 of file test_cyclicMore.cpp.

References controller, profinet::cyclic::DEFAULT_MAX_CONSECUTIVE_TIMEOUTS, ioContext, profinet::kInputFrameId, profinet::kOutputFrameId, profinet::cyclic::Running, rx, rxSocket, profinet::cyclic::CyclicControllerTestAccess::SetRxSock(), profinet::cyclic::CyclicControllerTestAccess::SetState(), and tx.

+ Here is the call graph for this function:

Member Data Documentation

◆ controller

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

Controller under test.

Definition at line 1225 of file test_cyclicMore.cpp.

Referenced by SetUp().

◆ ioContext

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

Shared ASIO context.

Definition at line 1234 of file test_cyclicMore.cpp.

Referenced by SetUp().

◆ rx

test::CyclicRawEthernetSocketStub* profinet::cyclic::CyclicWatchdogTests::rx {nullptr}
protected

Injected receive socket.

Definition at line 1231 of file test_cyclicMore.cpp.

Referenced by SetUp().

◆ rxSocket

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

Definition at line 1228 of file test_cyclicMore.cpp.

Referenced by SetUp().

◆ tx

std::unique_ptr<test::CyclicRawEthernetSocketStub> profinet::cyclic::CyclicWatchdogTests::tx = std::make_unique<test::CyclicRawEthernetSocketStub>()
protected

Definition at line 1227 of file test_cyclicMore.cpp.

Referenced by SetUp().


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