Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6fc7fe56
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看板
提交
6fc7fe56
编写于
9月 14, 2021
作者:
Z
z_apperception
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<zhaochen69@huawei.com>
Signed-off-by:
N
z_apperception
<
zhaochen69@huawei.com
>
上级
f219dd37
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
3214 addition
and
1220 deletion
+3214
-1220
build_lite/BUILD.gn
build_lite/BUILD.gn
+6
-3
multimedia_lite/media_lite_posix/audio_native/BUILD.gn
multimedia_lite/media_lite_posix/audio_native/BUILD.gn
+47
-0
multimedia_lite/media_lite_posix/audio_native/Test.json
multimedia_lite/media_lite_posix/audio_native/Test.json
+25
-0
multimedia_lite/media_lite_posix/audio_native/src/ActsMediaAudioTest.cpp
.../media_lite_posix/audio_native/src/ActsMediaAudioTest.cpp
+2206
-0
multimedia_lite/media_lite_posix/audio_native/src/ActsMediaAudioTest.h
...te/media_lite_posix/audio_native/src/ActsMediaAudioTest.h
+42
-0
multimedia_lite/media_lite_posix/player_native/BUILD.gn
multimedia_lite/media_lite_posix/player_native/BUILD.gn
+15
-9
multimedia_lite/media_lite_posix/player_native/Test.json
multimedia_lite/media_lite_posix/player_native/Test.json
+0
-3
multimedia_lite/media_lite_posix/player_native/src/ActsAudioPlayerTest.cpp
...edia_lite_posix/player_native/src/ActsAudioPlayerTest.cpp
+0
-1090
multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerTest.cpp
...edia_lite_posix/player_native/src/ActsMediaPlayerTest.cpp
+827
-0
multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerTest.h
.../media_lite_posix/player_native/src/ActsMediaPlayerTest.h
+46
-0
multimedia_lite/media_lite_posix/player_native/src/PlayerTest.h
...edia_lite/media_lite_posix/player_native/src/PlayerTest.h
+0
-115
未找到文件。
build_lite/BUILD.gn
浏览文件 @
6fc7fe56
...
...
@@ -12,8 +12,8 @@
# limitations under the License.
import("//build/lite/config/subsystem/aafwk/config.gni")
import("//test/xts/tools/lite/build/suite_lite.gni")
import("//build/lite/config/test.gni")
import("//test/xts/tools/lite/build/suite_lite.gni")
lite_component("acts_component") {
all_features = []
...
...
@@ -40,6 +40,7 @@ lite_component("acts_component") {
"//test/xts/acts/iot_hardware_lite/iot_controller_hal:ActsWifiIotTest",
"//test/xts/acts/kernel_lite/kernelcmsis_hal:ActsCMSISTest",
"//test/xts/acts/utils_lite/kv_store_hal:ActsKvStoreTest",
#"//test/xts/acts/security_lite/huks_hal:ActsSecurityDataTest",
"//test/xts/acts/hiviewdfx_lite/hilog_hal:ActsDfxFuncTest",
"//test/xts/acts/hiviewdfx_lite/hievent_hal:ActsHieventLiteTest",
...
...
@@ -59,13 +60,14 @@ lite_component("acts_component") {
"//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/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/audio_native:ActsMediaAudioTest",
"//test/xts/acts/distributed_schedule_lite/system_ability_manager_posix:ActsSamgrTest",
#"//test/xts/acts/distributedschedule_lite/distributed_schedule_posix:ActsDMSTest",
"//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest",
"//test/xts/acts/hiviewdfx_lite/hilog_posix:ActsHilogTest",
"//test/xts/acts/multimedia_lite/media_lite_posix/recorder_native:ActsMediaRecorderTest",
#"//test/xts/acts/graphic_lite/graphic_utils:uikit_test1",
...
...
@@ -85,6 +87,7 @@ lite_component("acts_component") {
all_features += [
"//test/xts/acts/utils_lite/kv_store_posix:ActsKvStoreTest",
"//test/xts/acts/startup_lite/syspara_posix:ActsParameterTest",
#"//test/xts/acts/security_lite/huks_posix:ActsSecurityDataTest",
#"//test/xts/acts/multimedia_lite/camera_lite_posix/camera_native:ActsMediaCameraTest",
#"//test/xts/acts/multimedia_lite/media_lite_posix/player_native:ActsMediaPlayerTest",
...
...
multimedia_lite/media_lite_posix/audio_native/BUILD.gn
0 → 100644
浏览文件 @
6fc7fe56
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import("//test/xts/tools/lite/build/suite_lite.gni")
hcpptest_suite("ActsMediaAudioTest") {
suite_name = "acts"
sources = [ "src/ActsMediaAudioTest.cpp" ]
ldflags = [ "-lstdc++" ]
ldflags += [ "-lm" ]
if (ohos_kernel_type == "linux") {
ldflags += [ "-lpthread" ]
}
ldflags += [ "-Wl,-rpath-link=$ohos_root_path/$root_out_dir" ]
include_dirs = [
"src",
"//test/xts/acts/multimedia_lite/utils_posix/common/include",
"//foundation/multimedia/audio_lite/frameworks/audio_encoder/include",
"//foundation/multimedia/audio_lite/frameworks/audio_source/include",
"//foundation/multimedia/audio_lite/interfaces/kits",
"//foundation/multimedia/utils/lite/include",
"//drivers/peripheral/audio/interfaces/include",
"//drivers/peripheral/codec/interfaces/include",
"//drivers/peripheral/format/interfaces/include",
"//foundation/multimedia/audio_lite/test/unittest",
]
deps = [
"//foundation/multimedia/audio_lite/frameworks:audio_capturer_lite",
"//foundation/multimedia/utils/lite:media_common",
"//third_party/bounds_checking_function:libsec_shared",
]
cflags = [ "-Wno-error" ]
}
multimedia_lite/media_lite_posix/audio_native/Test.json
0 → 100644
浏览文件 @
6fc7fe56
{
"description"
:
"Config for hcpptest demo test cases"
,
"environment"
:
[
{
"type"
:
"device"
,
"label"
:
"ipcamera"
}
],
"kits"
:
[
{
"type"
:
"MountKit"
,
"server"
:
"NfsServer"
,
"mount"
:
[
{
"source"
:
"testcases/multimedia"
,
"target"
:
"/test_root/multimedia"
}
]
}
],
"driver"
:
{
"type"
:
"CppTestLite"
,
"execute"
:
"/test_root/multimedia/ActsMediaAudioTest.bin"
}
}
\ No newline at end of file
multimedia_lite/media_lite_posix/audio_native/src/ActsMediaAudioTest.cpp
0 → 100644
浏览文件 @
6fc7fe56
此差异已折叠。
点击以展开。
multimedia_lite/media_lite_posix/audio_native/src/ActsMediaAudioTest.h
0 → 100644
浏览文件 @
6fc7fe56
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef AUDIOLITETEST_H
#define AUDIOLITETEST_H
#include <sys/time.h>
#include "gtest/gtest.h"
#include "audio_capturer.h"
namespace
OHOS
{
const
int
RET_SUCCESS
=
0
;
const
int
RET_FAILURE
=
-
1
;
struct
OHOS
::
Audio
::
AudioCapturerInfo
audioCapInfo
;
class
AudioliteTest
:
public
testing
::
Test
{
public:
// SetUpTestCase: before all testcasee
static
void
SetUpTestCase
(
void
);
// TearDownTestCase: after all testcase
static
void
TearDownTestCase
(
void
);
// SetUp
void
SetUp
(
void
);
// TearDown
void
TearDown
(
void
);
};
}
// namespace OHOS
#endif // AUDIOLITETEST_H
multimedia_lite/media_lite_posix/player_native/BUILD.gn
浏览文件 @
6fc7fe56
...
...
@@ -11,27 +11,33 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/lite/config/subsystem/aafwk/config.gni")
import("//test/xts/tools/lite/build/suite_lite.gni")
hcpptest_suite("ActsMediaPlayerTest") {
suite_name = "acts"
sources = [ "src/ActsAudioPlayerTest.cpp" ]
if (ohos_kernel_type == "liteos_a" &&
enable_ohos_appexecfwk_feature_ability == true) {
sources += [ "src/ActsVideoPlayerTest.cpp" ]
}
include_dirs = [ "src" ]
sources = [ "src/ActsMediaPlayerTest.cpp" ]
ldflags = [ "-lstdc++" ]
ldflags += [ "-lm" ]
if (ohos_kernel_type == "linux") {
ldflags += [ "-lpthread" ]
}
ldflags += [ "-Wl,-rpath-link=$ohos_root_path/$root_out_dir" ]
include_dirs = [
"src",
"//test/xts/acts/multimedia_lite/utils_posix/common/include",
"//third_party/bounds_checking_function/include",
"//foundation/ace/ace_engine_lite/interfaces/innerkits/builtin/base",
"//foundation/ace/ace_engine_lite/interfaces/innerkits/builtin/async",
"//foundation/multimedia/media_lite/interfaces/kits/player_lite",
"//foundation/multimedia/utils/lite/include",
"//foundation/multimedia/media_lite/test/unittest/player_lite",
]
deps = [
"//foundation/multimedia/media_lite/frameworks/player_lite:player_lite",
#"//foundation/multimedia/camera_lite/frameworks:camera_lite
",
#"//foundation/multimedia/media_lite/frameworks/recorder_lite:recorder_lite
",
"//foundation/multimedia/utils/lite:media_common
",
"//third_party/bounds_checking_function:libsec_shared
",
]
cflags = [ "-Wno-error" ]
...
...
multimedia_lite/media_lite_posix/player_native/Test.json
浏览文件 @
6fc7fe56
...
...
@@ -14,9 +14,6 @@
{
"source"
:
"testcases/multimedia"
,
"target"
:
"/test_root/multimedia"
},{
"source"
:
"resource/multimedia"
,
"target"
:
"/test_root/multimedia"
}
]
}
...
...
multimedia_lite/media_lite_posix/player_native/src/ActsAudioPlayerTest.cpp
已删除
100644 → 0
浏览文件 @
f219dd37
此差异已折叠。
点击以展开。
multimedia_lite/media_lite_posix/player_native/src/Acts
Video
PlayerTest.cpp
→
multimedia_lite/media_lite_posix/player_native/src/Acts
Media
PlayerTest.cpp
100755 → 100644
浏览文件 @
6fc7fe56
此差异已折叠。
点击以展开。
multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerTest.h
0 → 100644
浏览文件 @
6fc7fe56
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef PLAYER_LITE_TEST_H
#define PLAYER_LITE_TEST_H
#include "gtest/gtest.h"
#include "player.h"
namespace
OHOS
{
using
OHOS
::
Media
::
Player
;
using
OHOS
::
Media
::
PlayerSeekMode
;
using
OHOS
::
Media
::
Source
;
using
OHOS
::
Media
::
Format
;
using
OHOS
::
Media
::
StreamSource
;
using
OHOS
::
Media
::
StreamCallback
;
using
OHOS
::
Media
::
SourceType
;
using
OHOS
::
Media
::
PlayerCallback
;
using
namespace
std
;
using
namespace
OHOS
::
Media
;
using
namespace
testing
::
ext
;
const
int
FILE_PATH_LEN
=
2048
;
using
TestSample
=
struct
TagTestSample
{
std
::
shared_ptr
<
Player
>
adaptr
;
char
filePath
[
FILE_PATH_LEN
];
};
static
TagTestSample
g_tagTestSample
;
static
Surface
*
g_surface
=
Surface
::
CreateSurface
();
}
// namespace OHOS
#endif // PLAYER_LITE_TEST_H
\ No newline at end of file
multimedia_lite/media_lite_posix/player_native/src/PlayerTest.h
已删除
100644 → 0
浏览文件 @
f219dd37
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录