Index: remoting/host/screen_recorder_unittest.cc |
diff --git a/remoting/host/screen_recorder_unittest.cc b/remoting/host/screen_recorder_unittest.cc |
index 69650eeade5a77ddea31d47950511c12694dd85f..259a2aae5fee170bf51bd62b6f42fa31bb4ef146 100644 |
--- a/remoting/host/screen_recorder_unittest.cc |
+++ b/remoting/host/screen_recorder_unittest.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/bind.h" |
#include "base/message_loop.h" |
#include "base/task.h" |
#include "remoting/base/base_mock_objects.h" |
@@ -190,8 +191,7 @@ TEST_F(ScreenRecorderTest, StartAndStop) { |
.WillOnce(DoAll( |
FinishSend(), |
StopScreenRecorder(record_, |
- NewRunnableFunction(&QuitMessageLoop, |
- &message_loop_)))) |
+ base::Bind(&QuitMessageLoop, &message_loop_)))) |
.RetiresOnSaturation(); |
// Add the mock client connection to the session. |
@@ -203,7 +203,7 @@ TEST_F(ScreenRecorderTest, StartAndStop) { |
} |
TEST_F(ScreenRecorderTest, StopWithoutStart) { |
- record_->Stop(NewRunnableFunction(&QuitMessageLoop, &message_loop_)); |
+ record_->Stop(base::Bind(&QuitMessageLoop, &message_loop_)); |
message_loop_.Run(); |
} |