OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/cast/test/utility/udp_proxy.h" | 5 #include "media/cast/test/utility/udp_proxy.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/time/default_tick_clock.h" | 18 #include "base/time/default_tick_clock.h" |
19 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "net/log/net_log_source.h" | 21 #include "net/log/net_log_source.h" |
22 #include "net/udp/udp_server_socket.h" | 22 #include "net/socket/udp_server_socket.h" |
23 | 23 |
24 namespace media { | 24 namespace media { |
25 namespace cast { | 25 namespace cast { |
26 namespace test { | 26 namespace test { |
27 | 27 |
28 const size_t kMaxPacketSize = 65536; | 28 const size_t kMaxPacketSize = 65536; |
29 | 29 |
30 PacketPipe::PacketPipe() {} | 30 PacketPipe::PacketPipe() {} |
31 PacketPipe::~PacketPipe() {} | 31 PacketPipe::~PacketPipe() {} |
32 void PacketPipe::InitOnIOThread( | 32 void PacketPipe::InitOnIOThread( |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 net::NetLog* net_log) { | 854 net::NetLog* net_log) { |
855 std::unique_ptr<UDPProxy> ret( | 855 std::unique_ptr<UDPProxy> ret( |
856 new UDPProxyImpl(local_port, destination, std::move(to_dest_pipe), | 856 new UDPProxyImpl(local_port, destination, std::move(to_dest_pipe), |
857 std::move(from_dest_pipe), net_log)); | 857 std::move(from_dest_pipe), net_log)); |
858 return ret; | 858 return ret; |
859 } | 859 } |
860 | 860 |
861 } // namespace test | 861 } // namespace test |
862 } // namespace cast | 862 } // namespace cast |
863 } // namespace media | 863 } // namespace media |
OLD | NEW |