Public Member Functions | Private Attributes | List of all members
MockBinarySocket Class Reference
Inheritance diagram for MockBinarySocket:
Inheritance graph
[legend]

Public Member Functions

 INJECT (MockBinarySocket(ASSISTED(udp::endpoint) target_socket, callback))
 
 MockBinarySocket ()=delete
 
virtual void SendData (std::vector< uint8_t > data) override
 
virtual void Start () override
 
- Public Member Functions inherited from Socket
virtual unsigned short Port ()
 
virtual void Stop ()
 
virtual ~Socket ()=default
 

Private Attributes

std::shared_ptr< std::function< void(std::vector< uint8_t >)> > callback_
 

Detailed Description

Definition at line 24 of file binary_plugin_router_test.cpp.

Constructor & Destructor Documentation

◆ MockBinarySocket()

MockBinarySocket::MockBinarySocket ( )
delete

Member Function Documentation

◆ INJECT()

MockBinarySocket::INJECT ( MockBinarySocket( ASSISTED(udp::endpoint) target_socket, callback)  )
inline

Definition at line 31 of file binary_plugin_router_test.cpp.

◆ SendData()

virtual void MockBinarySocket::SendData ( std::vector< uint8_t >  data)
inlineoverridevirtual

Reimplemented from Socket.

Definition at line 48 of file binary_plugin_router_test.cpp.

◆ Start()

virtual void MockBinarySocket::Start ( )
inlineoverridevirtual

Reimplemented from Socket.

Definition at line 37 of file binary_plugin_router_test.cpp.

Member Data Documentation

◆ callback_

std::shared_ptr<std::function<void(std::vector<uint8_t>)> > MockBinarySocket::callback_
private

Definition at line 26 of file binary_plugin_router_test.cpp.


The documentation for this class was generated from the following file:


skyway
Author(s): Toshiya Nakakura
autogenerated on Sat Apr 15 2023 02:08:21