1# Copyright (c) 2025 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("//foundation/multimedia/player_framework/config.gni") 16import("./../../../multimedia_player_framework_aafwk.gni") 17 18module_output_path = "player_framework/player_framework/soundpool" 19 20ohos_unittest("soundpool_cachebuffer_unittest") { 21 module_out_path = module_output_path 22 include_dirs = [ 23 "./", 24 "${multimedia_player_framework_path}/frameworks/native/soundpool", 25 "${multimedia_player_framework_path}/services/services/engine_intf", 26 "${multimedia_player_framework_path}/test/unittest/common/include", 27 "${multimedia_player_framework_path}/interfaces/inner_api/native/soundpool/include", 28 ] 29 30 cflags = [ 31 "-Wall", 32 "-Werror", 33 "-Dprivate=public", 34 "-Dprotected=public", 35 ] 36 37 if (player_framework_support_jssoundpool) { 38 sources = [ 39 "./cache_buffer_unittest.cpp", 40 ] 41 } 42 43 deps = [ 44 "${multimedia_player_framework_path}/frameworks/native/soundpool:soundpool_client", 45 "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client", 46 ] 47 48 external_deps = [ 49 "ability_base:want", 50 "ability_base:zuri", 51 "ability_runtime:ability_manager", 52 "ability_runtime:abilitykit_native", 53 "audio_framework:audio_client", 54 "audio_framework:audio_renderer", 55 "bundle_framework:appexecfwk_base", 56 "c_utils:utils", 57 "ffrt:libffrt", 58 "googletest:gmock", 59 "graphic_surface:surface", 60 "hicollie:libhicollie", 61 "hilog:libhilog", 62 "hisysevent:libhisysevent", 63 "hitrace:hitrace_meter", 64 "init:libbegetutil", 65 "ipc:ipc_core", 66 "qos_manager:qos", 67 ] 68 69 if (player_framework_support_drm) { 70 external_deps += [ "drm_framework:drm_framework" ] 71 } 72} 73