Index: remoting/protocol/jingle_session_unittest.cc |
diff --git a/remoting/protocol/jingle_session_unittest.cc b/remoting/protocol/jingle_session_unittest.cc |
index 809dd65130ca31e6f9bd49b7bda4be4b32c80762..433356b762a1ea1a22a4ff228a8b0e6e4b1ae95b 100644 |
--- a/remoting/protocol/jingle_session_unittest.cc |
+++ b/remoting/protocol/jingle_session_unittest.cc |
@@ -117,7 +117,7 @@ class JingleSessionTest : public testing::Test { |
virtual void TearDown() { |
CloseSessions(); |
CloseSessionManager(); |
- message_loop_->RunAllPending(); |
+ message_loop_->RunUntilIdle(); |
} |
void CloseSessions() { |
@@ -224,7 +224,7 @@ class JingleSessionTest : public testing::Test { |
CandidateSessionConfig::CreateDefault()); |
client_session_->SetEventHandler(&client_session_event_handler_); |
- message_loop_->RunAllPending(); |
+ message_loop_->RunUntilIdle(); |
} |
void CreateChannel() { |
@@ -307,7 +307,7 @@ TEST_F(JingleSessionTest, RejectConnection) { |
kHostJid, authenticator.Pass(), CandidateSessionConfig::CreateDefault()); |
client_session_->SetEventHandler(&client_session_event_handler_); |
- message_loop_->RunAllPending(); |
+ message_loop_->RunUntilIdle(); |
} |
// Verify that we can connect two endpoints with single-step authentication. |