Lines Matching refs:string
9 #include <string>
39 ClientController(const std::string& client_name,
69 ClientController& StartClient(const std::string& client_name);
72 void StartClientWithHandler(const std::string& client_name,
88 // Writes a string to the pipe, transferring handles in the process.
90 const std::string& message,
94 // Writes a string to the pipe with no handles.
95 static void WriteMessage(MojoHandle mp, const std::string& message);
97 // Reads a string from the pipe, expecting to read an exact number of handles
98 // in the process. Returns the read string.
99 static std::string ReadMessageWithHandles(MojoHandle mp,
103 // Reads a string from the pipe, expecting either zero or one handles.
105 static std::string ReadMessageWithOptionalHandle(MojoHandle mp,
108 // Reads a string from the pipe, expecting to read no handles.
109 // Returns the string.
110 static std::string ReadMessage(MojoHandle mp);
112 // Reads a string from the pipe, expecting to read no handles and exactly
119 const std::string& message);
122 static void VerifyEcho(MojoHandle mp, const std::string& message);
150 static void WriteData(MojoHandle producer, const std::string& data);
153 static std::string ReadData(MojoHandle consumer, size_t size);