| 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/thread_task_runner_handle.h" | |
| 17 #include "base/threading/thread.h" | 16 #include "base/threading/thread.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/udp/udp_server_socket.h" | 21 #include "net/udp/udp_server_socket.h" |
| 22 | 22 |
| 23 namespace media { | 23 namespace media { |
| 24 namespace cast { | 24 namespace cast { |
| 25 namespace test { | 25 namespace test { |
| 26 | 26 |
| 27 const size_t kMaxPacketSize = 65536; | 27 const size_t kMaxPacketSize = 65536; |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 net::NetLog* net_log) { | 849 net::NetLog* net_log) { |
| 850 std::unique_ptr<UDPProxy> ret( | 850 std::unique_ptr<UDPProxy> ret( |
| 851 new UDPProxyImpl(local_port, destination, std::move(to_dest_pipe), | 851 new UDPProxyImpl(local_port, destination, std::move(to_dest_pipe), |
| 852 std::move(from_dest_pipe), net_log)); | 852 std::move(from_dest_pipe), net_log)); |
| 853 return ret; | 853 return ret; |
| 854 } | 854 } |
| 855 | 855 |
| 856 } // namespace test | 856 } // namespace test |
| 857 } // namespace cast | 857 } // namespace cast |
| 858 } // namespace media | 858 } // namespace media |
| OLD | NEW |