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

Windows-specific EthernetPacketBackend readiness tests. More...

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

Go to the source code of this file.

Functions

 TEST_F (EthernetPacketBackendTestFixture, WindowsPacketReadinessReceivesFrame)
 
 TEST_F (EthernetPacketBackendTestFixture, WindowsPacketReadinessTimesOut)
 

Detailed Description

Windows-specific EthernetPacketBackend readiness tests.

Exercises the Windows implementation that connects the Npcap event to an Asio Windows object handle. If Npcap cannot expose a waitable event, the same receive API uses the documented polling fallback.

Definition in file test_ethernetPacketBackendWindows.cpp.

Function Documentation

◆ TEST_F() [1/2]

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

Definition at line 30 of file test_ethernetPacketBackendWindows.cpp.

◆ TEST_F() [2/2]

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

Definition at line 52 of file test_ethernetPacketBackendWindows.cpp.