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

Unified Diff: remoting/client/client_status_logger_unittest.cc

Issue 1113493005: [remoting] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/host/client_session.cc » ('j') | remoting/host/heartbeat_sender.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/client_status_logger_unittest.cc
diff --git a/remoting/client/client_status_logger_unittest.cc b/remoting/client/client_status_logger_unittest.cc
index 0660fdc7d5d157c4369891ebe7a3cab9dc948e0c..f4d10c9678ce744dccbb9028972967d71f0cc990 100644
--- a/remoting/client/client_status_logger_unittest.cc
+++ b/remoting/client/client_status_logger_unittest.cc
@@ -5,7 +5,8 @@
#include "remoting/client/client_status_logger.h"
#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "remoting/client/chromoting_stats.h"
#include "remoting/signaling/mock_signal_strategy.h"
#include "remoting/signaling/server_log_entry_unittest.h"
@@ -68,7 +69,7 @@ class ClientStatusLoggerTest : public testing::Test {
void SetUp() override {
EXPECT_CALL(signal_strategy_, AddListener(_));
EXPECT_CALL(signal_strategy_, RemoveListener(_));
- message_loop_proxy_ = base::MessageLoopProxy::current();
+ message_loop_proxy_ = base::ThreadTaskRunnerHandle::Get();
client_status_logger_.reset(
new ClientStatusLogger(ServerLogEntry::ME2ME,
&signal_strategy_,
@@ -77,7 +78,7 @@ class ClientStatusLoggerTest : public testing::Test {
protected:
base::MessageLoop message_loop_;
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
+ scoped_refptr<base::SingleThreadTaskRunner> message_loop_proxy_;
MockSignalStrategy signal_strategy_;
scoped_ptr<ClientStatusLogger> client_status_logger_;
};
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | remoting/host/heartbeat_sender.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698