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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "jingle/glue/thread_wrapper.h" | 17 #include "jingle/glue/thread_wrapper.h" |
18 #include "net/url_request/url_request_context_getter.h" | 18 #include "net/url_request/url_request_context_getter.h" |
19 #include "remoting/base/url_request.h" | 19 #include "remoting/base/url_request.h" |
20 #include "remoting/protocol/chromium_port_allocator_factory.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/message_channel_factory.h" | 23 #include "remoting/protocol/message_channel_factory.h" |
24 #include "remoting/protocol/message_pipe.h" | 24 #include "remoting/protocol/message_pipe.h" |
25 #include "remoting/protocol/transport_context.h" | 25 #include "remoting/protocol/transport_context.h" |
26 #include "testing/gmock/include/gmock/gmock.h" | 26 #include "testing/gmock/include/gmock/gmock.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 28 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
29 | 29 |
30 using testing::_; | 30 using testing::_; |
31 | 31 |
32 namespace remoting { | 32 namespace remoting { |
33 namespace protocol { | 33 namespace protocol { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 // Send 100 messages 1024 bytes each. UDP messages are sent with 10ms delay | 37 // Send 100 messages 1024 bytes each. UDP messages are sent with 10ms delay |
38 // between messages (about 1 second for 100 messages). | 38 // between messages (about 1 second for 100 messages). |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 MessagePipeConnectionTester tester(host_message_pipe_.get(), | 338 MessagePipeConnectionTester tester(host_message_pipe_.get(), |
339 client_message_pipe_.get(), kMessageSize, | 339 client_message_pipe_.get(), kMessageSize, |
340 kMessages); | 340 kMessages); |
341 tester.RunAndCheckResults(); | 341 tester.RunAndCheckResults(); |
342 } | 342 } |
343 | 343 |
344 | 344 |
345 } // namespace protocol | 345 } // namespace protocol |
346 } // namespace remoting | 346 } // namespace remoting |
OLD | NEW |