113acfde9Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 213acfde9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 313acfde9Sopenharmony_ci# you may not use this file except in compliance with the License. 413acfde9Sopenharmony_ci# You may obtain a copy of the License at 513acfde9Sopenharmony_ci# 613acfde9Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 713acfde9Sopenharmony_ci# 813acfde9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 913acfde9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1013acfde9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1113acfde9Sopenharmony_ci# See the License for the specific language governing permissions and 1213acfde9Sopenharmony_ci# limitations under the License. 1313acfde9Sopenharmony_ci 1413acfde9Sopenharmony_ciimport("//build/config/features.gni") 1513acfde9Sopenharmony_ciimport("//build/test.gni") 1613acfde9Sopenharmony_ciimport("//foundation/filemanagement/storage_service/storage_service_aafwk.gni") 1713acfde9Sopenharmony_ci 1813acfde9Sopenharmony_ciohos_fuzztest("FscryptUtilsFuzzTest") { 1913acfde9Sopenharmony_ci module_out_path = "storage_service/storage_service" 2013acfde9Sopenharmony_ci fuzz_config_file = "${storage_service_path}/test/fuzztest/fscryptutils_fuzzer" 2113acfde9Sopenharmony_ci include_dirs = [ "${storage_daemon_path}/include" ] 2213acfde9Sopenharmony_ci cflags = [ 2313acfde9Sopenharmony_ci "-g", 2413acfde9Sopenharmony_ci "-O0", 2513acfde9Sopenharmony_ci "-Wno-unused-variable", 2613acfde9Sopenharmony_ci "-fno-omit-frame-pointer", 2713acfde9Sopenharmony_ci ] 2813acfde9Sopenharmony_ci sources = [ "./fscryptutils_fuzzer.cpp" ] 2913acfde9Sopenharmony_ci deps = [ "${storage_daemon_path}/libfscrypt:libfscryptutils" ] 3013acfde9Sopenharmony_ci external_deps = [ 3113acfde9Sopenharmony_ci "bounds_checking_function:libsec_shared", 3213acfde9Sopenharmony_ci "hilog:libhilog", 3313acfde9Sopenharmony_ci "init:libbegetutil", 3413acfde9Sopenharmony_ci ] 3513acfde9Sopenharmony_ci} 3613acfde9Sopenharmony_ci 3713acfde9Sopenharmony_cigroup("fuzztest") { 3813acfde9Sopenharmony_ci testonly = true 3913acfde9Sopenharmony_ci deps = [] 4013acfde9Sopenharmony_ci deps += [ 4113acfde9Sopenharmony_ci # deps file 4213acfde9Sopenharmony_ci ":FscryptUtilsFuzzTest", 4313acfde9Sopenharmony_ci ] 4413acfde9Sopenharmony_ci} 45