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

Unified Diff: remoting/host/host_change_notification_listener_unittest.cc

Issue 1394803004: Don't use base::MessageLoop::{Quit,QuitClosure} in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/host/daemon_process_unittest.cc ('k') | remoting/host/host_status_logger_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « remoting/host/daemon_process_unittest.cc ('k') | remoting/host/host_status_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698