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

Tests: add RTCP PSFB LEI tests

上级 d21a4789
......@@ -16,6 +16,7 @@
#include "RTC/RTCP/FeedbackPsFir.h"
#include "RTC/RTCP/FeedbackPsTst.h"
#include "RTC/RTCP/FeedbackPsVbcm.h"
#include "RTC/RTCP/FeedbackPsLei.h"
#include "Logger.h"
#include <string>
......@@ -602,5 +603,23 @@ FCTMF_SUITE_BGN(test_rtcp)
delete item;
}
FCT_TEST_END()
FCT_TEST_BGN(parse_psfb_lei_item)
{
uint8_t buffer[] =
{
0x00, 0x00, 0x00, 0x01, // SSRC
};
uint32_t ssrc = 1;
PsLeiItem* item = PsLeiItem::Parse(buffer, sizeof(buffer));
fct_req(item != nullptr);
fct_chk_eq_int(item->GetSsrc(), ssrc);
delete item;
}
FCT_TEST_END()
}
FCTMF_SUITE_END();
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论