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

GoogleMock implementation of IRawEthernetSocket. More...

#include <gmock/gmock.h>
#include <cstdint>
#include <span>
#include "profinet/IRawEthernetSocket.h"
+ Include dependency graph for mockRawEthernetSocket.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MockRawEthernetSocket
 GoogleMock implementation of IRawEthernetSocket. More...
 

Detailed Description

GoogleMock implementation of IRawEthernetSocket.

Provides a deterministic test double for raw Ethernet frame transmission.

The mock allows protocol unit tests to:

  • Verify the number of transmitted frames.
  • Capture complete Ethernet frames.
  • Verify VLAN tags.
  • Verify EtherType values.
  • Verify PROFINET protocol headers.
  • Verify exact byte-level wire representations.

Definition in file mockRawEthernetSocket.h.