| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/host_change_notification_listener.h" | 5 #include "remoting/host/host_change_notification_listener.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "remoting/base/constants.h" | 13 #include "remoting/base/constants.h" |
| 14 #include "remoting/jingle_glue/mock_objects.h" | 14 #include "remoting/signaling/mock_signal_strategy.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 17 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 18 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 18 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
| 19 | 19 |
| 20 using buzz::QName; | 20 using buzz::QName; |
| 21 using buzz::XmlElement; | 21 using buzz::XmlElement; |
| 22 | 22 |
| 23 using testing::NotNull; | 23 using testing::NotNull; |
| 24 using testing::Return; | 24 using testing::Return; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 scoped_ptr<XmlElement> stanza = GetNotificationStanza( | 144 scoped_ptr<XmlElement> stanza = GetNotificationStanza( |
| 145 "update", kHostId, kTestBotJid); | 145 "update", kHostId, kTestBotJid); |
| 146 host_change_notification_listener_->OnSignalStrategyIncomingStanza( | 146 host_change_notification_listener_->OnSignalStrategyIncomingStanza( |
| 147 stanza.get()); | 147 stanza.get()); |
| 148 message_loop_.PostTask(FROM_HERE, | 148 message_loop_.PostTask(FROM_HERE, |
| 149 base::Bind(base::MessageLoop::QuitClosure())); | 149 base::Bind(base::MessageLoop::QuitClosure())); |
| 150 message_loop_.Run(); | 150 message_loop_.Run(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace remoting | 153 } // namespace remoting |
| OLD | NEW |