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/protocol/jingle_session.h" | 5 #include "remoting/protocol/jingle_session.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "remoting/protocol/chromium_port_allocator_factory.h" | 23 #include "remoting/protocol/chromium_port_allocator_factory.h" |
24 #include "remoting/protocol/connection_tester.h" | 24 #include "remoting/protocol/connection_tester.h" |
25 #include "remoting/protocol/fake_authenticator.h" | 25 #include "remoting/protocol/fake_authenticator.h" |
26 #include "remoting/protocol/jingle_session_manager.h" | 26 #include "remoting/protocol/jingle_session_manager.h" |
27 #include "remoting/protocol/network_settings.h" | 27 #include "remoting/protocol/network_settings.h" |
28 #include "remoting/protocol/transport.h" | 28 #include "remoting/protocol/transport.h" |
29 #include "remoting/protocol/transport_context.h" | 29 #include "remoting/protocol/transport_context.h" |
30 #include "remoting/signaling/fake_signal_strategy.h" | 30 #include "remoting/signaling/fake_signal_strategy.h" |
31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
33 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 33 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
34 | 34 |
35 using testing::_; | 35 using testing::_; |
36 using testing::AtLeast; | 36 using testing::AtLeast; |
37 using testing::AtMost; | 37 using testing::AtMost; |
38 using testing::DeleteArg; | 38 using testing::DeleteArg; |
39 using testing::DoAll; | 39 using testing::DoAll; |
40 using testing::InSequence; | 40 using testing::InSequence; |
41 using testing::Invoke; | 41 using testing::Invoke; |
42 using testing::InvokeWithoutArgs; | 42 using testing::InvokeWithoutArgs; |
43 using testing::Return; | 43 using testing::Return; |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 base::RunLoop().RunUntilIdle(); | 550 base::RunLoop().RunUntilIdle(); |
551 | 551 |
552 // Verify that transport-info that the first transport-info message was | 552 // Verify that transport-info that the first transport-info message was |
553 // received. | 553 // received. |
554 ASSERT_EQ(client_transport_.received_messages().size(), 1U); | 554 ASSERT_EQ(client_transport_.received_messages().size(), 1U); |
555 EXPECT_EQ("1", client_transport_.received_messages()[0]->Attr(buzz::QN_ID)); | 555 EXPECT_EQ("1", client_transport_.received_messages()[0]->Attr(buzz::QN_ID)); |
556 } | 556 } |
557 | 557 |
558 } // namespace protocol | 558 } // namespace protocol |
559 } // namespace remoting | 559 } // namespace remoting |
OLD | NEW |