提交 8880528d authored 作者: José Luis Millán's avatar José Luis Millán

Tests: add RTCP PSFB FIR tests

上级 b806a604
......@@ -13,6 +13,7 @@
#include "RTC/RTCP/FeedbackRtpEcn.h"
#include "RTC/RTCP/FeedbackPsSli.h"
#include "RTC/RTCP/FeedbackPsRpsi.h"
#include "RTC/RTCP/FeedbackPsFir.h"
#include "Logger.h"
#include <string>
......@@ -523,5 +524,26 @@ FCTMF_SUITE_BGN(test_rtcp)
delete item;
}
FCT_TEST_END()
FCT_TEST_BGN(parse_psfb_fir_item)
{
uint8_t buffer[] =
{
0x00, 0x00, 0x00, 0x00, // SSRC
0x08, 0x00, 0x00, 0x00, // Seq nr.
};
uint32_t ssrc = 0;
uint8_t seq = 8;
FirItem* item = FirItem::Parse(buffer, sizeof(buffer));
fct_req(item != nullptr);
fct_chk_eq_int(item->GetSsrc(), ssrc);
fct_chk_eq_int(item->GetSequenceNumber(), seq);
delete item;
}
FCT_TEST_END()
}
FCTMF_SUITE_END();
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论