Lines Matching refs:WorkerProcessLauncherTest

99 class WorkerProcessLauncherTest
103 WorkerProcessLauncherTest();
104 virtual ~WorkerProcessLauncherTest();
183 WorkerProcessLauncherTest::WorkerProcessLauncherTest() : event_handler_(NULL) {
186 WorkerProcessLauncherTest::~WorkerProcessLauncherTest() {
189 void WorkerProcessLauncherTest::SetUp() {
192 base::Bind(&WorkerProcessLauncherTest::QuitMainMessageLoop,
199 .WillRepeatedly(Invoke(this, &WorkerProcessLauncherTest::SendToProcess));
203 &WorkerProcessLauncherTest::DisconnectServer));
206 .WillRepeatedly(Invoke(this, &WorkerProcessLauncherTest::KillProcess));
213 void WorkerProcessLauncherTest::TearDown() {
216 bool WorkerProcessLauncherTest::OnMessageReceived(const IPC::Message& message) {
220 void WorkerProcessLauncherTest::OnChannelConnected(int32 peer_pid) {
224 void WorkerProcessLauncherTest::OnChannelError() {
228 void WorkerProcessLauncherTest::LaunchProcess(
236 void WorkerProcessLauncherTest::LaunchProcessAndConnect(
245 base::Bind(&WorkerProcessLauncherTest::ConnectClient,
249 void WorkerProcessLauncherTest::FailLaunchAndStopWorker(
257 base::Bind(&WorkerProcessLauncherTest::StopWorker,
261 void WorkerProcessLauncherTest::KillProcess() {
270 void WorkerProcessLauncherTest::TerminateWorker(DWORD exit_code) {
275 void WorkerProcessLauncherTest::ConnectClient() {
287 void WorkerProcessLauncherTest::DisconnectClient() {
291 void WorkerProcessLauncherTest::DisconnectServer() {
295 void WorkerProcessLauncherTest::SendToProcess(IPC::Message* message) {
304 void WorkerProcessLauncherTest::SendFakeMessageToLauncher() {
309 void WorkerProcessLauncherTest::CrashWorker() {
313 void WorkerProcessLauncherTest::StartWorker() {
321 void WorkerProcessLauncherTest::StopWorker() {
329 void WorkerProcessLauncherTest::QuitMainMessageLoop() {
333 void WorkerProcessLauncherTest::DoLaunchProcess() {
381 TEST_F(WorkerProcessLauncherTest, Start) {
384 .WillRepeatedly(Invoke(this, &WorkerProcessLauncherTest::LaunchProcess));
398 TEST_F(WorkerProcessLauncherTest, StartAndConnect) {
402 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect));
407 &WorkerProcessLauncherTest::StopWorker));
417 TEST_F(WorkerProcessLauncherTest, Restart) {
421 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect));
426 this, &WorkerProcessLauncherTest::TerminateWorker,
429 &WorkerProcessLauncherTest::StopWorker));
440 TEST_F(WorkerProcessLauncherTest, DropIpcChannel) {
444 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect));
450 this, &WorkerProcessLauncherTest::DisconnectClient))
452 this, &WorkerProcessLauncherTest::StopWorker));
463 TEST_F(WorkerProcessLauncherTest, PermanentError) {
467 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect));
472 this, &WorkerProcessLauncherTest::TerminateWorker,
477 &WorkerProcessLauncherTest::StopWorker));
484 TEST_F(WorkerProcessLauncherTest, Crash) {
488 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect));
493 &WorkerProcessLauncherTest::CrashWorker))
495 &WorkerProcessLauncherTest::StopWorker));
500 this, &WorkerProcessLauncherTest::TerminateWorker,
509 TEST_F(WorkerProcessLauncherTest, CrashAnyway) {
513 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect));
518 &WorkerProcessLauncherTest::CrashWorker))
520 &WorkerProcessLauncherTest::StopWorker));
526 this, &WorkerProcessLauncherTest::SendFakeMessageToLauncher));