Lines Matching refs:mp
106 void MojoTestBase::WriteMessageWithHandles(MojoHandle mp, in WriteMessageWithHandles() argument
110 CHECK_EQ(MojoWriteMessage(mp, message.data(), in WriteMessageWithHandles()
117 void MojoTestBase::WriteMessage(MojoHandle mp, const std::string& message) { in WriteMessage() argument
118 WriteMessageWithHandles(mp, message, nullptr, 0); in WriteMessage()
123 MojoHandle mp, in ReadMessageWithHandles() argument
126 CHECK_EQ(MojoWait(mp, MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE, in ReadMessageWithHandles()
132 CHECK_EQ(MojoReadMessage(mp, nullptr, &message_size, nullptr, &num_handles, in ReadMessageWithHandles()
138 CHECK_EQ(MojoReadMessage(mp, &message[0], &message_size, handles, in ReadMessageWithHandles()
148 std::string MojoTestBase::ReadMessageWithOptionalHandle(MojoHandle mp, in ReadMessageWithOptionalHandle() argument
150 CHECK_EQ(MojoWait(mp, MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE, in ReadMessageWithOptionalHandle()
156 CHECK_EQ(MojoReadMessage(mp, nullptr, &message_size, nullptr, &num_handles, in ReadMessageWithOptionalHandle()
164 CHECK_EQ(MojoReadMessage(mp, &message[0], &message_size, handle, in ReadMessageWithOptionalHandle()
179 std::string MojoTestBase::ReadMessage(MojoHandle mp) { in ReadMessage() argument
180 return ReadMessageWithHandles(mp, nullptr, 0); in ReadMessage()
184 void MojoTestBase::ReadMessage(MojoHandle mp, in ReadMessage() argument
187 CHECK_EQ(MojoWait(mp, MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE, in ReadMessage()
193 CHECK_EQ(MojoReadMessage(mp, nullptr, &message_size, nullptr, &num_handles, in ReadMessage()
199 CHECK_EQ(MojoReadMessage(mp, data, &message_size, nullptr, &num_handles, in ReadMessage()
217 void MojoTestBase::VerifyEcho(MojoHandle mp, in VerifyEcho() argument
219 VerifyTransmission(mp, mp, message); in VerifyEcho()