# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #####################hydra-fuzz################### import("//build/config/features.gni") import("//build/test.gni") import("//foundation/multimedia/player_framework/config.gni") module_output_path = "$MODULE_OUTPUT_PATH/media_player" ##############################fuzztest########################################## ohos_fuzztest("PlayerServiceStubFuzzTest") { module_out_path = module_output_path fuzz_config_file = "../../../../test/fuzztest/player_fuzztest/playerservicestub_fuzzer" include_dirs = [ "../../../../services/include", "../../../../services/services/sa_media/ipc", "../../../../test/fuzztest/player_fuzztest", "../../../../interfaces/inner_api/native", "../../../../test/fuzztest/common", ] cflags = [ "-std=c++17", "-fno-rtti", "-fno-exceptions", "-Wall", "-fno-common", "-fstack-protector-strong", "-Wshadow", "-FPIC", "-FS", "-O2", "-D_FORTIFY_SOURCE=2", "-fvisibility=hidden", "-Wformat=2", "-Wfloat-equal", "-Wdate-time", "-Werror", "-Wextra", "-Wimplicit-fallthrough", "-Wsign-compare", "-Wunused-parameter", "-DBINDER_IPC_32BIT", ] if (player_framework_support_player) { sources = [ "playerservicestub_fuzzer.cpp" ] } deps = [ "../../../../services/services:media_service" ] external_deps = [ "c_utils:utils", "drivers_peripheral_display:hdi_gralloc_client", "graphic_surface:surface", "ipc:ipc_single", "player_framework:media_client", "safwk:system_ability_fwk", "samgr:samgr_proxy", ] }