# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("//foundation/multimedia/media_library/media_library.gni") ohos_fuzztest("MediaLibraryExtensionBatchInsertFuzzTest") { module_out_path = "media_library/media_library" fuzz_config_file = "." include_dirs = [ "./include", "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension/include", "${MEDIALIB_INTERFACES_PATH}/inner_api/media_library_helper/include", ] sources = [ "src/medialibrary_extension_batch_insert_fuzzer.cpp" ] deps = [ "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension:medialibrary_data_extension" ] external_deps = [ "ability_base:want", "ability_base:zuri", "ability_runtime:ability_manager", "ability_runtime:app_context", "ability_runtime:app_manager", "ability_runtime:dataobs_manager", "ability_runtime:extensionkit_native", "ability_runtime:runtime", "ability_runtime:uri_permission_mgr", "access_token:libaccesstoken_sdk", "c_utils:utils", "common_event_service:cesfwk_innerkits", "data_share:datashare_common", "data_share:datashare_consumer", "data_share:datashare_provider", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "device_security_level:dslm_sdk", "dfs_service:cloudsync_kit_inner", "eventhandler:libeventhandler", "file_api:filemgmt_libn", "hilog:libhilog", "hitrace:hitrace_meter", "image_framework:image_native", "init:libbegetutil", "ipc:ipc_core", "kv_store:distributeddata_inner", "napi:ace_napi", "player_framework:media_client", "relational_store:native_rdb", "relational_store:rdb_data_share_adapter", "safwk:system_ability_fwk", "samgr:samgr_proxy", "user_file_service:file_access_extension_ability_kit", "window_manager:libdm", ] }