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