Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4fa944e3
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看板
提交
4fa944e3
编写于
10月 22, 2021
作者:
Z
z_apperception
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<zhaochen69@huawei.com>
Signed-off-by:
N
z_apperception
<
zhaochen69@huawei.com
>
上级
0d9c742e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
3 deletion
+19
-3
build_lite/BUILD.gn
build_lite/BUILD.gn
+3
-3
multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp
..._lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp
+16
-0
未找到文件。
build_lite/BUILD.gn
浏览文件 @
4fa944e3
...
@@ -52,18 +52,18 @@ lite_component("acts_component") {
...
@@ -52,18 +52,18 @@ lite_component("acts_component") {
"//test/xts/acts/utils_lite/kv_store_posix:ActsKvStoreTest",
"//test/xts/acts/utils_lite/kv_store_posix:ActsKvStoreTest",
"//test/xts/acts/startup_lite/syspara_posix:ActsParameterTest",
"//test/xts/acts/startup_lite/syspara_posix:ActsParameterTest",
"//test/xts/acts/startup_lite/bootstrap_posix:ActsBootstrapTest",
"//test/xts/acts/startup_lite/bootstrap_posix:ActsBootstrapTest",
"//test/xts/acts/multimedia_lite/camera_lite_posix/camera_native:ActsMediaCameraTest",
"//test/xts/acts/open_posix_testsuite/conformance/interfaces:ActsOpenPosixTest",
"//test/xts/acts/open_posix_testsuite/conformance/interfaces:ActsOpenPosixTest",
"//test/xts/acts/multimedia_lite/camera_lite_posix/camera_native:ActsMediaCameraTest",
"//test/xts/acts/multimedia_lite/media_lite_posix/player_native:ActsMediaPlayerTest",
"//test/xts/acts/multimedia_lite/media_lite_posix/player_native:ActsMediaPlayerTest",
"//test/xts/acts/multimedia_lite/media_lite_posix/recorder_native:ActsMediaRecorderTest",
"//test/xts/acts/multimedia_lite/media_lite_posix/audio_native:ActsMediaAudioTest",
"//test/xts/acts/multimedia_lite/media_lite_posix/audio_native:ActsMediaAudioTest",
"//test/xts/acts/distributed_schedule_lite/system_ability_manager_posix:ActsSamgrTest",
"//test/xts/acts/distributed_schedule_lite/system_ability_manager_posix:ActsSamgrTest",
#"//test/xts/acts/distributedschedule_lite/distributed_schedule_posix:ActsDMSTest",
#"//test/xts/acts/distributedschedule_lite/distributed_schedule_posix:ActsDMSTest",
"//test/xts/acts/hiviewdfx_lite/hilog_posix:ActsHilogTest",
"//test/xts/acts/hiviewdfx_lite/hilog_posix:ActsHilogTest",
"//test/xts/acts/multimedia_lite/media_lite_posix/recorder_native:ActsMediaRecorderTest",
"//test/xts/acts/appexecfwk_lite/appexecfwk_posix:ActsBundleMgrTest",
"//test/xts/acts/appexecfwk_lite/appexecfwk_posix:ActsBundleMgrTest",
"//test/xts/acts/aafwk_lite/ability_posix:ActsAbilityMgrTest",
"//test/xts/acts/aafwk_lite/ability_posix:ActsAbilityMgrTest",
"//test/xts/acts/communication_lite/lwip_posix:ActsLwipTest",
"//test/xts/acts/communication_lite/lwip_posix:ActsLwipTest",
...
...
multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp
浏览文件 @
4fa944e3
...
@@ -82,6 +82,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Start_test_001, Level1)
...
@@ -82,6 +82,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Start_test_001, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Release
();
retStatus
=
recInstance
->
Release
();
delete
recInstance
;
delete
recInstance
;
...
@@ -108,6 +109,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Start_test_002, Level1)
...
@@ -108,6 +109,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Start_test_002, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_NE
(
RET_OK
,
retStatus
);
EXPECT_NE
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Release
();
retStatus
=
recInstance
->
Release
();
delete
recInstance
;
delete
recInstance
;
...
@@ -136,6 +138,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Pause_test_001, Level1)
...
@@ -136,6 +138,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Pause_test_001, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Pause
();
retStatus
=
recInstance
->
Pause
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -166,6 +169,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Pause_test_002, Level1)
...
@@ -166,6 +169,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Pause_test_002, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Pause
();
retStatus
=
recInstance
->
Pause
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -198,6 +202,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_001, Level1)
...
@@ -198,6 +202,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_001, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Pause
();
retStatus
=
recInstance
->
Pause
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -230,6 +235,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_002, Level1)
...
@@ -230,6 +235,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_002, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Pause
();
retStatus
=
recInstance
->
Pause
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -264,6 +270,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Stop_test_001, Level1)
...
@@ -264,6 +270,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Stop_test_001, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Stop
(
true
);
retStatus
=
recInstance
->
Stop
(
true
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -294,6 +301,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Stop_test_002, Level1)
...
@@ -294,6 +301,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Stop_test_002, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Stop
(
true
);
retStatus
=
recInstance
->
Stop
(
true
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -326,6 +334,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Reset_test_001, Level1)
...
@@ -326,6 +334,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Reset_test_001, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Reset
();
retStatus
=
recInstance
->
Reset
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -356,6 +365,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Reset_test_002, Level1)
...
@@ -356,6 +365,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Reset_test_002, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Reset
();
retStatus
=
recInstance
->
Reset
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -388,6 +398,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Release_test_001, Level1)
...
@@ -388,6 +398,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Release_test_001, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Release
();
retStatus
=
recInstance
->
Release
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -417,6 +428,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Release_test_002, Level1)
...
@@ -417,6 +428,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Release_test_002, Level1)
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Release
();
retStatus
=
recInstance
->
Release
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -451,6 +463,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_001, Leve
...
@@ -451,6 +463,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_001, Leve
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
SetFileSplitDuration
(
type
,
timestamp
,
duration
);
retStatus
=
recInstance
->
SetFileSplitDuration
(
type
,
timestamp
,
duration
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -484,6 +497,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_002, Leve
...
@@ -484,6 +497,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_002, Leve
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
SetFileSplitDuration
(
type
,
timestamp
,
duration
);
retStatus
=
recInstance
->
SetFileSplitDuration
(
type
,
timestamp
,
duration
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -517,6 +531,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_003, Leve
...
@@ -517,6 +531,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_003, Leve
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
SetFileSplitDuration
(
type
,
timestamp
,
duration
);
retStatus
=
recInstance
->
SetFileSplitDuration
(
type
,
timestamp
,
duration
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
@@ -550,6 +565,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_004, Leve
...
@@ -550,6 +565,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_004, Leve
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
retStatus
=
recInstance
->
SetRecorderCallback
(
cb
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Start
();
retStatus
=
recInstance
->
Start
();
sleep
(
1
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
retStatus
=
recInstance
->
Pause
();
retStatus
=
recInstance
->
Pause
();
EXPECT_EQ
(
RET_OK
,
retStatus
);
EXPECT_EQ
(
RET_OK
,
retStatus
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录