1# Copyright (c) 2022 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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/test.gni") 17import("//foundation/multimedia/media_library/media_library.gni") 18BASE_DIR = "//foundation/multimedia/media_library" 19 20##############################fuzztest########################################## 21ohos_fuzztest("AlbumAssetFuzzTest") { 22 module_out_path = "multimedia/media_library" 23 fuzz_config_file = "//foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/albumasset_fuzzer" 24 25 include_dirs = [ 26 "${MEDIA_LIB_BASE_DIR}/interfaces/inner_api/media_library_helper/include", 27 "${MEDIA_LIB_BASE_DIR}/frameworks/utils/include", 28 "${BASE_DIR}/utils", 29 ] 30 31 sources = [ "album_asset_fuzzer.cpp" ] 32 configs = [ "//build/config/compiler:exceptions" ] 33 34 deps = [ 35 "${ABILITY_RUNTIME_INNER_API_PATH}/ability_manager:ability_manager", 36 "${MEDIA_LIB_INNERKITS_DIR}/media_library_helper:media_library_packages", 37 "${MEDIA_LIB_INNERKITS_DIR}/media_library_manager:media_library_manager", 38 "//foundation/filemanagement/user_file_service/frameworks/innerkits/file_access:file_access_extension_ability_kit", 39 ] 40 41 external_deps = [ "c_utils:utils" ] 42 43 cflags = [ 44 "-g", 45 "-O0", 46 "-Wno-unused-variable", 47 "-fno-omit-frame-pointer", 48 ] 49} 50