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