16ea96550Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 26ea96550Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 36ea96550Sopenharmony_ci# you may not use this file except in compliance with the License. 46ea96550Sopenharmony_ci# You may obtain a copy of the License at 56ea96550Sopenharmony_ci# 66ea96550Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 76ea96550Sopenharmony_ci# 86ea96550Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 96ea96550Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 106ea96550Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 116ea96550Sopenharmony_ci# See the License for the specific language governing permissions and 126ea96550Sopenharmony_ci# limitations under the License. 136ea96550Sopenharmony_ci 146ea96550Sopenharmony_ciimport("//base/security/security_guard/security_guard.gni") 156ea96550Sopenharmony_ciimport("//build/config/features.gni") 166ea96550Sopenharmony_ciimport("//build/test.gni") 176ea96550Sopenharmony_ci 186ea96550Sopenharmony_ciohos_fuzztest("RequestSecurityModelResultAsyncFuzzTest") { 196ea96550Sopenharmony_ci module_out_path = fuzz_test_output_path 206ea96550Sopenharmony_ci fuzz_config_file = "${sg_root_dir}/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer" 216ea96550Sopenharmony_ci 226ea96550Sopenharmony_ci include_dirs = [ 236ea96550Sopenharmony_ci "${sg_root_dir}/frameworks/common/constants/include", 246ea96550Sopenharmony_ci "${sg_root_dir}/frameworks/common/log/include", 256ea96550Sopenharmony_ci "${sg_root_dir}/services/risk_classify/include", 266ea96550Sopenharmony_ci "${sg_root_dir}/interfaces/inner_api/classify/include", 276ea96550Sopenharmony_ci ] 286ea96550Sopenharmony_ci cflags = [ 296ea96550Sopenharmony_ci "-g", 306ea96550Sopenharmony_ci "-O0", 316ea96550Sopenharmony_ci "-Wno-unused-variable", 326ea96550Sopenharmony_ci "-fno-omit-frame-pointer", 336ea96550Sopenharmony_ci ] 346ea96550Sopenharmony_ci 356ea96550Sopenharmony_ci sources = [ "request_security_model_result_async_fuzzer.cpp" ] 366ea96550Sopenharmony_ci 376ea96550Sopenharmony_ci deps = [ "${sg_root_dir}/services/risk_classify:sg_classify_service" ] 386ea96550Sopenharmony_ci 396ea96550Sopenharmony_ci external_deps = [ 406ea96550Sopenharmony_ci "c_utils:utils", 416ea96550Sopenharmony_ci "hilog:libhilog", 426ea96550Sopenharmony_ci "ipc:ipc_core", 436ea96550Sopenharmony_ci "samgr:samgr_proxy", 446ea96550Sopenharmony_ci "security_guard:libsg_classify_sdk", 456ea96550Sopenharmony_ci ] 466ea96550Sopenharmony_ci} 47