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/message_loop/message_loop.h" |
14 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
15 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
16 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/time/default_tick_clock.h" | 19 #include "base/time/default_tick_clock.h" |
19 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
21 #include "net/log/net_log_source.h" | 22 #include "net/log/net_log_source.h" |
22 #include "net/socket/udp_server_socket.h" | 23 #include "net/socket/udp_server_socket.h" |
23 | 24 |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 net::NetLog* net_log) { | 855 net::NetLog* net_log) { |
855 std::unique_ptr<UDPProxy> ret( | 856 std::unique_ptr<UDPProxy> ret( |
856 new UDPProxyImpl(local_port, destination, std::move(to_dest_pipe), | 857 new UDPProxyImpl(local_port, destination, std::move(to_dest_pipe), |
857 std::move(from_dest_pipe), net_log)); | 858 std::move(from_dest_pipe), net_log)); |
858 return ret; | 859 return ret; |
859 } | 860 } |
860 | 861 |
861 } // namespace test | 862 } // namespace test |
862 } // namespace cast | 863 } // namespace cast |
863 } // namespace media | 864 } // namespace media |
OLD | NEW |