| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 double average_outage_time); | 168 double average_outage_time); |
| 169 | 169 |
| 170 // This method builds a stack of PacketPipes to emulate a reasonably | 170 // This method builds a stack of PacketPipes to emulate a reasonably |
| 171 // good network. ~50mbit, ~3ms latency, no packet loss unless saturated. | 171 // good network. ~50mbit, ~3ms latency, no packet loss unless saturated. |
| 172 std::unique_ptr<PacketPipe> GoodNetwork(); | 172 std::unique_ptr<PacketPipe> GoodNetwork(); |
| 173 | 173 |
| 174 // This method builds a stack of PacketPipes to emulate a reasonably | 174 // This method builds a stack of PacketPipes to emulate a reasonably |
| 175 // good wifi network. ~20mbit, 1% packet loss, ~3ms latency. | 175 // good wifi network. ~20mbit, 1% packet loss, ~3ms latency. |
| 176 std::unique_ptr<PacketPipe> WifiNetwork(); | 176 std::unique_ptr<PacketPipe> WifiNetwork(); |
| 177 | 177 |
| 178 // This method builds a stack of PacketPipes to emulate a slow, but |
| 179 // reasonably good "older technology" wifi network. ~2mbit, 1% packet loss, |
| 180 // ~30ms latency. |
| 181 std::unique_ptr<PacketPipe> SlowNetwork(); |
| 182 |
| 178 // This method builds a stack of PacketPipes to emulate a | 183 // This method builds a stack of PacketPipes to emulate a |
| 179 // bad wifi network. ~5mbit, 5% packet loss, ~7ms latency | 184 // bad wifi network. ~5mbit, 5% packet loss, ~7ms latency |
| 180 // 40ms dropouts every ~2 seconds. Can reorder packets. | 185 // 40ms dropouts every ~2 seconds. Can reorder packets. |
| 181 std::unique_ptr<PacketPipe> BadNetwork(); | 186 std::unique_ptr<PacketPipe> BadNetwork(); |
| 182 | 187 |
| 183 // This method builds a stack of PacketPipes to emulate a crappy wifi network. | 188 // This method builds a stack of PacketPipes to emulate a crappy wifi network. |
| 184 // ~2mbit, 20% packet loss, ~40ms latency and packets can get reordered. | 189 // ~2mbit, 20% packet loss, ~40ms latency and packets can get reordered. |
| 185 // 300ms drouputs every ~2 seconds. | 190 // 300ms drouputs every ~2 seconds. |
| 186 std::unique_ptr<PacketPipe> EvilNetwork(); | 191 std::unique_ptr<PacketPipe> EvilNetwork(); |
| 187 | 192 |
| 188 // Builds an Interrupted Poisson Process network simulator with default | 193 // Builds an Interrupted Poisson Process network simulator with default |
| 189 // settings. It simulates a challenging interference-heavy WiFi environment | 194 // settings. It simulates a challenging interference-heavy WiFi environment |
| 190 // of roughly 2mbits/s. | 195 // of roughly 2mbits/s. |
| 191 std::unique_ptr<InterruptedPoissonProcess> DefaultInterruptedPoissonProcess(); | 196 std::unique_ptr<InterruptedPoissonProcess> DefaultInterruptedPoissonProcess(); |
| 192 | 197 |
| 193 } // namespace test | 198 } // namespace test |
| 194 } // namespace cast | 199 } // namespace cast |
| 195 } // namespace media | 200 } // namespace media |
| 196 | 201 |
| 197 #endif // MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ | 202 #endif // MEDIA_CAST_TEST_UTILITY_UDP_PROXY_H_ |
| OLD | NEW |