mirror of
https://gitee.com/openharmony/xts_hats
synced 2025-02-26 13:25:39 +00:00
audio test case
Signed-off-by: liuhonggang123 <honggang.liu@huawei.com> Change-Id: Ifb0c5255205bf69141a519d53c34c4d5144c0f7f
This commit is contained in:
parent
9d143899de
commit
a4edc61c6f
@ -15,6 +15,7 @@ group("hatshdftest") {
|
||||
testonly = true
|
||||
if (is_standard_system) {
|
||||
deps = [
|
||||
"audio:HatsHdfAudioTest",
|
||||
"input:HatsHdfInputTest",
|
||||
"light:HatsHdfLightTest",
|
||||
"manager:HatsHdfManagerServiceTest",
|
||||
|
@ -22,8 +22,17 @@ group("hdi") {
|
||||
testonly = true
|
||||
}
|
||||
deps = [
|
||||
"adapter:hdf_audio_hdi_adapter_test",
|
||||
"capture:hdf_audio_hdi_capture_test",
|
||||
"render:hdf_audio_hdi_render_test",
|
||||
"adapter:HatsHdfAudioAdapterTest",
|
||||
"capture/captureAttr:HatsHdfAudioCaptureAttrTest",
|
||||
"capture/captureControl:HatsHdfAudioCaptureControlTest",
|
||||
"capture/captureScene:HatsHdfAudioCaptureSceneTest",
|
||||
"capture/captureTest:HatsHdfAudioCaptureTest",
|
||||
"capture/captureVolume:HatsHdfAudioCaptureVolumeTest",
|
||||
|
||||
# "render/renderAttr:HatsHdfAudioRenderAttrTest",
|
||||
# "render/renderControl:HatsHdfAudioRenderControlTest",
|
||||
# "render/renderScene:HatsHdfAudioRenderSceneTest",
|
||||
# "render/renderTest:HatsHdfAudioRenderTest",
|
||||
# "render/renderVolume:HatsHdfAudioRenderVolumeTest",
|
||||
]
|
||||
}
|
||||
|
@ -19,8 +19,8 @@ import("//test/xts/tools/build/suite.gni")
|
||||
###########################NOT LITEOS##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################hdf_audio_hdi_adapter_test#####################
|
||||
ohos_moduletest_suite("hdf_audio_hdi_adapter_test") {
|
||||
###########################HatsHdfAudioAdapterTest#####################
|
||||
ohos_moduletest_suite("HatsHdfAudioAdapterTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
|
@ -2,7 +2,7 @@
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"hdf_audio_hdi_adapter_test->/data/local/tmp/hdf_audio_hdi_adapter_test"
|
||||
"HatsHdfAudioAdapterTest->/data/local/tmp/HatsHdfAudioAdapterTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
@ -10,9 +10,9 @@
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "hdf_audio_hdi_adapter_test",
|
||||
"module-name": "HatsHdfAudioAdapterTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for hdf_audio_hdi_adapter_test Tests"
|
||||
"description": "Configuration for HatsHdfAudioAdapterTest Tests"
|
||||
}
|
72
hdf/audio/hdi/capture/captureAttr/BUILD.gn
Normal file
72
hdf/audio/hdi/capture/captureAttr/BUILD.gn
Normal file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioCaptureAttrTest#####################
|
||||
ohos_moduletest_suite("HatsHdfAudioCaptureAttrTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdicapture_attr_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/capture/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
18
hdf/audio/hdi/capture/captureAttr/Test.json
Normal file
18
hdf/audio/hdi/capture/captureAttr/Test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioCaptureAttrTest->/data/local/tmp/HatsHdfAudioCaptureAttrTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
],
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioCaptureAttrTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioCaptureAttrTest Tests"
|
||||
}
|
10
hdf/audio/hdi/capture/BUILD.gn → hdf/audio/hdi/capture/captureControl/BUILD.gn
Executable file → Normal file
10
hdf/audio/hdi/capture/BUILD.gn → hdf/audio/hdi/capture/captureControl/BUILD.gn
Executable file → Normal file
@ -19,16 +19,12 @@ import("//test/xts/tools/build/suite.gni")
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################hdf_audio_hdi_capture_test#####################
|
||||
ohos_moduletest_suite("hdf_audio_hdi_capture_test") {
|
||||
###########################HatsHdfAudioCaptureControlTest#####################
|
||||
ohos_moduletest_suite("HatsHdfAudioCaptureControlTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdicapture_attr_test.cpp",
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdicapture_control_test.cpp",
|
||||
"src/audio_hdicapture_scene_test.cpp",
|
||||
"src/audio_hdicapture_test.cpp",
|
||||
"src/audio_hdicapture_volume_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
18
hdf/audio/hdi/capture/captureControl/Test.json
Normal file
18
hdf/audio/hdi/capture/captureControl/Test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioCaptureControlTest->/data/local/tmp/HatsHdfAudioCaptureControlTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
],
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioCaptureControlTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioCaptureControlTest Tests"
|
||||
}
|
72
hdf/audio/hdi/capture/captureScene/BUILD.gn
Normal file
72
hdf/audio/hdi/capture/captureScene/BUILD.gn
Normal file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioCaptureSceneTest#####################
|
||||
ohos_moduletest_suite("HatsHdfAudioCaptureSceneTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdicapture_scene_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/capture/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
18
hdf/audio/hdi/capture/captureScene/Test.json
Normal file
18
hdf/audio/hdi/capture/captureScene/Test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioCaptureSceneTest->/data/local/tmp/HatsHdfAudioCaptureSceneTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
],
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioCaptureSceneTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioCaptureSceneTest Tests"
|
||||
}
|
72
hdf/audio/hdi/capture/captureTest/BUILD.gn
Normal file
72
hdf/audio/hdi/capture/captureTest/BUILD.gn
Normal file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioCaptureTest#####################
|
||||
ohos_moduletest_suite("HatsHdfAudioCaptureTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdicapture_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/capture/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
6
hdf/audio/hdi/render/Test.json → hdf/audio/hdi/capture/captureTest/Test.json
Executable file → Normal file
6
hdf/audio/hdi/render/Test.json → hdf/audio/hdi/capture/captureTest/Test.json
Executable file → Normal file
@ -2,7 +2,7 @@
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"hdf_audio_hdi_render_test->/data/local/tmp/hdf_audio_hdi_render_test"
|
||||
"HatsHdfAudioCaptureTest->/data/local/tmp/HatsHdfAudioCaptureTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
@ -10,9 +10,9 @@
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "hdf_audio_hdi_render_test",
|
||||
"module-name": "HatsHdfAudioCaptureTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for hdf_audio_hdi_render_test Tests"
|
||||
"description": "Configuration for HatsHdfAudioCaptureTest Tests"
|
||||
}
|
0
hdf/audio/hdi/capture/include/audio_hdicapture_test.h → hdf/audio/hdi/capture/captureTest/include/audio_hdicapture_test.h
Executable file → Normal file
0
hdf/audio/hdi/capture/include/audio_hdicapture_test.h → hdf/audio/hdi/capture/captureTest/include/audio_hdicapture_test.h
Executable file → Normal file
72
hdf/audio/hdi/capture/captureVolume/BUILD.gn
Normal file
72
hdf/audio/hdi/capture/captureVolume/BUILD.gn
Normal file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioCaptureVolumeTest#####################
|
||||
ohos_moduletest_suite("HatsHdfAudioCaptureVolumeTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdicapture_volume_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/capture/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
18
hdf/audio/hdi/capture/captureVolume/Test.json
Normal file
18
hdf/audio/hdi/capture/captureVolume/Test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioCaptureVolumeTest->/data/local/tmp/HatsHdfAudioCaptureVolumeTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
],
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioCaptureVolumeTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioCaptureVolumeTest Tests"
|
||||
}
|
72
hdf/audio/hdi/render/renderAttr/BUILD.gn
Normal file
72
hdf/audio/hdi/render/renderAttr/BUILD.gn
Normal file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioRenderAttrTest######################
|
||||
ohos_moduletest_suite("HatsHdfAudioRenderAttrTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdirender_attr_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/render/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
6
hdf/audio/hdi/capture/Test.json → hdf/audio/hdi/render/renderAttr/Test.json
Executable file → Normal file
6
hdf/audio/hdi/capture/Test.json → hdf/audio/hdi/render/renderAttr/Test.json
Executable file → Normal file
@ -2,7 +2,7 @@
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"hdf_audio_hdi_capture_test->/data/local/tmp/hdf_audio_hdi_capture_test"
|
||||
"HatsHdfAudioRenderAttrTest->/data/local/tmp/HatsHdfAudioRenderAttrTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
@ -10,9 +10,9 @@
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "hdf_audio_hdi_capture_test",
|
||||
"module-name": "HatsHdfAudioRenderAttrTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for hdf_audio_hdi_capture_test Tests"
|
||||
"description": "Configuration for HatsHdfAudioRenderAttrTest Tests"
|
||||
}
|
0
hdf/audio/hdi/render/include/audio_hdirender_attr_test.h → hdf/audio/hdi/render/renderAttr/include/audio_hdirender_attr_test.h
Executable file → Normal file
0
hdf/audio/hdi/render/include/audio_hdirender_attr_test.h → hdf/audio/hdi/render/renderAttr/include/audio_hdirender_attr_test.h
Executable file → Normal file
10
hdf/audio/hdi/render/BUILD.gn → hdf/audio/hdi/render/renderControl/BUILD.gn
Executable file → Normal file
10
hdf/audio/hdi/render/BUILD.gn → hdf/audio/hdi/render/renderControl/BUILD.gn
Executable file → Normal file
@ -19,16 +19,12 @@ import("//test/xts/tools/build/suite.gni")
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################hdf_audio_hdi_render_test######################
|
||||
ohos_moduletest_suite("hdf_audio_hdi_render_test") {
|
||||
###########################HatsHdfAudioRenderControlTest######################
|
||||
ohos_moduletest_suite("HatsHdfAudioRenderControlTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdirender_attr_test.cpp",
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdirender_control_test.cpp",
|
||||
"src/audio_hdirender_scene_test.cpp",
|
||||
"src/audio_hdirender_test.cpp",
|
||||
"src/audio_hdirender_volume_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
18
hdf/audio/hdi/render/renderControl/Test.json
Normal file
18
hdf/audio/hdi/render/renderControl/Test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioRenderControlTest->/data/local/tmp/HatsHdfAudioRenderControlTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
],
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioRenderControlTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioRenderControlTest Tests"
|
||||
}
|
72
hdf/audio/hdi/render/renderScene/BUILD.gn
Normal file
72
hdf/audio/hdi/render/renderScene/BUILD.gn
Normal file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioRenderSceneTest######################
|
||||
ohos_moduletest_suite("HatsHdfAudioRenderSceneTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdirender_scene_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/render/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
18
hdf/audio/hdi/render/renderScene/Test.json
Normal file
18
hdf/audio/hdi/render/renderScene/Test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioRenderSceneTest->/data/local/tmp/HatsHdfAudioRenderSceneTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
],
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioRenderSceneTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioRenderSceneTest Tests"
|
||||
}
|
72
hdf/audio/hdi/render/renderTest/BUILD.gn
Executable file
72
hdf/audio/hdi/render/renderTest/BUILD.gn
Executable file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioRenderTest######################
|
||||
ohos_moduletest_suite("HatsHdfAudioRenderTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdirender_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/render/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioTest->/data/local/tmp/HatsHdfAudioTest"
|
||||
"HatsHdfAudioRenderTest->/data/local/tmp/HatsHdfAudioRenderTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
@ -10,9 +10,9 @@
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioTest",
|
||||
"module-name": "HatsHdfAudioRenderTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioTest Tests"
|
||||
"description": "Configuration for HatsHdfAudioRenderTest Tests"
|
||||
}
|
72
hdf/audio/hdi/render/renderVolume/BUILD.gn
Normal file
72
hdf/audio/hdi/render/renderVolume/BUILD.gn
Normal file
@ -0,0 +1,72 @@
|
||||
# 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("//build/ohos_var.gni")
|
||||
import("//drivers/adapter/uhdf2/uhdf.gni")
|
||||
import("//drivers/peripheral/audio/audio.gni")
|
||||
import("//test/xts/tools/build/suite.gni")
|
||||
|
||||
###########################systemtest##############################
|
||||
module_output_path = "hdf/audio"
|
||||
|
||||
###########################HatsHdfAudioRenderVolumeTest######################
|
||||
ohos_moduletest_suite("HatsHdfAudioRenderVolumeTest") {
|
||||
module_out_path = module_output_path
|
||||
sources = [
|
||||
"../../../common/hdi_common/src/audio_hdi_common.cpp",
|
||||
"src/audio_hdirender_volume_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"//drivers/peripheral/audio/hal/hdi_passthrough/include",
|
||||
"//drivers/peripheral/audio/interfaces/include",
|
||||
"//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
|
||||
"//drivers/adapter/uhdf2/include/hdi",
|
||||
"//drivers/adapter/uhdf2/shared/include",
|
||||
"//drivers/framework/include/core",
|
||||
"//drivers/framework/include/utils",
|
||||
"//drivers/framework/include/osal",
|
||||
"//drivers/framework/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//drivers/framework/utils/include",
|
||||
"//drivers/adapter/uhdf2/osal/include",
|
||||
"//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
|
||||
"//third_party/googletest/googletest/include/gtest",
|
||||
"//drivers/peripheral/audio/test/systemtest/hdi/render/include",
|
||||
]
|
||||
cflags = [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-fsigned-char",
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
defines = []
|
||||
if (enable_audio_adm_so) {
|
||||
defines += [ "AUDIO_ADM_SO" ]
|
||||
}
|
||||
if (enable_audio_mpi_so) {
|
||||
defines += [ "AUDIO_MPI_SO" ]
|
||||
}
|
||||
if (enable_audio_adm_service) {
|
||||
defines += [ "AUDIO_ADM_SERVICE" ]
|
||||
}
|
||||
if (enable_audio_mpi_service) {
|
||||
defines += [ "AUDIO_MPI_SERVICE" ]
|
||||
}
|
||||
}
|
18
hdf/audio/hdi/render/renderVolume/Test.json
Normal file
18
hdf/audio/hdi/render/renderVolume/Test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"kits": [
|
||||
{
|
||||
"push": [
|
||||
"HatsHdfAudioRenderVolumeTest->/data/local/tmp/HatsHdfAudioRenderVolumeTest"
|
||||
],
|
||||
"type": "PushKit"
|
||||
}
|
||||
],
|
||||
"driver": {
|
||||
"native-test-timeout": "120000",
|
||||
"type": "CppTest",
|
||||
"module-name": "HatsHdfAudioRenderVolumeTest",
|
||||
"runtime-hint": "1s",
|
||||
"native-test-device-path": "/data/local/tmp"
|
||||
},
|
||||
"description": "Configuration for HatsHdfAudioRenderVolumeTest Tests"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user