Chromium Code Reviews| 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 #ifndef MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ | 5 #ifndef MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ |
| 6 #define MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ | 6 #define MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 // This method builds a stack of PacketPipes to emulate a | 173 // This method builds a stack of PacketPipes to emulate a |
| 174 // bad wifi network. ~5mbit, 5% packet loss, ~7ms latency | 174 // bad wifi network. ~5mbit, 5% packet loss, ~7ms latency |
| 175 // 40ms dropouts every ~2 seconds. Can reorder packets. | 175 // 40ms dropouts every ~2 seconds. Can reorder packets. |
| 176 scoped_ptr<PacketPipe> BadNetwork(); | 176 scoped_ptr<PacketPipe> BadNetwork(); |
| 177 | 177 |
| 178 // This method builds a stack of PacketPipes to emulate a crappy wifi network. | 178 // This method builds a stack of PacketPipes to emulate a crappy wifi network. |
| 179 // ~2mbit, 20% packet loss, ~40ms latency and packets can get reordered. | 179 // ~2mbit, 20% packet loss, ~40ms latency and packets can get reordered. |
| 180 // 300ms drouputs every ~2 seconds. | 180 // 300ms drouputs every ~2 seconds. |
| 181 scoped_ptr<PacketPipe> EvilNetwork(); | 181 scoped_ptr<PacketPipe> EvilNetwork(); |
| 182 | 182 |
| 183 // Builds an Interrupted Poisson Process network simulator with default | |
| 184 // settings. It simulates a network of roughly 2mbits/s with variations | |
| 185 // in latency that is similar to a WiFi environment. | |
|
miu
2014/11/11 00:40:03
This comment should include text like "a challengi
| |
| 186 scoped_ptr<InterruptedPoissonProcess> DefaultInterruptedPoissonProcess(); | |
| 187 | |
| 183 } // namespace test | 188 } // namespace test |
| 184 } // namespace cast | 189 } // namespace cast |
| 185 } // namespace media | 190 } // namespace media |
| 186 | 191 |
| 187 #endif // MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ | 192 #endif // MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ |
| OLD | NEW |