OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ice_transport.h" | 5 #include "remoting/protocol/ice_transport.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
13 #include "jingle/glue/thread_wrapper.h" | 14 #include "jingle/glue/thread_wrapper.h" |
14 #include "net/url_request/url_request_context_getter.h" | 15 #include "net/url_request/url_request_context_getter.h" |
15 #include "remoting/protocol/chromium_port_allocator.h" | 16 #include "remoting/protocol/chromium_port_allocator.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/p2p_stream_socket.h" | 19 #include "remoting/protocol/p2p_stream_socket.h" |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 StreamConnectionTester tester(host_socket_.get(), client_socket_.get(), | 350 StreamConnectionTester tester(host_socket_.get(), client_socket_.get(), |
350 kMessageSize, kMessages); | 351 kMessageSize, kMessages); |
351 tester.Start(); | 352 tester.Start(); |
352 message_loop_.Run(); | 353 message_loop_.Run(); |
353 tester.CheckResults(); | 354 tester.CheckResults(); |
354 } | 355 } |
355 | 356 |
356 | 357 |
357 } // namespace protocol | 358 } // namespace protocol |
358 } // namespace remoting | 359 } // namespace remoting |
OLD | NEW |