Lines Matching refs:message
52 std::string message(reinterpret_cast<const char*>(data), length); in Send()
53 if (events_.front().message != message) { in Send()
54 ADD_FAILURE() << "Send() expected " << events_.front().message << ", but got " << message; in Send()
85 const std::string& message = event.message; in Receive() local
86 if (message.length() > length) { in Receive()
87 ADD_FAILURE() << "Receive(): not enough bytes (" << length << ") for " << message; in Receive()
92 ssize_t return_value = message.length(); in Receive()
95 if (message.empty()) { in Receive()
98 memcpy(data, message.data(), message.length()); in Receive()
125 void SocketMock::ExpectSend(std::string message) { in ExpectSend() argument
126 events_.push(Event(EventType::kSend, std::move(message), true, nullptr)); in ExpectSend()
129 void SocketMock::ExpectSendFailure(std::string message) { in ExpectSendFailure() argument
130 events_.push(Event(EventType::kSend, std::move(message), false, nullptr)); in ExpectSendFailure()
133 void SocketMock::AddReceive(std::string message) { in AddReceive() argument
134 events_.push(Event(EventType::kReceive, std::move(message), false, nullptr)); in AddReceive()
151 : type(_type), message(_message), status(_status), sock(std::move(_sock)) {} in Event()