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("//foundation/multimedia/player_framework/config.gni") 16 17module_output_path = "player_framework/audio_haptic" 18 19ohos_unittest("audio_haptic_unit_test") { 20 module_out_path = module_output_path 21 include_dirs = [ 22 "./", 23 "./../../../interfaces/inner_api/native", 24 "./../../../interfaces/inner_api/native/audio_haptic/include", 25 ] 26 27 cflags = [ 28 "-Wall", 29 "-Werror", 30 ] 31 32 sources = [ "audio_haptic_unit_test.cpp" ] 33 34 deps = [ 35 "./../../../frameworks/native/audio_haptic:audio_haptic", 36 "./../../../frameworks/native/soundpool:soundpool_client", 37 "./../../../interfaces/inner_api/native:media_client", 38 ] 39 40 external_deps = [ 41 "access_token:libaccesstoken_sdk", 42 "access_token:libnativetoken_shared", 43 "access_token:libtokensetproc_shared", 44 "audio_framework:audio_client", 45 "graphic_surface:surface", 46 "hilog:libhilog", 47 ] 48 49 resource_config_file = "./../resources/ohos_test.xml" 50} 51