1# Copyright (c) 2025 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 14import("//build/test.gni") 15import("//foundation/multimedia/media_library/media_library.gni") 16 17ohos_fuzztest("MediaLibraryPhotoDayMonthYearOperationFuzzTest") { 18 module_out_path = "media_library/media_library" 19 fuzz_config_file = "." 20 21 include_dirs = [ 22 "./include", 23 "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension/include", 24 "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension/include/operation", 25 "${MEDIALIB_SERVICES_PATH}/media_thumbnail/include", 26 ] 27 28 sources = [ 29 "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension/src/operation/photo_day_month_year_operation.cpp", 30 "./medialibraryphotodaymonthyearoperation_fuzzer.cpp", 31 "./mock_medialibrary_subscriber.cpp", 32 ] 33 34 deps = [ 35 "${MEDIALIB_INNERKITS_PATH}/media_library_helper:media_library", 36 "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension:medialibrary_data_extension", 37 "${MEDIALIB_UTILS_PATH}:medialibrary_common_utils", 38 "${MEDIALIB_UTILS_PATH}:permission_utils", 39 "${MEDIALIB_UTILS_PATH}:post_event_utils", 40 ] 41 42 external_deps = [ 43 "ability_base:configuration", 44 "ability_base:want", 45 "ability_base:zuri", 46 "ability_runtime:ability_context_native", 47 "ability_runtime:ability_manager", 48 "ability_runtime:abilitykit_native", 49 "ability_runtime:app_context", 50 "ability_runtime:app_manager", 51 "ability_runtime:dataobs_manager", 52 "ability_runtime:runtime", 53 "access_token:libaccesstoken_sdk", 54 "access_token:libprivacy_sdk", 55 "bundle_framework:appexecfwk_core", 56 "c_utils:utils", 57 "common_event_service:cesfwk_innerkits", 58 "data_share:datashare_common", 59 "data_share:datashare_consumer", 60 "data_share:datashare_provider", 61 "dfs_service:cloudsync_kit_inner", 62 "hilog:libhilog", 63 "hisysevent:libhisysevent", 64 "hitrace:hitrace_meter", 65 "image_framework:image_native", 66 "ipc:ipc_single", 67 "kv_store:distributeddata_inner", 68 "napi:ace_napi", 69 "player_framework:media_client", 70 "preferences:native_preferences", 71 "relational_store:native_rdb", 72 "relational_store:rdb_data_share_adapter", 73 "user_file_service:file_access_extension_ability_kit", 74 ] 75} 76