Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
07820b6c
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看板
提交
07820b6c
编写于
9月 22, 2021
作者:
X
XUXIAOBO
提交者:
Gitee
9月 22, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
头文件刷新
Signed-off-by:
N
XUXIAOBO
<
xuxiaobo5@huawei.com
>
上级
e217e836
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
5 addition
and
26 deletion
+5
-26
multimedia/media/media_cpp_test_standard/player/include/ActsPlayerFuncTest.h
...dia_cpp_test_standard/player/include/ActsPlayerFuncTest.h
+0
-1
multimedia/media/media_cpp_test_standard/player/include/TestParamsConfig.h
...media_cpp_test_standard/player/include/TestParamsConfig.h
+1
-1
multimedia/media/media_cpp_test_standard/player/include/Testplayer.h
...media/media_cpp_test_standard/player/include/Testplayer.h
+4
-3
multimedia/media/media_cpp_test_standard/player/include/common.h
...dia/media/media_cpp_test_standard/player/include/common.h
+0
-21
未找到文件。
multimedia/media/media_cpp_test_standard/player/include/ActsPlayerFuncTest.h
浏览文件 @
07820b6c
...
@@ -45,7 +45,6 @@ public:
...
@@ -45,7 +45,6 @@ public:
MEDIA_DEBUG_LOG
(
"ActsPlayerFuncTest::TearDown:%s"
,
testInfo
->
name
());
MEDIA_DEBUG_LOG
(
"ActsPlayerFuncTest::TearDown:%s"
,
testInfo
->
name
());
};
};
static
void
LocalPlayFunc
(
const
std
::
string
uri
,
bool
isAsync
,
WindowConfig
config
=
g_sub_config
);
static
void
LocalPlayFunc
(
const
std
::
string
uri
,
bool
isAsync
,
WindowConfig
config
=
g_sub_config
);
static
void
*
LocalMulitPlayFunc
(
void
*
threadarg
);
};
};
}
}
}
}
...
...
multimedia/media/media_cpp_test_standard/player/include/TestParamsConfig.h
浏览文件 @
07820b6c
...
@@ -37,7 +37,7 @@ namespace {
...
@@ -37,7 +37,7 @@ namespace {
namespace
TestPlayerBasic
{
namespace
TestPlayerBasic
{
class
TestParamsConfig
{
class
TestParamsConfig
{
public:
public:
static
TestParamsConfig
&
GetInstance
()
static
TestParamsConfig
&
GetInstance
()
{
{
static
TestParamsConfig
config
;
static
TestParamsConfig
config
;
return
config
;
return
config
;
...
...
multimedia/media/media_cpp_test_standard/player/include/Testplayer.h
浏览文件 @
07820b6c
...
@@ -67,8 +67,8 @@ public:
...
@@ -67,8 +67,8 @@ public:
};
};
class
TestPlayer
{
class
TestPlayer
{
public:
public:
std
::
shared_ptr
<
Player
>
player_
;
std
::
shared_ptr
<
Player
>
player_
=
nullptr
;
sptr
<
Window
>
window_
;
sptr
<
Window
>
window_
=
nullptr
;
explicit
TestPlayer
(
std
::
shared_ptr
<
PlayerSignal
>
test
);
explicit
TestPlayer
(
std
::
shared_ptr
<
PlayerSignal
>
test
);
virtual
~
TestPlayer
();
virtual
~
TestPlayer
();
bool
CreatePlayer
();
bool
CreatePlayer
();
...
@@ -107,11 +107,12 @@ public:
...
@@ -107,11 +107,12 @@ public:
void
OnInfo
(
PlayerOnInfoType
type
,
int32_t
extra
,
const
Format
&
infoBody
=
{});
void
OnInfo
(
PlayerOnInfoType
type
,
int32_t
extra
,
const
Format
&
infoBody
=
{});
int
WaitForState
(
PlayerStates
state
);
int
WaitForState
(
PlayerStates
state
);
private:
private:
void
PrintState
(
PlayerStates
state
);
PlayerErrorType
errorType_
=
PLAYER_ERROR_UNKNOWN
;
PlayerErrorType
errorType_
=
PLAYER_ERROR_UNKNOWN
;
int32_t
errorCode_
=
-
1
;
int32_t
errorCode_
=
-
1
;
bool
seekDoneFlag_
=
false
;
bool
seekDoneFlag_
=
false
;
int32_t
postion_
=
0
;
int32_t
postion_
=
0
;
void
PrintState
(
PlayerStates
state
);
std
::
shared_ptr
<
PlayerSignal
>
test_
;
std
::
shared_ptr
<
PlayerSignal
>
test_
;
};
};
}
}
...
...
multimedia/media/media_cpp_test_standard/player/include/common.h
浏览文件 @
07820b6c
...
@@ -12,24 +12,3 @@
...
@@ -12,24 +12,3 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
#include "gtest/gtest.h"
#include "player.h"
namespace
PlayerNameSpace
{
static
std
::
string
MOUNT_147
=
"/data/media/audio/147"
;
static
std
::
string
MOUNT_189
=
"/data/media/audio/189"
;
static
const
int
MAX_THREADS
=
16
;
static
const
int32_t
PLAYING_TIME
=
3
;
static
const
int32_t
PAUSED_TIME
=
1
;
static
const
int32_t
SEEK_TIME_5_SEC
=
5000
;
static
const
int32_t
SEEK_TIME_2_SEC
=
2000
;
static
const
int
DELTA_TIME
=
1000
;
static
const
int
WAITSECOND
=
2
;
static
const
int
MAXTIME
=
1000
;
static
const
int
RET_OK
=
0
;
static
const
int32_t
FILE_BEGIN
=
0
;
static
const
int32_t
BUF_SIZE
=
1024
*
1024
;
static
const
OHOS
::
Media
::
PlayerSeekMode
SEEK_MODE
=
OHOS
::
Media
::
PlayerSeekMode
::
SEEK_PREVIOUS_SYNC
;
std
::
string
GetUri
();
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录