113acfde9Sopenharmony_ci# Copyright (c) 2022 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("VolumeExternalFuzzTest") { 1913acfde9Sopenharmony_ci module_out_path = "storage_service/storage_service" 2013acfde9Sopenharmony_ci fuzz_config_file = 2113acfde9Sopenharmony_ci "${storage_service_path}/test/fuzztest/volumeexternal_fuzzer" 2213acfde9Sopenharmony_ci include_dirs = 2313acfde9Sopenharmony_ci [ "${storage_interface_path}/innerkits/storage_manager/native" ] 2413acfde9Sopenharmony_ci cflags = [ 2513acfde9Sopenharmony_ci "-g", 2613acfde9Sopenharmony_ci "-O0", 2713acfde9Sopenharmony_ci "-Wno-unused-variable", 2813acfde9Sopenharmony_ci "-fno-omit-frame-pointer", 2913acfde9Sopenharmony_ci ] 3013acfde9Sopenharmony_ci sources = [ "${storage_service_path}/test/fuzztest/volumeexternal_fuzzer/volumeexternal_fuzzer.cpp" ] 3113acfde9Sopenharmony_ci defines = [] 3213acfde9Sopenharmony_ci deps = [ "${storage_interface_path}/innerkits/storage_manager/native:storage_manager_sa_proxy" ] 3313acfde9Sopenharmony_ci external_deps = [ "c_utils:utils" ] 3413acfde9Sopenharmony_ci} 3513acfde9Sopenharmony_ci 3613acfde9Sopenharmony_cigroup("fuzztest") { 3713acfde9Sopenharmony_ci testonly = true 3813acfde9Sopenharmony_ci deps = [ ":VolumeExternalFuzzTest" ] 3913acfde9Sopenharmony_ci} 40