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/loopback_transport.h" | 5 #include "media/cast/test/loopback_transport.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
8 #include "base/time/tick_clock.h" | 9 #include "base/time/tick_clock.h" |
9 #include "media/cast/test/utility/udp_proxy.h" | 10 #include "media/cast/test/utility/udp_proxy.h" |
10 | 11 |
11 namespace media { | 12 namespace media { |
12 namespace cast { | 13 namespace cast { |
13 namespace { | 14 namespace { |
14 | 15 |
15 // Shim that turns forwards packets from a test::PacketPipe to a | 16 // Shim that turns forwards packets from a test::PacketPipe to a |
16 // PacketReceiverCallback. | 17 // PacketReceiverCallback. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 pipe->AppendToPipe(loopback_pipe.Pass()); | 70 pipe->AppendToPipe(loopback_pipe.Pass()); |
70 packet_pipe_ = pipe.Pass(); | 71 packet_pipe_ = pipe.Pass(); |
71 } else { | 72 } else { |
72 packet_pipe_ = loopback_pipe.Pass(); | 73 packet_pipe_ = loopback_pipe.Pass(); |
73 } | 74 } |
74 packet_pipe_->InitOnIOThread(task_runner, clock); | 75 packet_pipe_->InitOnIOThread(task_runner, clock); |
75 } | 76 } |
76 | 77 |
77 } // namespace cast | 78 } // namespace cast |
78 } // namespace media | 79 } // namespace media |
OLD | NEW |