Index: remoting/host/host_change_notification_listener_unittest.cc |
diff --git a/remoting/host/host_change_notification_listener_unittest.cc b/remoting/host/host_change_notification_listener_unittest.cc |
index bd5c8dc306e9f5bca8dc9fb400f9cdc2dd45d912..0d3f231cc2421008ce476a146aabfd52b2c3a187 100644 |
--- a/remoting/host/host_change_notification_listener_unittest.cc |
+++ b/remoting/host/host_change_notification_listener_unittest.cc |
@@ -96,7 +96,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveValidNotification) { |
host_change_notification_listener_->OnSignalStrategyIncomingStanza( |
stanza.get()); |
message_loop_.PostTask(FROM_HERE, |
- base::Bind(base::MessageLoop::QuitClosure())); |
+ base::Bind(base::MessageLoop::QuitWhenIdleClosure())); |
message_loop_.Run(); |
} |
@@ -109,7 +109,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveNotificationBeforeDelete) { |
stanza.get()); |
host_change_notification_listener_.reset(); |
message_loop_.PostTask(FROM_HERE, |
- base::Bind(base::MessageLoop::QuitClosure())); |
+ base::Bind(base::MessageLoop::QuitWhenIdleClosure())); |
message_loop_.Run(); |
} |
@@ -122,7 +122,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveInvalidHostIdNotification) { |
host_change_notification_listener_->OnSignalStrategyIncomingStanza( |
stanza.get()); |
message_loop_.PostTask(FROM_HERE, |
- base::Bind(base::MessageLoop::QuitClosure())); |
+ base::Bind(base::MessageLoop::QuitWhenIdleClosure())); |
message_loop_.Run(); |
} |
@@ -134,7 +134,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveInvalidBotJidNotification) { |
host_change_notification_listener_->OnSignalStrategyIncomingStanza( |
stanza.get()); |
message_loop_.PostTask(FROM_HERE, |
- base::Bind(base::MessageLoop::QuitClosure())); |
+ base::Bind(base::MessageLoop::QuitWhenIdleClosure())); |
message_loop_.Run(); |
} |
@@ -146,7 +146,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveNonDeleteNotification) { |
host_change_notification_listener_->OnSignalStrategyIncomingStanza( |
stanza.get()); |
message_loop_.PostTask(FROM_HERE, |
- base::Bind(base::MessageLoop::QuitClosure())); |
+ base::Bind(base::MessageLoop::QuitWhenIdleClosure())); |
message_loop_.Run(); |
} |