1# Copyright (c) 2022 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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/test.gni") 17import("//foundation/multimedia/player_framework/config.gni") 18module_output_path = "$MODULE_OUTPUT_PATH/media_player" 19 20##############################fuzztest########################################## 21ohos_fuzztest("PlayerSetVolumeFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = 24 "../../../../test/fuzztest/player_fuzztest/playersetvolume_fuzzer" 25 26 resource_config_file = "../../../../test/fuzztest/resource/ohos_test.xml" 27 28 include_dirs = [ 29 "../../../../../../../foundation/window/window_manager/interfaces/innerkits/wm", 30 "../../../../interfaces/inner_api/native", 31 "../../../../services/utils/include", 32 "../../../../test/fuzztest/common/", 33 ] 34 cflags = [ 35 "-g", 36 "-O0", 37 "-Wno-unused-variable", 38 "-fno-omit-frame-pointer", 39 ] 40 if (player_framework_support_player) { 41 sources = [ 42 "../../../../test/fuzztest/common/test_player.cpp", 43 "playersetvolume_fuzzer.cpp", 44 ] 45 } 46 deps = [ 47 "../../../../../../../foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 48 "../../../../../../../foundation/window/window_manager/wm:libwm", 49 ] 50 external_deps = [ 51 "c_utils:utils", 52 "drivers_peripheral_display:hdi_gralloc_client", 53 "graphic_surface:surface", 54 "hilog:libhilog", 55 "player_framework:media_client", 56 ] 57} 58 59############################################################################### 60 61