| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/win/worker_process_launcher.h" | 5 #include "remoting/host/win/worker_process_launcher.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 EXPECT_CALL(server_listener_, OnPermanentError(_)) | 474 EXPECT_CALL(server_listener_, OnPermanentError(_)) |
| 475 .Times(1) | 475 .Times(1) |
| 476 .WillOnce(InvokeWithoutArgs(this, | 476 .WillOnce(InvokeWithoutArgs(this, |
| 477 &WorkerProcessLauncherTest::StopWorker)); | 477 &WorkerProcessLauncherTest::StopWorker)); |
| 478 | 478 |
| 479 StartWorker(); | 479 StartWorker(); |
| 480 base::RunLoop().Run(); | 480 base::RunLoop().Run(); |
| 481 } | 481 } |
| 482 | 482 |
| 483 // Requests the worker to crash and expects it to honor the request. | 483 // Requests the worker to crash and expects it to honor the request. |
| 484 // Disabled: http://crbug.com/659219 | 484 TEST_F(WorkerProcessLauncherTest, Crash) { |
| 485 TEST_F(WorkerProcessLauncherTest, DISABLED_Crash) { | |
| 486 EXPECT_CALL(*launcher_delegate_, LaunchProcess(_)) | 485 EXPECT_CALL(*launcher_delegate_, LaunchProcess(_)) |
| 487 .Times(2) | 486 .Times(2) |
| 488 .WillRepeatedly(Invoke( | 487 .WillRepeatedly(Invoke( |
| 489 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect)); | 488 this, &WorkerProcessLauncherTest::LaunchProcessAndConnect)); |
| 490 | 489 |
| 491 EXPECT_CALL(server_listener_, OnChannelConnected(_)) | 490 EXPECT_CALL(server_listener_, OnChannelConnected(_)) |
| 492 .Times(2) | 491 .Times(2) |
| 493 .WillOnce(InvokeWithoutArgs(this, | 492 .WillOnce(InvokeWithoutArgs(this, |
| 494 &WorkerProcessLauncherTest::CrashWorker)) | 493 &WorkerProcessLauncherTest::CrashWorker)) |
| 495 .WillOnce(InvokeWithoutArgs(this, | 494 .WillOnce(InvokeWithoutArgs(this, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 525 EXPECT_CALL(client_listener_, OnCrash(_, _, _)) | 524 EXPECT_CALL(client_listener_, OnCrash(_, _, _)) |
| 526 .Times(1) | 525 .Times(1) |
| 527 .WillOnce(InvokeWithoutArgs( | 526 .WillOnce(InvokeWithoutArgs( |
| 528 this, &WorkerProcessLauncherTest::SendFakeMessageToLauncher)); | 527 this, &WorkerProcessLauncherTest::SendFakeMessageToLauncher)); |
| 529 | 528 |
| 530 StartWorker(); | 529 StartWorker(); |
| 531 base::RunLoop().Run(); | 530 base::RunLoop().Run(); |
| 532 } | 531 } |
| 533 | 532 |
| 534 } // namespace remoting | 533 } // namespace remoting |
| OLD | NEW |