Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: remoting/protocol/jingle_session_unittest.cc

Issue 1681393006: Use UrlRequest in PortAllocator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/ice_transport_unittest.cc ('k') | remoting/protocol/port_allocator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/protocol/ice_transport_unittest.cc ('k') | remoting/protocol/port_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698