| Index: media/cast/test/utility/udp_proxy.cc
|
| diff --git a/media/cast/test/utility/udp_proxy.cc b/media/cast/test/utility/udp_proxy.cc
|
| index cade4f766c9229aef72780e165c1bf072d4a7f49..0bd7f087ce33bfd547d2fe43bcc5b0323c66fcda 100644
|
| --- a/media/cast/test/utility/udp_proxy.cc
|
| +++ b/media/cast/test/utility/udp_proxy.cc
|
| @@ -593,6 +593,23 @@ std::unique_ptr<PacketPipe> WifiNetwork() {
|
| return pipe;
|
| }
|
|
|
| +std::unique_ptr<PacketPipe> SlowNetwork() {
|
| + // This represents the buffer on the sender.
|
| + std::unique_ptr<PacketPipe> pipe;
|
| + BuildPipe(&pipe, new Buffer(256 << 10, 1.5));
|
| + BuildPipe(&pipe, new RandomDrop(0.005));
|
| + // This represents the buffer on the router.
|
| + BuildPipe(&pipe, new ConstantDelay(10E-3));
|
| + BuildPipe(&pipe, new RandomSortedDelay(10E-3, 20E-3, 3));
|
| + BuildPipe(&pipe, new Buffer(256 << 10, 20));
|
| + BuildPipe(&pipe, new ConstantDelay(10E-3));
|
| + BuildPipe(&pipe, new RandomSortedDelay(10E-3, 20E-3, 3));
|
| + BuildPipe(&pipe, new RandomDrop(0.005));
|
| + // This represents the buffer on the receiving device.
|
| + BuildPipe(&pipe, new Buffer(256 << 10, 20));
|
| + return pipe;
|
| +}
|
| +
|
| std::unique_ptr<PacketPipe> BadNetwork() {
|
| std::unique_ptr<PacketPipe> pipe;
|
| // This represents the buffer on the sender.
|
|
|