1# Copyright (c) 2024 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("//build/test.gni") 15import("../../../../../audio_framework_test_sources.gni") 16import("../../../../../config.gni") 17 18if (!audio_framework_feature_offline_effect) { 19 group("offline_audio_effect_manager_unit_test") { 20 deps = [] 21 } 22} else { 23 ohos_unittest("offline_audio_effect_manager_unit_test") { 24 module_out_path = 25 "audio_framework/audio_framework_engine/offline_audio_effect_manager" 26 include_dirs = [ 27 "../../include", 28 "../../../../../interfaces/inner_api/native/offlineaudioeffect/include", 29 "../../../../../interfaces/inner_api/native/audiocommon/include", 30 "../../../../../services/audio_service/client/include", 31 ] 32 33 cflags = [ 34 "-Wall", 35 "-Werror", 36 "-fno-access-control", 37 ] 38 39 sources = [ "offline_audio_effect_manager_unit_test.cpp" ] 40 41 deps = [ 42 "../../:offline_audio_effect", 43 "../../:offline_audio_effect_service", 44 "../../../../../services/audio_service:audio_client", 45 "../../../audioutils:audio_utils", 46 "../../../../../services/audio_service:audio_common", 47 ] 48 49 external_deps = [ 50 "c_utils:utils", 51 "drivers_interface_audio:libeffect_proxy_1.0", 52 "googletest:gmock", 53 "googletest:gtest", 54 "hilog:libhilog", 55 "hitrace:hitrace_meter", 56 "ipc:ipc_single", 57 ] 58 59 part_name = "audio_framework" 60 subsystem_name = "multimedia" 61 } 62} 63