1# Copyright (c) 2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//foundation/multimedia/audio_framework/config.gni")
15import("//test/xts/tools/build/suite.gni")
16
17module_output_path = "acts/ActsAudioRenderTest"
18old_root_dir = "//foundation/multimedia/audio_framework/frameworks/native/ohaudio/test/unittest/oh_audio_render_test/"
19
20config_include_dirs = [
21  "./include",
22  "$old_root_dir/../../../../../../interfaces/kits/c/",
23  "$old_root_dir/../../../../../../interfaces/kits/c/common/",
24  "$old_root_dir/../../../../../../interfaces/kits/c/audio_renderer/",
25  "$old_root_dir/../../../../../../interfaces/kits/c/audio_capturer/",
26  "$old_root_dir/../../../../audiocapturer/include",
27  "$old_root_dir/../../../../audiopolicy/include",
28  "$old_root_dir/../../../../audiorenderer/include",
29  "$old_root_dir/../../../../../../interfaces/inner_api/native/audiocapturer/include",
30  "$old_root_dir/../../../../../../interfaces/inner_api/native/audiocommon/include",
31  "$old_root_dir/../../../../../../interfaces/inner_api/native/audiomanager/include",
32  "$old_root_dir/../../../../../../interfaces/inner_api/native/audiorenderer/include",
33  "$old_root_dir/../../../../../../interfaces/inner_api/native/audiostream/include",
34  "$old_root_dir/../../../../../../services/audio_service/client/include",
35  "$old_root_dir/../../../../../../services/audio_service/test/example",
36]
37
38ohos_moduletest_suite("ActsAudioRenderTest") {
39  module_out_path = module_output_path
40  include_dirs = [ "./" ]
41  include_dirs += config_include_dirs
42  sources = [ "./src/oh_audio_render_unit_test.cpp" ]
43  deps = [ "$old_root_dir/../../../../ohaudio:ohaudio" ]
44
45  external_deps = [ "hilog:libhilog" ]
46  part_name = "av_codec"
47  subsystem_name = "multimedia"
48}
49