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("FileUtilsFuzzTest") {
1913acfde9Sopenharmony_ci  module_out_path = "storage_service/storage_service"
2013acfde9Sopenharmony_ci  fuzz_config_file = "${storage_service_path}/test/fuzztest/fileutils_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 = [ "${storage_service_path}/test/fuzztest/fileutils_fuzzer/fileutils_fuzzer.cpp" ]
2913acfde9Sopenharmony_ci  defines = []
3013acfde9Sopenharmony_ci  deps = [ "${storage_daemon_path}:storage_common_utils" ]
3113acfde9Sopenharmony_ci}
3213acfde9Sopenharmony_ci
3313acfde9Sopenharmony_cigroup("fuzztest") {
3413acfde9Sopenharmony_ci  testonly = true
3513acfde9Sopenharmony_ci  deps = [ ":FileUtilsFuzzTest" ]
3613acfde9Sopenharmony_ci}
37