1# Copyright (c) 2024 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/ability/ability_runtime/ability_runtime.gni") 16 17module_output_path = "ability_runtime/ability_runtime/abilitymgr" 18 19ohos_unittest("dialog_session_manager_test") { 20 module_out_path = module_output_path 21 22 sanitize = { 23 cfi = true 24 cfi_cross_dso = true 25 debug = false 26 blocklist = "../../cfi_blocklist.txt" 27 } 28 29 include_dirs = [ 30 "${ability_runtime_path}/services/abilitymgr/include/dialog_session", 31 "${ability_runtime_test_path}/mock/frameworks_kits_ability_native_test/include", 32 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_bundle_manager_helper", 33 ] 34 35 sources = [ 36 "${ability_runtime_path}/frameworks/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.cpp", 37 "${ability_runtime_path}/services/abilitymgr/src/dialog_session/dialog_session_info.cpp", 38 "${ability_runtime_path}/services/abilitymgr/src/dialog_session/dialog_session_manager.cpp", 39 "${ability_runtime_path}/services/abilitymgr/src/query_erms_manager.cpp", 40 "${ability_runtime_path}/services/abilitymgr/src/query_erms_observer_manager.cpp", 41 "${ability_runtime_path}/services/abilitymgr/src/utils/start_ability_utils.cpp", 42 "dialog_session_manager_test.cpp", 43 ] 44 45 configs = [ "${ability_runtime_services_path}/abilitymgr:abilityms_config" ] 46 47 cflags = [] 48 49 deps = [ 50 "${ability_runtime_innerkits_path}/app_manager:app_manager", 51 "${ability_runtime_path}/utils/server/startup:startup_util", 52 "${ability_runtime_services_path}/abilitymgr:abilityms", 53 "${ability_runtime_services_path}/common:app_util", 54 "${ability_runtime_services_path}/common:task_handler_wrap", 55 ] 56 57 external_deps = [ 58 "ability_base:want", 59 "ability_base:zuri", 60 "bundle_framework:appexecfwk_core", 61 "bundle_framework:libappexecfwk_common", 62 "c_utils:utils", 63 "eventhandler:libeventhandler", 64 "ffrt:libffrt", 65 "googletest:gmock_main", 66 "hilog:libhilog", 67 "hisysevent:libhisysevent", 68 "hitrace:hitrace_meter", 69 "init:libbegetutil", 70 "ipc:ipc_core", 71 "jsoncpp:jsoncpp", 72 "safwk:api_cache_manager", 73 "samgr:samgr_proxy", 74 "window_manager:libmodal_system_ui_extension_client", 75 ] 76} 77 78group("unittest") { 79 testonly = true 80 81 deps = [ ":dialog_session_manager_test" ] 82} 83