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 <errno.h> | 5 #include <errno.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <linux/if_tun.h> | 7 #include <linux/if_tun.h> |
8 #include <linux/types.h> | 8 #include <linux/types.h> |
9 #include <math.h> | 9 #include <math.h> |
10 #include <net/if.h> | 10 #include <net/if.h> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include <deque> | 21 #include <deque> |
22 #include <map> | 22 #include <map> |
23 #include <memory> | 23 #include <memory> |
24 #include <utility> | 24 #include <utility> |
25 | 25 |
26 #include "base/at_exit.h" | 26 #include "base/at_exit.h" |
27 #include "base/bind.h" | 27 #include "base/bind.h" |
28 #include "base/command_line.h" | 28 #include "base/command_line.h" |
29 #include "base/files/file_descriptor_watcher_posix.h" | 29 #include "base/files/file_descriptor_watcher_posix.h" |
30 #include "base/logging.h" | 30 #include "base/logging.h" |
| 31 #include "base/message_loop/message_loop.h" |
31 #include "base/rand_util.h" | 32 #include "base/rand_util.h" |
32 #include "base/run_loop.h" | 33 #include "base/run_loop.h" |
33 #include "base/single_thread_task_runner.h" | 34 #include "base/single_thread_task_runner.h" |
34 #include "base/synchronization/waitable_event.h" | 35 #include "base/synchronization/waitable_event.h" |
35 #include "base/threading/thread.h" | 36 #include "base/threading/thread.h" |
36 #include "base/threading/thread_task_runner_handle.h" | 37 #include "base/threading/thread_task_runner_handle.h" |
37 #include "base/time/default_tick_clock.h" | 38 #include "base/time/default_tick_clock.h" |
38 #include "media/cast/test/utility/udp_proxy.h" | 39 #include "media/cast/test/utility/udp_proxy.h" |
39 #include "net/base/io_buffer.h" | 40 #include "net/base/io_buffer.h" |
40 #include "net/base/net_errors.h" | 41 #include "net/base/net_errors.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 308 |
308 base::MessageLoopForIO message_loop; | 309 base::MessageLoopForIO message_loop; |
309 base::FileDescriptorWatcher file_descriptor_watcher(&message_loop); | 310 base::FileDescriptorWatcher file_descriptor_watcher(&message_loop); |
310 last_printout = base::TimeTicks::Now(); | 311 last_printout = base::TimeTicks::Now(); |
311 media::cast::test::QueueManager qm1(fd1, fd2, std::move(in_pipe)); | 312 media::cast::test::QueueManager qm1(fd1, fd2, std::move(in_pipe)); |
312 media::cast::test::QueueManager qm2(fd2, fd1, std::move(out_pipe)); | 313 media::cast::test::QueueManager qm2(fd2, fd1, std::move(out_pipe)); |
313 CheckByteCounters(); | 314 CheckByteCounters(); |
314 printf("Press Ctrl-C when done.\n"); | 315 printf("Press Ctrl-C when done.\n"); |
315 base::RunLoop().Run(); | 316 base::RunLoop().Run(); |
316 } | 317 } |
OLD | NEW |