* 用例描述: PAGFile基础信息获取 */
| 30 | * 用例描述: PAGFile基础信息获取 |
| 31 | */ |
| 32 | PAG_TEST(PAGFileTest, TestPAGFileBase) { |
| 33 | PAG_SETUP(TestPAGSurface, TestPAGPlayer, TestPAGFile); |
| 34 | ASSERT_NE(TestPAGFile, nullptr); |
| 35 | auto TestFile = TestPAGFile->getFile(); |
| 36 | ASSERT_NE(TestFile, nullptr); |
| 37 | |
| 38 | //基本信息校验 |
| 39 | ASSERT_EQ(TestFile->duration(), 250); |
| 40 | ASSERT_EQ(TestFile->frameRate(), 25); |
| 41 | Color bgColor = {171, 161, 161}; |
| 42 | ASSERT_TRUE(TestFile->backgroundColor() == bgColor); |
| 43 | ASSERT_EQ(TestFile->width(), 720); |
| 44 | ASSERT_EQ(TestFile->height(), 1080); |
| 45 | ASSERT_EQ(TestFile->tagLevel(), 53); |
| 46 | ASSERT_EQ(TestFile->numLayers(), 6); |
| 47 | ASSERT_EQ(TestFile->numTexts(), 2); |
| 48 | ASSERT_EQ(TestFile->numImages(), 2); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * 用例描述: PAGFile getImageAt接口校验 |
nothing calls this directly
no test coverage detected