diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 03:18:44 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 03:18:44 +0000 |
commit | faea9d2d6b4647180a1339992a1ad9864817c373 (patch) | |
tree | fca9ab649b9cc47c753b83b1407185058281b66b /remoting/host/host_change_notification_listener_unittest.cc | |
parent | e7eca045582b591d26fc32d740f5a1ea7ba0bc35 (diff) | |
download | chromium_src-faea9d2d6b4647180a1339992a1ad9864817c373.zip chromium_src-faea9d2d6b4647180a1339992a1ad9864817c373.tar.gz chromium_src-faea9d2d6b4647180a1339992a1ad9864817c373.tar.bz2 |
remoting: Use base::MessageLoop.
BUG=236029
R=alexeypa@chromium.org
Review URL: https://chromiumcodereview.appspot.com/14314026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/host_change_notification_listener_unittest.cc')
-rw-r--r-- | remoting/host/host_change_notification_listener_unittest.cc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/remoting/host/host_change_notification_listener_unittest.cc b/remoting/host/host_change_notification_listener_unittest.cc index 5ec6ff8..b5b0cd8 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(); } |