1# Copyright (c) 2022-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("//base/security/certificate_manager/cert_manager.gni") 15import("//build/config/features.gni") 16import("//build/test.gni") 17 18module_output_path = "certificate_manager/certificate_manager" 19 20##############################fuzztest########################################## 21ohos_fuzztest("CmUninstallUserTrustedCertFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = "${cert_manager_root_dir}/test/fuzz_test/cmuninstallusertrustedcert_fuzzer" 24 25 cflags = [ 26 "-g", 27 "-O0", 28 "-Wno-unused-variable", 29 "-fno-omit-frame-pointer", 30 ] 31 sources = [ "cmuninstallusertrustedcert_fuzzer.cpp" ] 32 deps = [ 33 "${cert_manager_root_dir}/frameworks/cert_manager_standard/main/common:libcert_manager_common_standard_static", 34 "${cert_manager_root_dir}/interfaces/innerkits/cert_manager_standard/main:cert_manager_sdk", 35 "${cert_manager_root_dir}/test/fuzz_test/fuzz_test_common:libcert_manager_fuzz_test_common_static", 36 ] 37 external_deps = [ 38 "access_token:libaccesstoken_sdk", 39 "access_token:libnativetoken", 40 "access_token:libtoken_setproc", 41 "bounds_checking_function:libsec_static", 42 "cJSON:cjson_static", 43 "c_utils:utils", 44 "selinux_adapter:librestorecon", 45 ] 46} 47 48############################################################################### 49group("fuzztest") { 50 testonly = true 51 deps = [] 52 53 deps += [ 54 # deps file 55 ":CmUninstallUserTrustedCertFuzzTest", 56 ] 57} 58############################################################################### 59