Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -681,12 +681,12 @@ TEST_F (EncoderInterfaceTest, GetStatistics) { · 680 unmodified lines | ||
| 681 | 681 | SEncoderStatistics sEncoderStatistics; |
| 682 | 682 | iResult = pPtrEnc->GetOption (ENCODER_OPTION_GET_STATISTICS, &sEncoderStatistics); |
| 683 | 683 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); |
| 684 | − EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, 2); | |
| 685 | − EXPECT_EQ (sEncoderStatistics.uIDRSentNum, 1); | |
| 686 | − EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, 0); | |
| 684 | + EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, static_cast<unsigned int> (2)); | |
| 685 | + EXPECT_EQ (sEncoderStatistics.uIDRSentNum, static_cast<unsigned int> (1)); | |
| 686 | + EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, static_cast<unsigned int> (0)); | |
| 687 | 687 | |
| 688 | − EXPECT_EQ (sEncoderStatistics.uWidth, sEncParamBase.iPicWidth); | |
| 689 | − EXPECT_EQ (sEncoderStatistics.uHeight, sEncParamBase.iPicHeight); | |
| 688 | + EXPECT_EQ (sEncoderStatistics.uWidth, static_cast<unsigned int> (sEncParamBase.iPicWidth)); | |
| 689 | + EXPECT_EQ (sEncoderStatistics.uHeight, static_cast<unsigned int> (sEncParamBase.iPicHeight)); | |
| 690 | 690 | |
| 691 | 691 | // try param change |
| 692 | 692 | // 1, get the existing |
| @@ -711,12 +711,12 @@ TEST_F (EncoderInterfaceTest, GetStatistics) { · 18 unmodified lines | ||
| 711 | 711 | iResult = pPtrEnc->GetOption (ENCODER_OPTION_GET_STATISTICS, &sEncoderStatistics); |
| 712 | 712 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); |
| 713 | 713 | |
| 714 | − EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, 3); | |
| 715 | − EXPECT_EQ (sEncoderStatistics.uIDRSentNum, 2); | |
| 716 | − EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, knownResolutionChangeTimes); | |
| 714 | + EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, static_cast<unsigned int> (3)); | |
| 715 | + EXPECT_EQ (sEncoderStatistics.uIDRSentNum, static_cast<unsigned int> (2)); | |
| 716 | + EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, static_cast<unsigned int> (knownResolutionChangeTimes)); | |
| 717 | 717 | |
| 718 | − EXPECT_EQ (sEncoderStatistics.uWidth, sEncParamBase.iPicWidth); | |
| 719 | − EXPECT_EQ (sEncoderStatistics.uHeight, sEncParamBase.iPicHeight); | |
| 718 | + EXPECT_EQ (sEncoderStatistics.uWidth, static_cast<unsigned int> (sEncParamBase.iPicWidth)); | |
| 719 | + EXPECT_EQ (sEncoderStatistics.uHeight, static_cast<unsigned int> (sEncParamBase.iPicHeight)); | |
| 720 | 720 | |
| 721 | 721 | // 4, change log interval |
| 722 | 722 | int32_t iInterval = 0; |
| @@ -740,4 +740,4 @@ TEST_F (EncoderInterfaceTest, GetStatistics) { · 17 unmodified lines | ||
| 740 | 740 | |
| 741 | 741 | // finish |
| 742 | 742 | pPtrEnc->Uninitialize(); |
| 743 | −} | |
| 743 | +} | |