1# Copyright (c) 2023 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") 16 17ohos_fuzztest("UserAuthStubFuzzTest") { 18 module_out_path = "useriam/user_auth_framework/services" 19 fuzz_config_file = "../userauthstub_fuzzer" 20 cflags = [ 21 "-g", 22 "-O0", 23 "-Wno-unused-variable", 24 "-fno-omit-frame-pointer", 25 ] 26 include_dirs = [ 27 "../../../../services/base/inc", 28 "../../../../services/core/inc", 29 "../../../../services/core/src", 30 "../../../../services/context/inc", 31 "../../../../services/ipc/inc", 32 "../../../../frameworks/native/ipc/inc", 33 "../../../../frameworks/native/ipc/common_defines", 34 "../../../../common/utils", 35 "../../../../common/logs", 36 ] 37 38 sources = [ "user_auth_stub_fuzzer.cpp" ] 39 40 deps = [ 41 "../../../../common:iam_test", 42 "../../../../frameworks/native/common:attributes", 43 "../../../../services/ipc:userauth_services_ipc", 44 ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "drivers_interface_user_auth:libuser_auth_proxy_1.1", 49 "eventhandler:libeventhandler", 50 "hilog:libhilog", 51 "ipc:ipc_single", 52 "safwk:system_ability_fwk", 53 "samgr:samgr_proxy", 54 ] 55 56 subsystem_name = "useriam" 57 part_name = "user_auth_framework" 58} 59