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

Unified Diff: remoting/protocol/channel_multiplexer_unittest.cc

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 4 years, 6 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/protocol/channel_multiplexer_unittest.cc
diff --git a/remoting/protocol/channel_multiplexer_unittest.cc b/remoting/protocol/channel_multiplexer_unittest.cc
index 0cac0452110ba64f01cbbc446894bd21c71ab9ab..9a1e4ee20663ee203d0df7bc80084148b88d115c 100644
--- a/remoting/protocol/channel_multiplexer_unittest.cc
+++ b/remoting/protocol/channel_multiplexer_unittest.cc
@@ -99,7 +99,7 @@ class ChannelMultiplexerTest : public testing::Test {
&ChannelMultiplexerTest::OnChannelConnected, base::Unretained(this),
client_socket, &counter));
- message_loop_.Run();
+ base::RunLoop().Run();
EXPECT_TRUE(host_socket->get());
EXPECT_TRUE(client_socket->get());
@@ -148,7 +148,7 @@ TEST_F(ChannelMultiplexerTest, OneChannel) {
StreamConnectionTester tester(host_socket.get(), client_socket.get(),
kMessageSize, kMessages);
tester.Start();
- message_loop_.Run();
+ base::RunLoop().Run();
tester.CheckResults();
}
@@ -170,7 +170,7 @@ TEST_F(ChannelMultiplexerTest, TwoChannels) {
tester1.Start();
tester2.Start();
while (!tester1.done() || !tester2.done()) {
- message_loop_.Run();
+ base::RunLoop().Run();
}
tester1.CheckResults();
tester2.CheckResults();
@@ -212,7 +212,7 @@ TEST_F(ChannelMultiplexerTest, FourChannels) {
tester4.Start();
while (!tester1.done() || !tester2.done() ||
!tester3.done() || !tester4.done()) {
- message_loop_.Run();
+ base::RunLoop().Run();
}
tester1.CheckResults();
tester2.CheckResults();

Powered by Google App Engine
This is Rietveld 408576698