Chromium Code Reviews| Index: webrtc/test/fake_network_pipe.h |
| diff --git a/webrtc/test/fake_network_pipe.h b/webrtc/test/fake_network_pipe.h |
| index 608ff008c9919c4e23bc418806cd56f59fd58380..136b744e0fbf3fd64bfa45301261b01fc921e2db 100644 |
| --- a/webrtc/test/fake_network_pipe.h |
| +++ b/webrtc/test/fake_network_pipe.h |
| @@ -80,6 +80,8 @@ class FakeNetworkPipe { |
| int loss_percent = 0; |
| // If packets are allowed to be reordered. |
| bool allow_reordering = false; |
| + // The average length of a burst of lost packets. |
| + int avg_burst_loss_length = -1; |
| }; |
| FakeNetworkPipe(Clock* clock, const FakeNetworkPipe::Config& config); |
| @@ -133,6 +135,16 @@ class FakeNetworkPipe { |
| size_t sent_packets_; |
| int64_t total_packet_delay_; |
| + // Are we currently dropping a burst of packets? |
| + bool bursting_; |
| + |
| + // The probability to drop the packet if we are currently dropping a |
| + // burst of packet |
| + double prob_loss_bursting_; |
| + |
| + // The probability to drop F%a burst of packets. |
|
terelius
2016/05/30 15:40:23
F%a -> a
philipel
2016/05/30 16:05:39
Done.
|
| + double prob_start_bursting_; |
| + |
| int64_t next_process_time_; |
| RTC_DISALLOW_COPY_AND_ASSIGN(FakeNetworkPipe); |