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

Public Member Functions

 INJECT (MockStringSocket(ASSISTED(udp::endpoint) target_socket, callback))
 
 MockStringSocket ()=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_
 
int counter = 0
 

Detailed Description

Definition at line 24 of file string_plugin_router_test.cpp.

Constructor & Destructor Documentation

◆ MockStringSocket()

MockStringSocket::MockStringSocket ( )
delete

Member Function Documentation

◆ INJECT()

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

Definition at line 32 of file string_plugin_router_test.cpp.

◆ SendData()

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

Reimplemented from Socket.

Definition at line 44 of file string_plugin_router_test.cpp.

◆ Start()

virtual void MockStringSocket::Start ( )
inlineoverridevirtual

Reimplemented from Socket.

Definition at line 38 of file string_plugin_router_test.cpp.

Member Data Documentation

◆ callback_

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

Definition at line 26 of file string_plugin_router_test.cpp.

◆ counter

int MockStringSocket::counter = 0
private

Definition at line 27 of file string_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