Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6b14ea5c
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6b14ea5c
编写于
10月 27, 2021
作者:
A
apperception
提交者:
Gitee
10月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Signed-off-by: zhaochen <zhaochen69@huawei.com>
上级
97c97eb0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
1 deletion
+28
-1
multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerAudioTest.cpp
...lite_posix/player_native/src/ActsMediaPlayerAudioTest.cpp
+26
-1
multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp
..._lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp
+2
-0
未找到文件。
multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerAudioTest.cpp
浏览文件 @
6b14ea5c
...
...
@@ -249,6 +249,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_001, Level1)
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
sleep
(
2
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -276,6 +277,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_002, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Stop
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -301,6 +303,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_003, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Play
();
EXPECT_EQ
(
HI_FAILURE
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -320,6 +323,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_004, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Prepare
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -341,6 +345,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_005, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Prepare
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -364,6 +369,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_006, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Stop
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -389,6 +395,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_007, Level1)
bool
flag
=
g_tagTestSample
.
adaptr
->
IsPlaying
();
EXPECT_EQ
(
false
,
flag
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -412,6 +419,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_008, Level1)
bool
flag
=
g_tagTestSample
.
adaptr
->
IsPlaying
();
EXPECT_EQ
(
true
,
flag
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -437,6 +445,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_009, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Pause
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -458,6 +467,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_010, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Pause
();
EXPECT_EQ
(
HI_FAILURE
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -482,6 +492,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_011, Level1)
sleep
(
10
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -506,6 +517,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_012, Level1)
sleep
(
10
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -530,6 +542,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_013, Level1)
sleep
(
10
);
EXPECT_EQ
(
HI_FAILURE
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -554,6 +567,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_014, Level1)
sleep
(
10
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -570,7 +584,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_015, Level1)
g_tagTestSample
.
adaptr
->
SetPlayerCallback
(
callBack
);
ret
=
CreateAndSetSource
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
ret
=
g_tagTestSample
.
adaptr
->
Prepare
();
ret
=
g_tagTestSample
.
adaptr
->
Prepare
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
ret
=
g_tagTestSample
.
adaptr
->
Play
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
...
...
@@ -578,6 +592,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_015, Level1)
sleep
(
10
);
EXPECT_EQ
(
HI_FAILURE
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -602,6 +617,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_016, Level1)
sleep
(
10
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -627,6 +643,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_017, Level1)
ret
=
g_tagTestSample
.
adaptr
->
GetCurrentTime
(
currentPosition
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -654,6 +671,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_018, Level1)
ret
=
g_tagTestSample
.
adaptr
->
GetCurrentTime
(
currentPosition
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -678,6 +696,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_019, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Rewind
(
4
,
PLAYER_SEEK_NEXT_SYNC
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -700,6 +719,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_020, Level1)
ret
=
g_tagTestSample
.
adaptr
->
GetDuration
(
duration
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -724,6 +744,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_021, Level1)
ret
=
g_tagTestSample
.
adaptr
->
GetDuration
(
duration
);
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -747,6 +768,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_022, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Reset
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -766,6 +788,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_023, Level1)
ret
=
g_tagTestSample
.
adaptr
->
Reset
();
EXPECT_EQ
(
HI_SUCCESS
,
ret
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -792,6 +815,7 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_024, Level1)
bool
flag
=
g_tagTestSample
.
adaptr
->
IsPlaying
();
EXPECT_EQ
(
true
,
flag
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
/* *
...
...
@@ -819,5 +843,6 @@ HWTEST_F(ActsMediaPlayerAudioTest, player_lite_audio_test_025, Level1)
bool
flag
=
g_tagTestSample
.
adaptr
->
IsPlaying
();
EXPECT_EQ
(
true
,
flag
);
g_tagTestSample
.
adaptr
->
Release
();
sleep
(
1
);
}
}
// OHOS
multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp
浏览文件 @
6b14ea5c
...
...
@@ -200,6 +200,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_001, Level1)
retStatus
=
recInstance
->
Prepare
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
...
...
@@ -233,6 +234,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_002, Level1)
retStatus
=
recInstance
->
Prepare
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录