Lines Matching refs:command
47 void StartTestSubprocess(const char* command, SubprocessType type,
51 void StartTestCommandInProcess(std::string name, Command command, SubprocessProtocol protocol);
63 const char* command, SubprocessType type, SubprocessProtocol protocol) { in StartTestSubprocess() argument
64 command_fd_ = StartSubprocess(command, nullptr, type, protocol); in StartTestSubprocess()
71 void ShellServiceTest::StartTestCommandInProcess(std::string name, Command command, in StartTestCommandInProcess() argument
73 command_fd_ = StartCommandInProcess(std::move(name), std::move(command), protocol); in StartTestCommandInProcess()
212 for (std::string command : commands) { in TEST_F() local
214 command.push_back('\n'); in TEST_F()
215 memcpy(protocol->data(), command.data(), command.length()); in TEST_F()
216 ASSERT_TRUE(protocol->Write(ShellProtocol::kIdStdin, command.length())); in TEST_F()
224 for (const char* command : commands) { in TEST_F() local
225 EXPECT_FALSE(stdout.find(command) == std::string::npos); in TEST_F()