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

Unified Diff: remoting/host/host_change_notification_listener_unittest.cc

Issue 14314026: remoting: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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/heartbeat_sender_unittest.cc ('k') | remoting/host/ipc_desktop_environment_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 5ec6ff8a40e46d6629bcd4ea6167a5d0973e30e1..b5b0cd8f255ef022191ed25cc017b58f44bd78d4 100644
--- a/remoting/host/host_change_notification_listener_unittest.cc
+++ b/remoting/host/host_change_notification_listener_unittest.cc
@@ -85,7 +85,7 @@ class HostChangeNotificationListenerTest : public testing::Test {
MockSignalStrategy signal_strategy_;
std::set<SignalStrategy::Listener*> signal_strategy_listeners_;
scoped_ptr<HostChangeNotificationListener> host_change_notification_listener_;
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
};
TEST_F(HostChangeNotificationListenerTest, ReceiveValidNotification) {
@@ -95,7 +95,8 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveValidNotification) {
"delete", kHostId, kTestBotJid);
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
- message_loop_.PostTask(FROM_HERE, base::Bind(MessageLoop::QuitClosure()));
+ message_loop_.PostTask(FROM_HERE,
+ base::Bind(base::MessageLoop::QuitClosure()));
message_loop_.Run();
}
@@ -107,7 +108,8 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveNotificationBeforeDelete) {
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
host_change_notification_listener_.reset();
- message_loop_.PostTask(FROM_HERE, base::Bind(MessageLoop::QuitClosure()));
+ message_loop_.PostTask(FROM_HERE,
+ base::Bind(base::MessageLoop::QuitClosure()));
message_loop_.Run();
}
@@ -119,7 +121,8 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveInvalidHostIdNotification) {
"delete", "1", kTestBotJid);
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
- message_loop_.PostTask(FROM_HERE, base::Bind(MessageLoop::QuitClosure()));
+ message_loop_.PostTask(FROM_HERE,
+ base::Bind(base::MessageLoop::QuitClosure()));
message_loop_.Run();
}
@@ -130,7 +133,8 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveInvalidBotJidNotification) {
"delete", kHostId, "notremotingbot@bot.talk.google.com");
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
- message_loop_.PostTask(FROM_HERE, base::Bind(MessageLoop::QuitClosure()));
+ message_loop_.PostTask(FROM_HERE,
+ base::Bind(base::MessageLoop::QuitClosure()));
message_loop_.Run();
}
@@ -141,7 +145,8 @@ TEST_F(HostChangeNotificationListenerTest, ReceiveNonDeleteNotification) {
"update", kHostId, kTestBotJid);
host_change_notification_listener_->OnSignalStrategyIncomingStanza(
stanza.get());
- message_loop_.PostTask(FROM_HERE, base::Bind(MessageLoop::QuitClosure()));
+ message_loop_.PostTask(FROM_HERE,
+ base::Bind(base::MessageLoop::QuitClosure()));
message_loop_.Run();
}
« no previous file with comments | « remoting/host/heartbeat_sender_unittest.cc ('k') | remoting/host/ipc_desktop_environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698