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

Unified Diff: remoting/host/host_change_notification_listener_unittest.cc

Issue 2352853002: Disallow redundant Bind calls. (Closed)
Patch Set: static_assert message tweak Created 4 years, 3 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 | « media/base/bind_to_current_loop.h ('k') | no next file » | 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 fe8ff27918e84cf8808089613a1ebdf076e9c18e..1a1d4667645abcad8a8c0ac4da2bf427cec3ea2a 100644
--- a/remoting/host/host_change_notification_listener_unittest.cc
+++ b/remoting/host/host_change_notification_listener_unittest.cc
@@ -99,7 +99,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveValidNotification) {
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
message_loop_.task_runner()->PostTask(
- FROM_HERE, base::Bind(base::MessageLoop::QuitWhenIdleClosure()));
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
base::RunLoop().Run();
}
@@ -112,7 +112,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveNotificationBeforeDelete) {
stanza.get());
host_change_notification_listener_.reset();
message_loop_.task_runner()->PostTask(
- FROM_HERE, base::Bind(base::MessageLoop::QuitWhenIdleClosure()));
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
base::RunLoop().Run();
}
@@ -125,7 +125,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveInvalidHostIdNotification) {
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
message_loop_.task_runner()->PostTask(
- FROM_HERE, base::Bind(base::MessageLoop::QuitWhenIdleClosure()));
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
base::RunLoop().Run();
}
@@ -137,7 +137,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveInvalidBotJidNotification) {
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
message_loop_.task_runner()->PostTask(
- FROM_HERE, base::Bind(base::MessageLoop::QuitWhenIdleClosure()));
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
base::RunLoop().Run();
}
@@ -149,7 +149,7 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveNonDeleteNotification) {
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
message_loop_.task_runner()->PostTask(
- FROM_HERE, base::Bind(base::MessageLoop::QuitWhenIdleClosure()));
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
base::RunLoop().Run();
}
« no previous file with comments | « media/base/bind_to_current_loop.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698