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