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/config/features.gni") 15import("//build/test.gni") 16import("//foundation/communication/nfc/test/utils/utils.gni") 17import("../../../../../nfc.gni") 18 19ohos_fuzztest("HceSessionStubFuzzTest") { 20 module_out_path = fuzz_module_out_path 21 22 fuzz_config_file = "$NFC_DIR/test/fuzztest/cardemulation_test/hcesessionstub/hcesessionstub_fuzzer" 23 24 include_dirs = [ 25 "$NFC_DIR/interfaces/inner_api/common", 26 "$NFC_DIR/services/src/ipc/card_emulation", 27 "$nfc_test_utils_path", 28 ] 29 30 cflags = [ 31 "-g", 32 "-O0", 33 "-Wno-unused-variable", 34 "-fno-omit-frame-pointer", 35 ] 36 37 sources = [ "hcesessionstub_fuzzer.cpp" ] 38 39 deps = [ 40 "$NFC_DIR/interfaces/inner_api/common:nfc_inner_kits_common", 41 "$NFC_DIR/services:nfc_service", 42 "$NFC_DIR/services:nfc_service_static", 43 "$nfc_test_utils_path:test_utils_static", 44 ] 45 46 external_deps = [ 47 "ability_base:want", 48 "ability_base:zuri", 49 "ability_runtime:ability_manager", 50 "ability_runtime:app_manager", 51 "ability_runtime:dataobs_manager", 52 "access_token:libaccesstoken_sdk", 53 "bundle_framework:appexecfwk_base", 54 "bundle_framework:appexecfwk_core", 55 "c_utils:utils", 56 "common_event_service:cesfwk_core", 57 "common_event_service:cesfwk_innerkits", 58 "data_share:datashare_consumer", 59 "eventhandler:libeventhandler", 60 "hilog:libhilog", 61 "hisysevent:libhisysevent", 62 "ipc:ipc_core", 63 "miscdevice:vibrator_interface_native", 64 "power_manager:powermgr_client", 65 "preferences:native_preferences", 66 "safwk:system_ability_fwk", 67 "samgr:samgr_proxy", 68 "screenlock_mgr:screenlock_client", 69 ] 70} 71 72group("fuzztest") { 73 testonly = true 74 deps = [] 75 deps += [ 76 # deps file 77 ":HceSessionStubFuzzTest", 78 ] 79} 80