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

Unified Diff: remoting/jingle_glue/iq_sender_unittest.cc

Issue 11364031: remoting: Update calls froms RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/jingle_glue/iq_sender_unittest.cc
diff --git a/remoting/jingle_glue/iq_sender_unittest.cc b/remoting/jingle_glue/iq_sender_unittest.cc
index a5f02a53db859874242469d802de50f44f77e912..b09f114d3fee09047b63540a992b615352b0faac 100644
--- a/remoting/jingle_glue/iq_sender_unittest.cc
+++ b/remoting/jingle_glue/iq_sender_unittest.cc
@@ -102,7 +102,7 @@ TEST_F(IqSenderTest, SendIq) {
EXPECT_TRUE(sender_->OnSignalStrategyIncomingStanza(response.get()));
EXPECT_CALL(callback_, OnReply(request_.get(), XmlEq(response.get())));
- message_loop_.RunAllPending();
+ message_loop_.RunUntilIdle();
}
TEST_F(IqSenderTest, Timeout) {
@@ -134,7 +134,7 @@ TEST_F(IqSenderTest, InvalidFrom) {
EXPECT_CALL(callback_, OnReply(_, _))
.Times(0);
EXPECT_FALSE(sender_->OnSignalStrategyIncomingStanza(response.get()));
- message_loop_.RunAllPending();
+ message_loop_.RunUntilIdle();
}
TEST_F(IqSenderTest, IdMatchingHack) {
@@ -154,7 +154,7 @@ TEST_F(IqSenderTest, IdMatchingHack) {
EXPECT_TRUE(sender_->OnSignalStrategyIncomingStanza(response.get()));
EXPECT_CALL(callback_, OnReply(request_.get(), XmlEq(response.get())));
- message_loop_.RunAllPending();
+ message_loop_.RunUntilIdle();
}
} // namespace remoting
« no previous file with comments | « remoting/host/register_support_host_request_unittest.cc ('k') | remoting/protocol/buffered_socket_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698