PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
test_ethernetPacketBackendLinux.cpp File Reference

Linux-specific EthernetPacketBackend readiness tests. More...

#include <chrono>
#include <cstdint>
#include "ethernetPacketBackendTestFixture.h"
#include "profinet/protocol.h"
+ Include dependency graph for test_ethernetPacketBackendLinux.cpp:

Go to the source code of this file.

Functions

 TEST_F (EthernetPacketBackendTestFixture, LinuxPacketReadinessReceivesFrame)
 
 TEST_F (EthernetPacketBackendTestFixture, LinuxPacketReadinessTimesOut)
 

Detailed Description

Linux-specific EthernetPacketBackend readiness tests.

Exercises the Linux implementation that connects the libpcap selectable descriptor, when available, to an Asio POSIX stream descriptor. On Linux installations where libpcap cannot expose a selectable descriptor, the same tests exercise the documented polling fallback instead.

Definition in file test_ethernetPacketBackendLinux.cpp.

Function Documentation

◆ TEST_F() [1/2]

TEST_F ( EthernetPacketBackendTestFixture  ,
LinuxPacketReadinessReceivesFrame   
)
Test:
Verifies that the Linux packet-readiness path receives an injected frame.

Definition at line 31 of file test_ethernetPacketBackendLinux.cpp.

◆ TEST_F() [2/2]

TEST_F ( EthernetPacketBackendTestFixture  ,
LinuxPacketReadinessTimesOut   
)
Test:
Verifies that the Linux packet-readiness path completes a finite receive timeout.

Definition at line 53 of file test_ethernetPacketBackendLinux.cpp.