Lines Matching refs:SocketMock
33 SocketMock::SocketMock() : Socket(INVALID_SOCKET) {} in SocketMock() function in SocketMock
35 SocketMock::~SocketMock() { in ~SocketMock()
41 bool SocketMock::Send(const void* data, size_t length) { in Send()
65 bool SocketMock::Send(std::vector<cutils_socket_buffer_t> buffers) { in Send()
73 ssize_t SocketMock::Receive(void* data, size_t length, int /*timeout_ms*/) { in Receive()
105 int SocketMock::Close() { in Close()
109 std::unique_ptr<Socket> SocketMock::Accept() { in Accept()
125 void SocketMock::ExpectSend(std::string message) { in ExpectSend()
129 void SocketMock::ExpectSendFailure(std::string message) { in ExpectSendFailure()
133 void SocketMock::AddReceive(std::string message) { in AddReceive()
137 void SocketMock::AddReceiveTimeout() { in AddReceiveTimeout()
141 void SocketMock::AddReceiveFailure() { in AddReceiveFailure()
145 void SocketMock::AddAccept(std::unique_ptr<Socket> sock) { in AddAccept()
149 SocketMock::Event::Event(EventType _type, std::string _message, ssize_t _status, in Event()