# Copyright (C) 2023 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/communication/netmanager_ext/netmanager_ext_config.gni") ##############################fuzztest########################################## ohos_fuzztest("MDnsClientFuzzTest") { module_out_path = "communication/netmanager_ext" fuzz_config_file = "$NETMANAGER_EXT_ROOT/test/mdnsmanager/fuzztest/mdnsclient_fuzzer" include_dirs = [ "$NETMANAGER_EXT_ROOT/interfaces/innerkits/mdnsclient", "$NETMANAGER_EXT_ROOT/interfaces/innerkits/mdnsclient/proxy", "$NETMANAGER_EXT_ROOT/services/mdnsmanager/include", "$NETMANAGER_EXT_ROOT/services/mdnsmanager/include/protocol", "$NETMANAGER_EXT_ROOT/services/mdnsmanager/include/stub", "$EXT_INNERKITS_ROOT/include", "$NETMANAGER_EXT_ROOT/utils/log/include", "$BASE_INNERKITS_ROOT/netconnclient/include", "$BASE_INNERKITS_ROOT/netconnclient/include/proxy", ] cflags = [ "-g", "-O0", "-Wno-unused-variable", "-fno-omit-frame-pointer", ] sources = [ "mdns_client_fuzzer.cpp" ] deps = [ "$EXT_INNERKITS_ROOT/mdnsclient:mdns_manager_if", "$NETMANAGER_EXT_ROOT/services/mdnsmanager:mdns_manager_static", ] external_deps = [ "c_utils:utils", "ipc:ipc_core", "netmanager_base:net_conn_manager_if", "safwk:system_ability_fwk", ] external_deps += [ "hilog:libhilog" ] defines = [ "NETMGR_LOG_TAG = \"NetShareManager\"", "LOG_DOMAIN = 0xD0015B0", ] } ############################################################################### group("fuzztest") { testonly = true deps = [ ":MDnsClientFuzzTest" ] } ###############################################################################