diff --git a/multimedia/media/media_cpp_test_standard/player/include/TestParamsConfig.h b/multimedia/media/media_cpp_test_standard/player/include/TestParamsConfig.h index f5bf2a31af2b6a075fe98452915dc1c8d50a8d2b..b5f76e0287e48d41a37a41aa2be96a5bd8520aec 100644 --- a/multimedia/media/media_cpp_test_standard/player/include/TestParamsConfig.h +++ b/multimedia/media/media_cpp_test_standard/player/include/TestParamsConfig.h @@ -16,8 +16,8 @@ #ifndef PLAYER_COMMON_TEST_H #define PLAYER_COMMON_TEST_H -#include "mediatest_log.h" #include "gtest/gtest.h" +#include "mediatest_log.h" #include "player.h" namespace { diff --git a/multimedia/media/media_cpp_test_standard/player/src/TestParamsConfig.cpp b/multimedia/media/media_cpp_test_standard/player/src/TestParamsConfig.cpp index 0017a4fb9f0aafd0c673ae78a8e8fc545f8f6e13..fe917855a1587480d35c3ac457d91df5c98974c2 100644 --- a/multimedia/media/media_cpp_test_standard/player/src/TestParamsConfig.cpp +++ b/multimedia/media/media_cpp_test_standard/player/src/TestParamsConfig.cpp @@ -66,7 +66,7 @@ bool TestParamsConfig::CompareTime(int32_t expectTime, int32_t realTime, OHOS::M } } if (seekMode == PlayerSeekMode::SEEK_PREVIOUS_SYNC) { - if (expectTime - realTime < DELTA_TIME && expectTime - realTime > -100) { + if (expectTime - realTime < DELTA_TIME && expectTime - realTime > -CLOSEST_DELTA_TIME) { return true; } else { return false; diff --git a/multimedia/media/media_cpp_test_standard/player/src/function/ActsPlayerFuncTest.cpp b/multimedia/media/media_cpp_test_standard/player/src/function/ActsPlayerFuncTest.cpp index 0becf59f7841b6bd40519169ef716d520488fd45..51c11e308c964bccf2439e1b5aaa3abef2f67eef 100755 --- a/multimedia/media/media_cpp_test_standard/player/src/function/ActsPlayerFuncTest.cpp +++ b/multimedia/media/media_cpp_test_standard/player/src/function/ActsPlayerFuncTest.cpp @@ -22,7 +22,6 @@ using namespace OHOS::Media; using namespace testing::ext; using namespace TestPlayerBasic; - void ActsPlayerFuncTest::PreparePlayEnv(std::shared_ptr &player) { testObj_ = std::make_shared(); @@ -37,8 +36,6 @@ void ActsPlayerFuncTest::PreparePlayEnv(std::shared_ptr &player) EXPECT_EQ(RET_OK, player->SetVideoSurface(videoSurface)); } - - /** * @tc.number : SUB_MEDIA_PLAYER_FUNCTION_03_0100 * @tc.name : 001.进行播放