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

Unified Diff: remoting/protocol/connection_unittest.cc

Issue 2610493002: Use TaskScheduler instead of WorkerPool in webrtc_video_renderer_adapter.cc. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « no previous file | remoting/protocol/webrtc_video_renderer_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_unittest.cc
diff --git a/remoting/protocol/connection_unittest.cc b/remoting/protocol/connection_unittest.cc
index 5fcdc508ebdd4dde3604fdeed01bf8bf5771110b..0dbd689c501b27e3224b5518b3615d5ef3a3e292 100644
--- a/remoting/protocol/connection_unittest.cc
+++ b/remoting/protocol/connection_unittest.cc
@@ -11,6 +11,7 @@
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/test/scoped_task_scheduler.h"
#include "base/threading/thread.h"
#include "base/threading/thread_checker.h"
#include "remoting/base/constants.h"
@@ -258,7 +259,8 @@ class ConnectionTest : public testing::Test,
public testing::WithParamInterface<bool> {
public:
ConnectionTest()
- : video_encode_thread_("VideoEncode"),
+ : scoped_task_scheduler_(&message_loop_),
+ video_encode_thread_("VideoEncode"),
audio_encode_thread_("AudioEncode"),
audio_decode_thread_("AudioDecode") {
video_encode_thread_.Start();
@@ -429,6 +431,7 @@ class ConnectionTest : public testing::Test,
}
base::MessageLoopForIO message_loop_;
+ base::test::ScopedTaskScheduler scoped_task_scheduler_;
std::unique_ptr<base::RunLoop> run_loop_;
MockConnectionToClientEventHandler host_event_handler_;
« no previous file with comments | « no previous file | remoting/protocol/webrtc_video_renderer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698