Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6c74adb6
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看板
提交
6c74adb6
编写于
12月 17, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 17, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1382 media test case seek 校验方式修正
Merge pull request !1382 from NOBUGGERS/update1216
上级
ffd5691d
36f858aa
变更
7
展开全部
显示空白变更内容
内联
并排
Showing
7 changed file
with
213 addition
and
228 deletion
+213
-228
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
...oPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
+69
-92
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
...layer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
+48
-48
multimedia/audio/audio_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
...order/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
+37
-37
multimedia/media/media_cpp_test_standard/player/include/TestPlayer.h
...media/media_cpp_test_standard/player/include/TestPlayer.h
+2
-0
multimedia/media/media_cpp_test_standard/player/src/TestParamsConfig.cpp
...a/media_cpp_test_standard/player/src/TestParamsConfig.cpp
+0
-21
multimedia/media/media_cpp_test_standard/player/src/TestPlayer.cpp
...a/media/media_cpp_test_standard/player/src/TestPlayer.cpp
+33
-6
multimedia/media/media_cpp_test_standard/player/src/api/ActsPlayerAPITest.cpp
...ia_cpp_test_standard/player/src/api/ActsPlayerAPITest.cpp
+24
-24
未找到文件。
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
浏览文件 @
6c74adb6
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
浏览文件 @
6c74adb6
...
...
@@ -120,7 +120,7 @@ describe('PlayerLocalTestAudioFormat', function () {
}
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0100
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0100
* @tc.name : 001.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -132,12 +132,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0100
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
01.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0200
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0200
* @tc.name : 002.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -149,12 +149,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0200
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
02.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0300
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0300
* @tc.name : 003.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -166,12 +166,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0300
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
03.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0400
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0400
* @tc.name : 004.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -183,12 +183,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP3_01
_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP3
_0400
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
04.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0100
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0100
* @tc.name : 001.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -200,13 +200,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0100
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
47.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0300
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0300
* @tc.name : 003.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -218,12 +218,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0300
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
49.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0400
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0400
* @tc.name : 004.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -235,12 +235,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0400
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
50.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0500
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0500
* @tc.name : 005.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -252,12 +252,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0500
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
51.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0600
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0600
* @tc.name : 006.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -269,12 +269,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0600
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
54.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0700
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0700
* @tc.name : 007.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -286,12 +286,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0700
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
64.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0800
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0800
* @tc.name : 008.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -303,12 +303,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0800
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
65.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0900
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0900
* @tc.name : 009.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -320,12 +320,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_0900
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
66.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1000
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1000
* @tc.name : 010.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -337,12 +337,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1000
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
67.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1100
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1100
* @tc.name : 011.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -354,12 +354,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1100
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
92.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1200
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1200
* @tc.name : 012.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -371,12 +371,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1200
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
93.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1300
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1300
* @tc.name : 013.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -388,12 +388,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1300
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
94.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1400
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1400
* @tc.name : 014.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -405,12 +405,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1400
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
96.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1500
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1500
* @tc.name : 015.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -422,12 +422,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1500
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
97.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1600
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1600
* @tc.name : 016.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -439,12 +439,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_MP4_01
_1600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_MP4
_1600
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
98.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0100
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0100
* @tc.name : 001.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -456,13 +456,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0100
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
55.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0300
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0300
* @tc.name : 003.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -474,12 +474,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0300
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
57.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0400
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0400
* @tc.name : 004.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -491,12 +491,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0400
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
58.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0500
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0500
* @tc.name : 005.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -508,12 +508,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0500
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
59.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0700
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0700
* @tc.name : 007.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -525,7 +525,7 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ormat_M4A_01
_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_LOCAL_F
ORMAT_M4A
_0700
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
62.m4a
'
,
done
);
})
})
multimedia/audio/audio_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
浏览文件 @
6c74adb6
...
...
@@ -48,7 +48,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
function
sleep
(
time
)
{
for
(
let
t
=
Date
.
now
();
Date
.
now
()
-
t
<=
time
;);
}
;
}
function
initAudioRecorder
()
{
if
(
typeof
(
audioRecorder
)
!=
'
undefined
'
)
{
...
...
@@ -173,7 +173,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0100
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0100
* @tc.name : 01.AAC
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -181,7 +181,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0100
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test1.m4a
'
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -190,7 +190,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0210
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0210
* @tc.name : 02.AAC_Different Channels 1
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -198,7 +198,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0210
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0210
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test2.m4a
'
;
audioConfig
.
numberOfChannels
=
CHANNEL_ONE
;
initAudioRecorder
();
...
...
@@ -208,7 +208,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0220
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0220
* @tc.name : 02.AAC_Different Channels 2
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -216,7 +216,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0220
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0220
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test3.m4a
'
;
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
initAudioRecorder
();
...
...
@@ -226,7 +226,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0310
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0310
* @tc.name : 03.AAC_DifferentSampleRate 8000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -234,7 +234,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0310
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0310
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test4.m4a
'
;
audioConfig
.
audioSampleRate
=
8000
;
// samplerate 8000
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
...
...
@@ -245,7 +245,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0320
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0320
* @tc.name : 03.AAC_DifferentSampleRate 32000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -253,7 +253,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0320
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0320
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test5.mp4
'
;
audioConfig
.
audioSampleRate
=
32000
;
// samplerate 32000
audioConfig
.
numberOfChannels
=
CHANNEL_ONE
;
...
...
@@ -265,7 +265,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0330
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0330
* @tc.name : 03.AAC_DifferentSampleRate 44100
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -273,7 +273,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0330
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0330
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test6.mp4
'
;
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
...
...
@@ -285,7 +285,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0340
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0340
* @tc.name : 03.AAC_DifferentSampleRate 64000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -293,7 +293,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0340
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0340
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test7.m4a
'
;
audioConfig
.
audioSampleRate
=
64000
;
// samplerate 64000
audioConfig
.
numberOfChannels
=
CHANNEL_ONE
;
...
...
@@ -305,7 +305,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0350
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0350
* @tc.name : 03.AAC_DifferentSampleRate 96000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -313,7 +313,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0340
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0340
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test8.m4a
'
;
audioConfig
.
audioSampleRate
=
96000
;
// samplerate 96000
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
...
...
@@ -325,7 +325,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0410
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0410
* @tc.name : 04.AAC_DifferentBitrate 8000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -333,7 +333,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0410
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0410
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test9.mp4
'
;
audioConfig
.
audioSampleRate
=
22050
;
// samplerate 22050
audioConfig
.
audioEncodeBitRate
=
8000
;
// encodeBitrate 8000
...
...
@@ -346,7 +346,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0420
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0420
* @tc.name : 04.AAC_DifferentBitrate 16000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -354,7 +354,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0420
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0420
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test10.mp4
'
;
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
16000
;
// encodeBitrate 16000
...
...
@@ -367,7 +367,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0430
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0430
* @tc.name : 04.AAC_DifferentBitrate 32000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -375,7 +375,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0430
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0430
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test11.m4a
'
;
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
32000
;
// encodeBitrate 32000
...
...
@@ -388,7 +388,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0440
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0440
* @tc.name : 04.AAC_DifferentBitrate 64000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -396,7 +396,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0440
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0440
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test12.m4a
'
;
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
64000
;
// encodeBitrate 64000
...
...
@@ -409,7 +409,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0450
* @tc.number : SUB_MEDIA_RECORDER_C
ODEC_AAC
_0450
* @tc.name : 04.AAC_DifferentBitrate 112000
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -417,7 +417,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_C
odec_AAC_Function
_0450
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_C
ODEC_AAC
_0450
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test13.m4a
'
;
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
112000
;
// encodeBitrate 112000
...
...
@@ -430,7 +430,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_F
ormat_MP4_Function
_0200
* @tc.number : SUB_MEDIA_RECORDER_F
ORMAT_MP4
_0200
* @tc.name : 02.AAC,mp4
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -438,7 +438,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_F
ormat_MP4_Function
_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_F
ORMAT_MP4
_0200
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test14.mp4
'
;
audioConfig
.
audioEncodeBitRate
=
22050
;
// samplerate 22050
audioConfig
.
audioSampleRate
=
22050
;
// encodeBitrate 22050
...
...
@@ -459,7 +459,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_F
ormat_MP4_Function
_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_F
ORMAT_MP4
_0200
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test15.m4a
'
;
audioConfig
.
audioEncodeBitRate
=
22050
;
// samplerate 22050
audioConfig
.
audioSampleRate
=
22050
;
// encodeBitrate 22050
...
...
@@ -472,7 +472,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_
LOCAL_AUDIO_Function
_06_0100
* @tc.number : SUB_MEDIA_RECORDER_
AUDIO_FUNCTION
_06_0100
* @tc.name : 001.start
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -480,7 +480,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_
LOCAL_AUDIO_Function
_06_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_
AUDIO_FUNCTION
_06_0100
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test16.m4a
'
;
audioConfig
.
fileFormat
=
FORMAT_M4A
;
initAudioRecorder
();
...
...
@@ -490,7 +490,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_
LOCAL_AUDIO_Function
_06_0500
* @tc.number : SUB_MEDIA_RECORDER_
AUDIO_FUNCTION
_06_0500
* @tc.name : 005.reset
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -498,7 +498,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_
LOCAL_AUDIO_Function
_06_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_
AUDIO_FUNCTION
_06_0500
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test17.m4a
'
;
audioConfig
.
fileFormat
=
FORMAT_M4A
;
initAudioRecorder
();
...
...
@@ -508,7 +508,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_
LOCAL_AUDIO_Function
_06_1100
* @tc.number : SUB_MEDIA_RECORDER_
AUDIO_FUNCTION
_06_1100
* @tc.name : 011.start->reset->start->stop
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
...
...
@@ -516,7 +516,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_RECORDER_
LOCAL_AUDIO_Function
_06_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_
AUDIO_FUNCTION
_06_1100
'
,
0
,
async
function
(
done
)
{
audioConfig
.
uri
=
BASIC_PATH
+
'
test18.mp4
'
;
audioConfig
.
fileFormat
=
FORMAT_MP4
;
initAudioRecorder
();
...
...
multimedia/media/media_cpp_test_standard/player/include/TestPlayer.h
浏览文件 @
6c74adb6
...
...
@@ -48,6 +48,7 @@ public:
PlayerStates
state_
=
PLAYER_IDLE
;
int32_t
seekPosition_
;
bool
seekDoneFlag_
;
PlayerSeekMode
seekMode_
=
PlayerSeekMode
::
SEEK_CLOSEST
;
bool
mutexFlag_
=
true
;
std
::
mutex
mutexSeek_
;
std
::
mutex
mutexReset_
;
...
...
@@ -107,6 +108,7 @@ public:
void
OnError
(
PlayerErrorType
errorType
,
int32_t
errorCode
);
int
WaitForSeekDone
(
int32_t
currentPosition
);
void
OnInfo
(
PlayerOnInfoType
type
,
int32_t
extra
,
const
Format
&
infoBody
=
{});
void
SeekNotify
(
int32_t
extra
,
const
Format
&
infoBody
);
int
WaitForState
(
PlayerStates
state
);
private:
void
PrintState
(
PlayerStates
state
);
...
...
multimedia/media/media_cpp_test_standard/player/src/TestParamsConfig.cpp
浏览文件 @
6c74adb6
...
...
@@ -51,27 +51,6 @@ void TestParamsConfig::InitMountPath()
bool
TestParamsConfig
::
CompareTime
(
int32_t
expectTime
,
int32_t
realTime
,
OHOS
::
Media
::
PlayerSeekMode
seekMode
)
{
MEDIA_INFO_LOG
(
"CompareTime: expectTime %d, realTime %d"
,
expectTime
,
realTime
);
if
(
seekMode
==
PlayerSeekMode
::
SEEK_CLOSEST
)
{
if
(
std
::
abs
(
expectTime
-
realTime
)
<
CLOSEST_DELTA_TIME
)
{
return
true
;
}
else
{
return
false
;
}
}
if
(
seekMode
==
PlayerSeekMode
::
SEEK_NEXT_SYNC
)
{
if
(
realTime
-
expectTime
<
DELTA_TIME
&&
realTime
-
expectTime
>=
0
)
{
return
true
;
}
else
{
return
false
;
}
}
if
(
seekMode
==
PlayerSeekMode
::
SEEK_PREVIOUS_SYNC
)
{
if
(
expectTime
-
realTime
<
DELTA_TIME
&&
expectTime
-
realTime
>
-
CLOSEST_DELTA_TIME
)
{
return
true
;
}
else
{
return
false
;
}
}
if
(
std
::
abs
(
expectTime
-
realTime
)
<
DELTA_TIME
)
{
return
true
;
}
...
...
multimedia/media/media_cpp_test_standard/player/src/TestPlayer.cpp
浏览文件 @
6c74adb6
...
...
@@ -146,7 +146,16 @@ int32_t TestPlayer::Seek(int32_t mseconds, PlayerSeekMode mode)
{
MEDIA_DEBUG_LOG
(
"%s"
,
__FUNCTION__
);
test_
->
seekDoneFlag_
=
false
;
int32_t
duration
=
0
;
player_
->
GetDuration
(
duration
);
if
(
mseconds
<
0
)
{
test_
->
seekPosition_
=
0
;
}
else
if
(
mseconds
>
duration
)
{
test_
->
seekPosition_
=
duration
;
}
else
{
test_
->
seekPosition_
=
mseconds
;
}
test_
->
seekMode_
=
mode
;
int32_t
ret
=
player_
->
Seek
(
mseconds
,
mode
);
if
(
ret
==
RET_OK
&&
test_
->
mutexFlag_
==
true
&&
test_
->
seekDoneFlag_
==
false
)
{
std
::
unique_lock
<
std
::
mutex
>
lockSeek
(
test_
->
mutexSeek_
);
...
...
@@ -268,6 +277,28 @@ void TestPlayerCallback::OnError(PlayerErrorType errorType, int32_t errorCode)
errorTypeMsg
.
c_str
(),
errorCodeMsg
.
c_str
());
}
void
TestPlayerCallback
::
SeekNotify
(
int32_t
extra
,
const
Format
&
infoBody
)
{
if
(
test_
->
seekMode_
==
PlayerSeekMode
::
SEEK_CLOSEST
)
{
if
(
test_
->
seekPosition_
==
extra
)
{
test_
->
condVarSeek_
.
notify_all
();
}
}
else
if
(
test_
->
seekMode_
==
PlayerSeekMode
::
SEEK_PREVIOUS_SYNC
)
{
if
(
test_
->
seekPosition_
-
extra
<
DELTA_TIME
&&
extra
-
test_
->
seekPosition_
>=
0
)
{
test_
->
condVarSeek_
.
notify_all
();
}
}
else
if
(
test_
->
seekMode_
==
PlayerSeekMode
::
SEEK_NEXT_SYNC
)
{
if
(
extra
-
test_
->
seekPosition_
<
DELTA_TIME
&&
test_
->
seekPosition_
-
extra
>=
0
)
{
test_
->
condVarSeek_
.
notify_all
();
}
}
else
if
(
abs
(
test_
->
seekPosition_
-
extra
)
<=
DELTA_TIME
)
{
test_
->
condVarSeek_
.
notify_all
();
}
else
{
test_
->
SetSeekResult
(
false
);
}
return
;
}
void
TestPlayerCallback
::
OnInfo
(
PlayerOnInfoType
type
,
int32_t
extra
,
const
Format
&
infoBody
)
{
switch
(
type
)
{
...
...
@@ -275,11 +306,7 @@ void TestPlayerCallback::OnInfo(PlayerOnInfoType type, int32_t extra, const Form
seekDoneFlag_
=
true
;
test_
->
SetSeekResult
(
true
);
MEDIA_INFO_LOG
(
"TestPlayerCallback: OnSeekDone currentPosition is %d"
,
extra
);
if
(
abs
(
test_
->
seekPosition_
-
extra
)
<=
DELTA_TIME
)
{
test_
->
condVarSeek_
.
notify_all
();
}
else
{
test_
->
SetSeekResult
(
false
);
}
SeekNotify
(
extra
,
infoBody
);
break
;
case
INFO_TYPE_EOS
:
MEDIA_INFO_LOG
(
"TestPlayerCallback: OnEndOfStream isLooping is %d"
,
extra
);
...
...
multimedia/media/media_cpp_test_standard/player/src/api/ActsPlayerAPITest.cpp
浏览文件 @
6c74adb6
...
...
@@ -21,11 +21,11 @@ using namespace testing::ext;
using
namespace
TestPlayerBasic
;
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
SetSource_0100
* @tc.number : SUB_MEDIA_PLAYER_SetSource_0100
* @tc.name : 01.SetSource操作在new之后
* @tc.desc : test SetSource
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
SetSource_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_SetSource_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -36,11 +36,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetSource_0100, Reliability
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Prepare_0100
* @tc.number : SUB_MEDIA_PLAYER_Prepare_0100
* @tc.name : 03.Prepare操作在SetSource之后
* @tc.desc : test Prepare
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Prepare_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Prepare_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -56,11 +56,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Prepare_0100, Reliability |
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
PrepareAsync_0100
* @tc.number : SUB_MEDIA_PLAYER_PrepareAsync_0100
* @tc.name : 03.PrepareAsync操作在SetSource之后
* @tc.desc : test PrepareAsync
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
PrepareAsync_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_PrepareAsync_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -76,11 +76,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_PrepareAsync_0100, Reliabil
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Play_0100
* @tc.number : SUB_MEDIA_PLAYER_Play_0100
* @tc.name : 02.Play操作在PrepareAsync之后
* @tc.desc : test Play
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Play_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Play_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -101,11 +101,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Play_0100, Reliability | Me
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Stop_0100
* @tc.number : SUB_MEDIA_PLAYER_Stop_0100
* @tc.name : 04.Stop操作在Play之后
* @tc.desc : test Stop
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Stop_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Stop_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -126,11 +126,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Stop_0100, Reliability | Me
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Pause_0100
* @tc.number : SUB_MEDIA_PLAYER_Pause_0100
* @tc.name : 05.Pause操作在Play之后
* @tc.desc : test Pause
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Pause_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Pause_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -152,11 +152,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Pause_0100, Reliability | M
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Reset_0100
* @tc.number : SUB_MEDIA_PLAYER_Reset_0100
* @tc.name : 06.Reset操作在Seek之后
* @tc.desc : test Reset
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Reset_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Reset_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -180,11 +180,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Reset_0100, Reliability | M
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Seek_0100
* @tc.number : SUB_MEDIA_PLAYER_Seek_0100
* @tc.name : 04.Seek操作在Play之后
* @tc.desc : test Seek
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Seek_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Seek_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -208,11 +208,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0100, Reliability | Me
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Seek_0200
* @tc.number : SUB_MEDIA_PLAYER_Seek_0200
* @tc.name : 06.Seek操作在Pause之后
* @tc.desc : test Seek
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Seek_0200
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Seek_0200
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -238,11 +238,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0200, Reliability | Me
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Seek_0300
* @tc.number : SUB_MEDIA_PLAYER_Seek_0300
* @tc.name : 10.Seek操作调用3次
* @tc.desc : test Seek
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
Seek_0300
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_Seek_0300
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -279,11 +279,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0300, Reliability | Me
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
SetPlaybackSpeed_0100
* @tc.number : SUB_MEDIA_PLAYER_SetPlaybackSpeed_0100
* @tc.name : 02.SetPlaybackSpeed操作在play之后
* @tc.desc :
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
SetPlaybackSpeed_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_SetPlaybackSpeed_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
@@ -305,11 +305,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetPlaybackSpeed_0100, Reli
}
/**
* @tc.number : SUB_MEDIA_PLAYER_
APITest_
Seek_1500
* @tc.number : SUB_MEDIA_PLAYER_Seek_1500
* @tc.name : 15.GET操作在每个可进行的操作后都调用一次
* @tc.desc : test Seek
*/
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_
APITest_
GetParameter_0100
,
Reliability
|
MediumTest
|
Level2
)
HWTEST_F
(
ActsPlayerAPITest
,
SUB_MEDIA_PLAYER_GetParameter_0100
,
Reliability
|
MediumTest
|
Level2
)
{
std
::
shared_ptr
<
PlayerSignal
>
testObj
=
std
::
make_shared
<
PlayerSignal
>
();
std
::
shared_ptr
<
TestPlayer
>
player
=
std
::
make_shared
<
TestPlayer
>
(
testObj
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录