res_rtp: Add unit tests for RTCP stats.

Added unit tests for RTCP video stats. These tests include NACK, REMB,
FIR/FUR/PLI, SR/RR/SDES, and packet loss statistics. The REMB and FIR
tests are currently disabled due to a bug. We expect to receive a
compound packet, but the code sends this out as a single packet, which
the browser accepts, but makes Asterisk upset.

While writing these tests, I noticed an issue with NACK as well. Where
it is handling a received NACK request, it was reading in only the first
8 bits of following packets that were also lost. This has been changed
to the correct value of 16 bits.

Also made a minor fix to the data buffer unit test.

Change-Id: I56107c7411003a247589bbb6086d25c54719901b
This commit is contained in:
Ben Ford
2019-08-28 14:25:57 -05:00
parent 821b7561f8
commit 922d3e02df
5 changed files with 831 additions and 6 deletions

View File

@@ -18,7 +18,7 @@
/*!
* \file
* \brief Media Stream API Unit Tests
* \brief Data Buffer API Unit Tests
*
* \author Ben Ford <bford@digium.com>
*