1# Copyright (c) 2024-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/ability/ability_runtime/ability_runtime.gni") 16 17module_output_path = "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/start_ability_utils.cpp", 40 "dialog_session_manager_test.cpp", 41 ] 42 43 configs = [ "${ability_runtime_services_path}/abilitymgr:abilityms_config" ] 44 45 cflags = [] 46 47 deps = [ 48 "${ability_runtime_innerkits_path}/app_manager:app_manager", 49 "${ability_runtime_path}/utils/server/startup:startup_util", 50 "${ability_runtime_services_path}/abilitymgr:abilityms", 51 "${ability_runtime_services_path}/common:app_util", 52 "${ability_runtime_services_path}/common:task_handler_wrap", 53 ] 54 55 external_deps = [ 56 "ability_base:want", 57 "ability_base:zuri", 58 "bundle_framework:appexecfwk_core", 59 "bundle_framework:libappexecfwk_common", 60 "c_utils:utils", 61 "eventhandler:libeventhandler", 62 "ffrt:libffrt", 63 "googletest:gmock_main", 64 "hilog:libhilog", 65 "hisysevent:libhisysevent", 66 "hitrace:hitrace_meter", 67 "init:libbegetutil", 68 "ipc:ipc_core", 69 "jsoncpp:jsoncpp", 70 "safwk:api_cache_manager", 71 "samgr:samgr_proxy", 72 "window_manager:libmodal_system_ui_extension_client", 73 ] 74} 75 76group("unittest") { 77 testonly = true 78 79 deps = [ ":dialog_session_manager_test" ] 80} 81