19#include <gmock/gmock.h>
Abstraction for sending and receiving raw Ethernet frames.
GoogleMock implementation of IRawEthernetSocket.
MOCK_METHOD(std::vector< std::uint8_t >, Recv,(),(override))
Mock raw Ethernet frame reception.
MOCK_METHOD(void, SetTimeout,(std::chrono::milliseconds timeout),(override))
Mock receive-timeout configuration.
MOCK_METHOD(void, Send,(const std::vector< std::uint8_t > &frame),(override))
Mocked raw Ethernet frame transmission operation.
Abstract interface for raw Ethernet frame transport.
virtual void Send(const std::vector< std::uint8_t > &frame)=0
Send one complete raw Ethernet frame.
virtual std::vector< std::uint8_t > Recv()=0
Receive one raw Ethernet frame.
virtual void SetTimeout(std::chrono::milliseconds timeout)=0
Set the receive timeout.