Showing the changes to test/api/decoder_test.cpp (1 of 5 files). Show all
Unified · Split
| @@ -11,6 +11,27 @@ static void UpdateHashFromPlane (SHA1Context* ctx, const uint8_t* plane, · 10 unmodified lines | |||
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | class DecoderCapabilityTest : public ::testing::Test { | ||
| 15 | public: | ||
| 16 | virtual void SetUp() {} | ||
| 17 | virtual void TearDown() {} | ||
| 18 | }; | ||
| 19 | |||
| 20 | TEST_F (DecoderCapabilityTest, JustInit) { | ||
| 21 | SDecoderCapability sDecCap; | ||
| 22 | int iRet = WelsGetDecoderCapability (&sDecCap); | ||
| 23 | ASSERT_TRUE (iRet == 0); | ||
| 24 | EXPECT_EQ (sDecCap.iProfileIdc, 66); | ||
| 25 | EXPECT_EQ (sDecCap.iProfileIop, 0xE0); | ||
| 26 | EXPECT_EQ (sDecCap.iLevelIdc, 32); | ||
| 27 | EXPECT_EQ (sDecCap.iMaxMbps, 216000); | ||
| 28 | EXPECT_EQ (sDecCap.iMaxFs, 5120); | ||
| 29 | EXPECT_EQ (sDecCap.iMaxCpb, 20000); | ||
| 30 | EXPECT_EQ (sDecCap.iMaxDpb, 20480); | ||
| 31 | EXPECT_EQ (sDecCap.iMaxBr, 20000); | ||
| 32 | EXPECT_EQ (sDecCap.bRedPicCap, 0); | ||
| 33 | } | ||
| 34 | |||
| 14 | 35 | ||
| 15 | class DecoderInitTest : public ::testing::Test, public BaseDecoderTest { | 36 | class DecoderInitTest : public ::testing::Test, public BaseDecoderTest { |
| 16 | public: | 37 | public: |