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

Unified Diff: remoting/host/win/rdp_client_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/remoting_me2me_host.cc ('k') | remoting/host/win/worker_process_launcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/rdp_client_unittest.cc
diff --git a/remoting/host/win/rdp_client_unittest.cc b/remoting/host/win/rdp_client_unittest.cc
index 1c51bca5fa480bbe06eb0816520e148c702449cd..b30284cf5a8d16f9bdf8799f4fe4db45c2b27249 100644
--- a/remoting/host/win/rdp_client_unittest.cc
+++ b/remoting/host/win/rdp_client_unittest.cc
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/win/scoped_com_initializer.h"
#include "remoting/base/auto_thread_task_runner.h"
#include "remoting/host/win/rdp_client.h"
@@ -140,8 +141,9 @@ void RdpClientTest::OnRdpConnected() {
EXPECT_TRUE(WtsTerminalMonitor::LookupTerminalId(session_id, &id));
EXPECT_EQ(id, terminal_id_);
- message_loop_.PostTask(FROM_HERE, base::Bind(&RdpClientTest::CloseRdpClient,
- base::Unretained(this)));
+ message_loop_.task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&RdpClientTest::CloseRdpClient, base::Unretained(this)));
}
void RdpClientTest::CloseRdpClient() {
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/win/worker_process_launcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698