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..6f13134240d202acf3b2228dc1b4ecb05f83c031 100644 |
--- a/remoting/host/screen_recorder_unittest.cc |
+++ b/remoting/host/screen_recorder_unittest.cc |
@@ -2,11 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "remoting/host/screen_recorder.h" |
+ |
+#include "base/bind.h" |
#include "base/message_loop.h" |
#include "base/task.h" |
#include "remoting/base/base_mock_objects.h" |
#include "remoting/host/host_mock_objects.h" |
-#include "remoting/host/screen_recorder.h" |
#include "remoting/proto/video.pb.h" |
#include "remoting/protocol/protocol_mock_objects.h" |
#include "testing/gmock/include/gmock/gmock.h" |
@@ -190,8 +192,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 +204,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(); |
} |