From cdefcde1667f1e3fab90d42339abfa4777a1d8b1 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 26 Apr 2024 07:03:49 +0800 Subject: [PATCH] Add utest. --- trunk/src/utest/srs_utest_kernel2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trunk/src/utest/srs_utest_kernel2.cpp b/trunk/src/utest/srs_utest_kernel2.cpp index afaf045a00..5b9ed30893 100644 --- a/trunk/src/utest/srs_utest_kernel2.cpp +++ b/trunk/src/utest/srs_utest_kernel2.cpp @@ -738,3 +738,9 @@ VOID TEST(KernelCodecTest, VideoFormatRbspNormal) EXPECT_TRUE(srs_bytes_equals(rbsp.data(), expect.data(), nb_rbsp)); } } + +VOID TEST(KernelCodecTest, HEVCDuplicatedCode) +{ + EXPECT_NE(ERROR_HEVC_NALU_UEV, ERROR_STREAM_CASTER_HEVC_VPS); + EXPECT_NE(ERROR_HEVC_NALU_SEV, ERROR_STREAM_CASTER_HEVC_SPS); +}