|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Test fixture for UDP AlarmListener behavior. More...
Inheritance diagram for profinet::AlarmListenerUdpTest:
Collaboration diagram for profinet::AlarmListenerUdpTest:Protected Member Functions | |
| void | SetUp () override |
| Construct an AlarmListener configured for UDP transport. | |
| UdpEndpoint | SourceAddress () const |
| Build the source endpoint used for the injected UDP datagram. | |
Protected Attributes | |
| std::unique_ptr< asio::io_context > | ioContext |
| AlarmEndpoint | endpoint |
| std::unique_ptr< AlarmListener > | listener |
Test fixture for UDP AlarmListener behavior.
Injects IUdpSocket through AlarmListener::Start() and synchronizes with the listener callback so tests do not depend on arbitrary sleep durations.
Definition at line 106 of file test_alarmListenerUdp.cpp.
|
inlineoverrideprotected |
Construct an AlarmListener configured for UDP transport.
Definition at line 110 of file test_alarmListenerUdp.cpp.
References profinet::AlarmEndpoint::controllerRef, profinet::AlarmEndpoint::deviceMac, profinet::AlarmEndpoint::deviceRef, endpoint, profinet::AlarmEndpoint::interface, ioContext, listener, and profinet::AlarmEndpoint::transport.
|
inlineprotected |
Build the source endpoint used for the injected UDP datagram.
Definition at line 123 of file test_alarmListenerUdp.cpp.
|
protected |
Definition at line 129 of file test_alarmListenerUdp.cpp.
Referenced by SetUp().
|
protected |
Definition at line 127 of file test_alarmListenerUdp.cpp.
Referenced by SetUp().
|
protected |
Definition at line 130 of file test_alarmListenerUdp.cpp.
Referenced by SetUp().