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

Unified Diff: remoting/host/client_session_unittest.cc

Issue 11260053: Use correct thread for audio capturing and encoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
Index: remoting/host/client_session_unittest.cc
diff --git a/remoting/host/client_session_unittest.cc b/remoting/host/client_session_unittest.cc
index e9f1f4baaa170bf6739590143516fd8504e117e0..2ec094121df5e6975022702929c9335af3d04903 100644
--- a/remoting/host/client_session_unittest.cc
+++ b/remoting/host/client_session_unittest.cc
@@ -5,7 +5,6 @@
#include "base/message_loop.h"
#include "remoting/base/auto_thread_task_runner.h"
#include "remoting/base/constants.h"
-#include "remoting/host/audio_capturer.h"
#include "remoting/host/client_session.h"
#include "remoting/host/desktop_environment.h"
#include "remoting/host/host_mock_objects.h"
@@ -77,6 +76,7 @@ class ClientSessionTest : public testing::Test {
client_session_ = new ClientSession(
&session_event_handler_,
+ context_.audio_task_runner(),
context_.capture_task_runner(),
context_.encode_task_runner(),
context_.network_task_runner(),
@@ -111,8 +111,7 @@ class ClientSessionTest : public testing::Test {
EXPECT_TRUE(!event_executor_);
event_executor_ = new MockEventExecutor();
- return new DesktopEnvironment(scoped_ptr<AudioCapturer>(NULL),
- scoped_ptr<EventExecutor>(event_executor_),
+ return new DesktopEnvironment(scoped_ptr<EventExecutor>(event_executor_),
scoped_ptr<VideoFrameCapturer>(capturer));
}

Powered by Google App Engine
This is Rietveld 408576698