1# Copyright (C) 2023 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_unittest("Notifytest") { 18 module_out_path = "media_library/notify_test" 19 include_dirs = [ 20 "${MEDIALIB_UTILS_PATH}/include", 21 "${MEDIALIB_INNERKITS_PATH}/medialibrary_data_extension/include", 22 "${MEDIALIB_INTERFACES_PATH}/inner_api/media_library_helper/include", 23 "${MEDIALIB_SERVICES_PATH}/media_scanner/include/callback", 24 "../get_self_permissions/include", 25 "./include", 26 "../../../../../../../ability/ability_runtime/interfaces/kits/native/appkit/app", 27 ] 28 29 sources = [ 30 "../get_self_permissions/src/get_self_permissions.cpp", 31 "./src/notify_test.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 "../../../../../../../ability/ability_runtime/interfaces/inner_api/dataobs_manager:dataobs_manager", 38 ] 39 40 external_deps = [ 41 "ability_base:want", 42 "ability_base:zuri", 43 "ability_runtime:ability_context_native", 44 "ability_runtime:ability_manager", 45 "ability_runtime:abilitykit_native", 46 "ability_runtime:dataobs_manager", 47 "ability_runtime:runtime", 48 "access_token:libaccesstoken_sdk", 49 "access_token:libnativetoken", 50 "access_token:libtoken_setproc", 51 "c_utils:utils", 52 "common_event_service:cesfwk_innerkits", 53 "data_share:datashare_common", 54 "data_share:datashare_consumer", 55 "data_share:datashare_provider", 56 "hilog:libhilog", 57 "hitrace:hitrace_meter", 58 "image_framework:image_native", 59 "ipc:ipc_core", 60 "kv_store:distributeddata_inner", 61 "napi:ace_napi", 62 "relational_store:native_appdatafwk", 63 "relational_store:native_rdb", 64 "relational_store:rdb_data_share_adapter", 65 "safwk:system_ability_fwk", 66 "samgr:samgr_proxy", 67 "user_file_service:file_access_extension_ability_kit", 68 ] 69} 70