OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/register_support_host_request.h" | 5 #include "remoting/host/register_support_host_request.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
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/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "remoting/base/constants.h" | 15 #include "remoting/base/constants.h" |
16 #include "remoting/base/rsa_key_pair.h" | 16 #include "remoting/base/rsa_key_pair.h" |
17 #include "remoting/base/test_rsa_key_pair.h" | 17 #include "remoting/base/test_rsa_key_pair.h" |
18 #include "remoting/signaling/iq_sender.h" | 18 #include "remoting/signaling/iq_sender.h" |
19 #include "remoting/signaling/mock_signal_strategy.h" | 19 #include "remoting/signaling/mock_signal_strategy.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 22 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
23 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 23 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
24 | 24 |
25 using buzz::QName; | 25 using buzz::QName; |
26 using buzz::XmlElement; | 26 using buzz::XmlElement; |
27 | 27 |
28 using testing::_; | 28 using testing::_; |
29 using testing::Invoke; | 29 using testing::Invoke; |
30 using testing::NotNull; | 30 using testing::NotNull; |
31 using testing::Return; | 31 using testing::Return; |
32 using testing::SaveArg; | 32 using testing::SaveArg; |
33 | 33 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 for (auto& listener : signal_strategy_listeners_) { | 156 for (auto& listener : signal_strategy_listeners_) { |
157 if (listener.OnSignalStrategyIncomingStanza(response.get())) | 157 if (listener.OnSignalStrategyIncomingStanza(response.get())) |
158 consumed++; | 158 consumed++; |
159 } | 159 } |
160 EXPECT_EQ(1, consumed); | 160 EXPECT_EQ(1, consumed); |
161 | 161 |
162 base::RunLoop().RunUntilIdle(); | 162 base::RunLoop().RunUntilIdle(); |
163 } | 163 } |
164 | 164 |
165 } // namespace remoting | 165 } // namespace remoting |
OLD | NEW |