| Index: content/renderer/media/video_capture_impl_manager_unittest.cc
|
| diff --git a/content/renderer/media/video_capture_impl_manager_unittest.cc b/content/renderer/media/video_capture_impl_manager_unittest.cc
|
| index 1258c7688e90ebba49f234a036e922a6aa94b5f2..39c9e8e4faedb7eb55352815090d182c83ca6c18 100644
|
| --- a/content/renderer/media/video_capture_impl_manager_unittest.cc
|
| +++ b/content/renderer/media/video_capture_impl_manager_unittest.cc
|
| @@ -137,10 +137,8 @@ TEST_F(VideoCaptureImplManagerTest, MultipleClients) {
|
| base::Closure stop_cb1, stop_cb2;
|
| {
|
| base::RunLoop run_loop;
|
| - base::Closure quit_closure = BindToCurrentLoop(
|
| - run_loop.QuitClosure());
|
| - EXPECT_CALL(*this, OnStarted()).WillOnce(
|
| - RunClosure(quit_closure));
|
| + base::Closure quit_closure = BindToCurrentLoop(run_loop.QuitClosure());
|
| + EXPECT_CALL(*this, OnStarted()).WillOnce(RunClosure(quit_closure));
|
| EXPECT_CALL(*this, OnStarted()).RetiresOnSaturation();
|
| stop_cb1 = StartCapture(params_);
|
| stop_cb2 = StartCapture(params_);
|
| @@ -150,10 +148,8 @@ TEST_F(VideoCaptureImplManagerTest, MultipleClients) {
|
|
|
| {
|
| base::RunLoop run_loop;
|
| - base::Closure quit_closure = BindToCurrentLoop(
|
| - run_loop.QuitClosure());
|
| - EXPECT_CALL(*this, OnStopped()).WillOnce(
|
| - RunClosure(quit_closure));
|
| + base::Closure quit_closure = BindToCurrentLoop(run_loop.QuitClosure());
|
| + EXPECT_CALL(*this, OnStopped()).WillOnce(RunClosure(quit_closure));
|
| EXPECT_CALL(*this, OnStopped()).RetiresOnSaturation();
|
| stop_cb1.Run();
|
| stop_cb2.Run();
|
|
|