未验证 提交 d8973b16 编写于 作者: N NOBUGGERS 提交者: Gitee

media test Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>

上级 b02ba0ea
......@@ -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 {
......
......@@ -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;
......
......@@ -22,7 +22,6 @@ using namespace OHOS::Media;
using namespace testing::ext;
using namespace TestPlayerBasic;
void ActsPlayerFuncTest::PreparePlayEnv(std::shared_ptr<TestPlayer> &player)
{
testObj_ = std::make_shared<PlayerSignal>();
......@@ -37,8 +36,6 @@ void ActsPlayerFuncTest::PreparePlayEnv(std::shared_ptr<TestPlayer> &player)
EXPECT_EQ(RET_OK, player->SetVideoSurface(videoSurface));
}
/**
* @tc.number : SUB_MEDIA_PLAYER_FUNCTION_03_0100
* @tc.name : 001.进行播放
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册