Lines Matching refs:stdout
96 int ReadShellProtocol(borrowed_fd fd, std::string* stdout, std::string* stderr) { in ReadShellProtocol() argument
98 stdout->clear(); in ReadShellProtocol()
105 stdout->append(protocol->data(), protocol->data_length()); in ReadShellProtocol()
181 std::string stdout, stderr; in TEST_F() local
182 EXPECT_EQ(24, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
183 ExpectLinesEqual(stdout, {"foo", "baz"}); in TEST_F()
195 std::string stdout, stderr; in TEST_F() local
196 EXPECT_EQ(50, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
197 ExpectLinesEqual(stdout, {"foo", "bar", "baz"}); in TEST_F()
220 std::string stdout, stderr; in TEST_F() local
221 EXPECT_EQ(0, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
225 EXPECT_FALSE(stdout.find(command) == std::string::npos); in TEST_F()
227 EXPECT_FALSE(stdout.find("--abc123--") == std::string::npos); in TEST_F()
243 std::string stdout, stderr; in TEST_F() local
244 EXPECT_EQ(0, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
245 ExpectLinesEqual(stdout, {"foo", "barTEST_DONE"}); in TEST_F()
255 std::string stdout, stderr; in TEST_F() local
256 EXPECT_EQ(0, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
257 ExpectLinesEqual(stdout, {}); in TEST_F()
267 std::string stdout, stderr; in TEST_F() local
268 EXPECT_EQ(0, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
269 ExpectLinesEqual(stdout, {"foo"}); in TEST_F()
315 std::string stdout, stderr; in TEST_F() local
317 EXPECT_EQ(1, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
318 ExpectLinesEqual(stdout, {"out"}); in TEST_F()