1# Copyright (c) 2022-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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/test.gni") 17import( 18 "//foundation/distributedhardware/distributed_screen/distributedscreen.gni") 19 20##############################fuzztest########################################## 21ohos_fuzztest("UnPluginHardwareFuzzTest") { 22 module_out_path = "${fuzz_test_path}/dscreenhandler" 23 24 fuzz_config_file = "${distributedscreen_path}/screenhandler/test/fuzztest/unpluginhardware_fuzzer" 25 26 include_dirs = [ 27 "include", 28 "${common_path}/include", 29 "${distributedscreen_path}/screenhandler/include", 30 ] 31 32 configs = 33 [ "${common_path}/test/unittest/resource:dscreen_unittest_public_config" ] 34 35 sources = [ "unpluginhardware_fuzzer.cpp" ] 36 37 deps = 38 [ "${distributedscreen_path}/screenhandler:distributed_screen_handler" ] 39 40 defines = [ 41 "HI_LOG_ENABLE", 42 "DH_LOG_TAG=\"UnPluginHardwareFuzzTest\"", 43 "LOG_DOMAIN=0xD004140", 44 ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "distributed_hardware_fwk:distributedhardwareutils", 49 "graphic_2d:libgraphic_utils", 50 "graphic_surface:surface", 51 "hilog:libhilog", 52 "ipc:ipc_core", 53 "window_manager:libdm", 54 ] 55} 56 57############################################################################### 58group("fuzztest") { 59 testonly = true 60 deps = [ ":UnPluginHardwareFuzzTest" ] 61} 62############################################################################### 63