DescriptionAlways take retransmissions into account when deciding pacing order
Retransmissions are supposed to be sent before normal packets by the pacer, but the current implementation will only use it if the second packet is a retransmission and the first packet is not. It misses the case where the first packet is retransmission and the second packet is not.
This CL fixes the comparator and adds a unit test.
Also changed the SendAndExpectPacket function to propagate the retransmission flag to the expectations. Previously, all packets were expected to be normal packets.
BUG=webrtc:6124
Committed: https://crrev.com/f39f7d931c11045fe0ba842e4eba9b816f0288ca
Cr-Commit-Position: refs/heads/master@{#13502}
Patch Set 1 #Patch Set 2 : Add unit test #
Messages
Total messages: 13 (5 generated)
|