audio test case

Signed-off-by: liuhonggang123 <honggang.liu@huawei.com>
Change-Id: Ifb0c5255205bf69141a519d53c34c4d5144c0f7f
This commit is contained in:
liuhonggang123 2022-01-29 18:45:15 +08:00
parent 9d143899de
commit a4edc61c6f
44 changed files with 735 additions and 31 deletions

View File

@ -15,6 +15,7 @@ group("hatshdftest") {
testonly = true
if (is_standard_system) {
deps = [
"audio:HatsHdfAudioTest",
"input:HatsHdfInputTest",
"light:HatsHdfLightTest",
"manager:HatsHdfManagerServiceTest",

View File

@ -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",
]
}

View File

@ -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",

View File

@ -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"
}

View 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" ]
}
}

View 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"
}

View 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 = [

View 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"
}

View 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" ]
}
}

View 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"
}

View 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" ]
}
}

View 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"
}

View 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" ]
}
}

View 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"
}

View 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" ]
}
}

View 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"
}

View 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 = [

View 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"
}

View 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" ]
}
}

View 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"
}

View 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" ]
}
}

View File

@ -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"
}

View 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" ]
}
}

View 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"
}