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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/time.h" | |
10 #include "base/test/test_timeouts.h" | 9 #include "base/test/test_timeouts.h" |
| 10 #include "base/time/time.h" |
11 #include "net/socket/socket.h" | 11 #include "net/socket/socket.h" |
12 #include "net/socket/stream_socket.h" | 12 #include "net/socket/stream_socket.h" |
13 #include "remoting/base/constants.h" | 13 #include "remoting/base/constants.h" |
| 14 #include "remoting/jingle_glue/fake_signal_strategy.h" |
14 #include "remoting/protocol/authenticator.h" | 15 #include "remoting/protocol/authenticator.h" |
15 #include "remoting/protocol/channel_authenticator.h" | 16 #include "remoting/protocol/channel_authenticator.h" |
16 #include "remoting/protocol/connection_tester.h" | 17 #include "remoting/protocol/connection_tester.h" |
17 #include "remoting/protocol/fake_authenticator.h" | 18 #include "remoting/protocol/fake_authenticator.h" |
18 #include "remoting/protocol/jingle_session_manager.h" | 19 #include "remoting/protocol/jingle_session_manager.h" |
19 #include "remoting/protocol/libjingle_transport_factory.h" | 20 #include "remoting/protocol/libjingle_transport_factory.h" |
20 #include "remoting/jingle_glue/fake_signal_strategy.h" | |
21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 using testing::_; | 24 using testing::_; |
25 using testing::AtLeast; | 25 using testing::AtLeast; |
26 using testing::AtMost; | 26 using testing::AtMost; |
27 using testing::DeleteArg; | 27 using testing::DeleteArg; |
28 using testing::DoAll; | 28 using testing::DoAll; |
29 using testing::InSequence; | 29 using testing::InSequence; |
30 using testing::Invoke; | 30 using testing::Invoke; |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 .Times(AtMost(1)); | 427 .Times(AtMost(1)); |
428 ExpectRouteChange(kChannelName); | 428 ExpectRouteChange(kChannelName); |
429 | 429 |
430 message_loop_->Run(); | 430 message_loop_->Run(); |
431 | 431 |
432 EXPECT_TRUE(!host_socket_.get()); | 432 EXPECT_TRUE(!host_socket_.get()); |
433 } | 433 } |
434 | 434 |
435 } // namespace protocol | 435 } // namespace protocol |
436 } // namespace remoting | 436 } // namespace remoting |
OLD | NEW |