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
Showing
- include/asterisk/rtp_engine.h 100 additions, 0 deletionsinclude/asterisk/rtp_engine.h
- main/rtp_engine.c 125 additions, 1 deletionmain/rtp_engine.c
- res/res_rtp_asterisk.c 89 additions, 4 deletionsres/res_rtp_asterisk.c
- tests/test_data_buffer.c 1 addition, 1 deletiontests/test_data_buffer.c
- tests/test_res_rtp.c 516 additions, 0 deletionstests/test_res_rtp.c
Loading
Please register or sign in to comment