Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Unified Diff: remoting/host/screen_recorder_unittest.cc

Issue 7635005: Properly handle screen recorder shutdown in ChromotingHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/screen_recorder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « remoting/host/screen_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698