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

Unified Diff: remoting/test/test_chromoting_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/test/protocol_perftest.cc ('k') | services/navigation/content_client/browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/test_chromoting_client_unittest.cc
diff --git a/remoting/test/test_chromoting_client_unittest.cc b/remoting/test/test_chromoting_client_unittest.cc
index fef3401b3c5a87a87e8d3f5da775b3a800f6fb81..d39c8647fc0ac74f11d268a7e2258baa62f2272e 100644
--- a/remoting/test/test_chromoting_client_unittest.cc
+++ b/remoting/test/test_chromoting_client_unittest.cc
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "remoting/protocol/fake_connection_to_host.h"
#include "remoting/signaling/fake_signal_strategy.h"
#include "remoting/test/connection_setup_info.h"
@@ -86,7 +87,7 @@ void TestChromotingClientTest::TearDown() {
// The IceTransportFactory destroys the PortAllocator via a DeleteSoon
// operation. If we do not allow the message loop to run here, we run the
// risk of the DeleteSoon task being dropped and incurring a memory leak.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void TestChromotingClientTest::ConnectionStateChanged(
« no previous file with comments | « remoting/test/protocol_perftest.cc ('k') | services/navigation/content_client/browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698