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 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "net/socket/socket.h" | 14 #include "net/socket/socket.h" |
15 #include "net/socket/stream_socket.h" | 15 #include "net/socket/stream_socket.h" |
16 #include "net/url_request/url_request_context_getter.h" | 16 #include "net/url_request/url_request_context_getter.h" |
17 #include "remoting/base/constants.h" | 17 #include "remoting/base/constants.h" |
18 #include "remoting/protocol/authenticator.h" | 18 #include "remoting/protocol/authenticator.h" |
19 #include "remoting/protocol/channel_authenticator.h" | 19 #include "remoting/protocol/channel_authenticator.h" |
20 #include "remoting/protocol/chromium_port_allocator.h" | 20 #include "remoting/protocol/chromium_port_allocator_factory.h" |
21 #include "remoting/protocol/connection_tester.h" | 21 #include "remoting/protocol/connection_tester.h" |
22 #include "remoting/protocol/fake_authenticator.h" | 22 #include "remoting/protocol/fake_authenticator.h" |
23 #include "remoting/protocol/jingle_session_manager.h" | 23 #include "remoting/protocol/jingle_session_manager.h" |
24 #include "remoting/protocol/network_settings.h" | 24 #include "remoting/protocol/network_settings.h" |
25 #include "remoting/protocol/transport.h" | 25 #include "remoting/protocol/transport.h" |
26 #include "remoting/protocol/transport_context.h" | 26 #include "remoting/protocol/transport_context.h" |
27 #include "remoting/signaling/fake_signal_strategy.h" | 27 #include "remoting/signaling/fake_signal_strategy.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 407 |
408 // Verify that we can connect with multistep authentication. | 408 // Verify that we can connect with multistep authentication. |
409 TEST_F(JingleSessionTest, TestMultistepAuth) { | 409 TEST_F(JingleSessionTest, TestMultistepAuth) { |
410 CreateSessionManagers(3, FakeAuthenticator::ACCEPT); | 410 CreateSessionManagers(3, FakeAuthenticator::ACCEPT); |
411 ASSERT_NO_FATAL_FAILURE( | 411 ASSERT_NO_FATAL_FAILURE( |
412 InitiateConnection(3, FakeAuthenticator::ACCEPT, false)); | 412 InitiateConnection(3, FakeAuthenticator::ACCEPT, false)); |
413 } | 413 } |
414 | 414 |
415 } // namespace protocol | 415 } // namespace protocol |
416 } // namespace remoting | 416 } // namespace remoting |
OLD | NEW |