| 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/webrtc_transport.h" | 5 #include "remoting/protocol/webrtc_transport.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 9 #include "jingle/glue/thread_wrapper.h" | 10 #include "jingle/glue/thread_wrapper.h" |
| 10 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
| 11 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
| 12 #include "remoting/protocol/chromium_port_allocator.h" | 13 #include "remoting/protocol/chromium_port_allocator.h" |
| 13 #include "remoting/protocol/connection_tester.h" | 14 #include "remoting/protocol/connection_tester.h" |
| 14 #include "remoting/protocol/fake_authenticator.h" | 15 #include "remoting/protocol/fake_authenticator.h" |
| 15 #include "remoting/protocol/network_settings.h" | 16 #include "remoting/protocol/network_settings.h" |
| 16 #include "remoting/protocol/p2p_stream_socket.h" | 17 #include "remoting/protocol/p2p_stream_socket.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 const int kMessages = 100; | 223 const int kMessages = 100; |
| 223 StreamConnectionTester tester(host_socket_.get(), client_socket_.get(), | 224 StreamConnectionTester tester(host_socket_.get(), client_socket_.get(), |
| 224 kMessageSize, kMessages); | 225 kMessageSize, kMessages); |
| 225 tester.Start(); | 226 tester.Start(); |
| 226 message_loop_.Run(); | 227 message_loop_.Run(); |
| 227 tester.CheckResults(); | 228 tester.CheckResults(); |
| 228 } | 229 } |
| 229 | 230 |
| 230 } // namespace protocol | 231 } // namespace protocol |
| 231 } // namespace remoting | 232 } // namespace remoting |
| OLD | NEW |