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 14 matching lines...) Expand all Loading... |
25 #include "remoting/protocol/connection_tester.h" | 25 #include "remoting/protocol/connection_tester.h" |
26 #include "remoting/protocol/fake_authenticator.h" | 26 #include "remoting/protocol/fake_authenticator.h" |
27 #include "remoting/protocol/jingle_session_manager.h" | 27 #include "remoting/protocol/jingle_session_manager.h" |
28 #include "remoting/protocol/network_settings.h" | 28 #include "remoting/protocol/network_settings.h" |
29 #include "remoting/protocol/session_plugin.h" | 29 #include "remoting/protocol/session_plugin.h" |
30 #include "remoting/protocol/transport.h" | 30 #include "remoting/protocol/transport.h" |
31 #include "remoting/protocol/transport_context.h" | 31 #include "remoting/protocol/transport_context.h" |
32 #include "remoting/signaling/fake_signal_strategy.h" | 32 #include "remoting/signaling/fake_signal_strategy.h" |
33 #include "testing/gmock/include/gmock/gmock.h" | 33 #include "testing/gmock/include/gmock/gmock.h" |
34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
35 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 35 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
36 | 36 |
37 using testing::_; | 37 using testing::_; |
38 using testing::AtLeast; | 38 using testing::AtLeast; |
39 using testing::AtMost; | 39 using testing::AtMost; |
40 using testing::DeleteArg; | 40 using testing::DeleteArg; |
41 using testing::DoAll; | 41 using testing::DoAll; |
42 using testing::InSequence; | 42 using testing::InSequence; |
43 using testing::Invoke; | 43 using testing::Invoke; |
44 using testing::InvokeWithoutArgs; | 44 using testing::InvokeWithoutArgs; |
45 using testing::Return; | 45 using testing::Return; |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 FakeAuthenticator::CLIENT, 3, FakeAuthenticator::ACCEPT, true)); | 643 FakeAuthenticator::CLIENT, 3, FakeAuthenticator::ACCEPT, true)); |
644 client_session_->Close(HOST_OVERLOAD); | 644 client_session_->Close(HOST_OVERLOAD); |
645 base::RunLoop().RunUntilIdle(); | 645 base::RunLoop().RunUntilIdle(); |
646 // We should only send a SESSION_TERMINATE message if the session has been | 646 // We should only send a SESSION_TERMINATE message if the session has been |
647 // closed before SESSION_INITIATE message. | 647 // closed before SESSION_INITIATE message. |
648 ASSERT_EQ(1U, host_signal_strategy_->received_messages().size()); | 648 ASSERT_EQ(1U, host_signal_strategy_->received_messages().size()); |
649 } | 649 } |
650 | 650 |
651 } // namespace protocol | 651 } // namespace protocol |
652 } // namespace remoting | 652 } // namespace remoting |
OLD | NEW |