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/ability/ability_runtime/ability_runtime.gni") 16 17module_output_path = "ability_runtime/ability_runtime/abilitymgr" 18 19ohos_unittest("ability_manager_service_thirteenth_test") { 20 module_out_path = module_output_path 21 sanitize = { 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 blocklist = "../../cfi_blocklist.txt" 26 } 27 branch_protector_ret = "pac_ret" 28 configs = [ 29 ":abilityms_config", 30 ":abilityms_exception_config", 31 ] 32 include_dirs = [ 33 "mock/include", 34 "${ability_runtime_abilitymgr_path}/include/", 35 "${ability_runtime_abilitymgr_path}/include/data_ability", 36 "${ability_runtime_abilitymgr_path}/include/dialog_session/", 37 "${ability_runtime_abilitymgr_path}/include/extension_record", 38 "${ability_runtime_abilitymgr_path}/include/insight_intent", 39 "${ability_runtime_abilitymgr_path}/include/keep_alive/", 40 "${ability_runtime_abilitymgr_path}/include/mission/", 41 "${ability_runtime_abilitymgr_path}/include/rdb/", 42 "${ability_runtime_abilitymgr_path}/include/resident_process/", 43 "${ability_runtime_abilitymgr_path}/include/screen_lock/", 44 "${ability_runtime_abilitymgr_path}/include/ui_extension", 45 "${ability_runtime_abilitymgr_path}/include/ui_extension_record", 46 "${ability_runtime_abilitymgr_path}/include/utils/", 47 "${ability_runtime_innerkits_path}/ability_manager/include", 48 "${ability_runtime_innerkits_path}/app_manager/include", 49 "${ability_runtime_innerkits_path}/connectionobs_manager/include", 50 "${ability_runtime_innerkits_path}/dataobs_manager/include", 51 "${ability_runtime_innerkits_path}/deps_wrapper/include", 52 "${ability_runtime_innerkits_path}/session_handler/include", 53 "${ability_runtime_innerkits_path}/wantagent/include", 54 "${ability_runtime_path}/interfaces/kits/native/ability/native", 55 "${ability_runtime_path}/interfaces/kits/native/ability/native/ui_service_extension_ability/connection", 56 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_bundle_manager_helper", 57 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime", 58 "${ability_runtime_path}/tools/aa/include", 59 "${ability_runtime_path}/utils/global/time/include", 60 "${ability_runtime_services_path}/abilitymgr/data_ability/include", 61 "${ability_runtime_services_path}/abilitymgr/include", 62 "${ability_runtime_services_path}/abilitymgr/include/utils", 63 "${ability_runtime_services_path}/appdfr/include", 64 "${ability_runtime_services_path}/common/include", 65 "${ability_runtime_utils_path}/global/constant", 66 "${ability_runtime_utils_path}/server/constant", 67 "//prebuilts/jdk/jdk8/linux-x86/include", 68 "//prebuilts/jdk/jdk8/linux-x86/include/linux", 69 ] 70 71 sources = [ 72 "${ability_runtime_innerkits_path}/uri_permission/src/uri_permission_load_callback.cpp", 73 "${ability_runtime_services_path}/abilitymgr/src/ability_auto_startup_data_manager.cpp", 74 "${ability_runtime_services_path}/abilitymgr/src/ability_auto_startup_service.cpp", 75 "${ability_runtime_services_path}/abilitymgr/src/ability_background_connection.cpp", 76 "${ability_runtime_services_path}/abilitymgr/src/ability_bundle_event_callback.cpp", 77 "${ability_runtime_services_path}/abilitymgr/src/ability_cache_manager.cpp", 78 "${ability_runtime_services_path}/abilitymgr/src/ability_connect_manager.cpp", 79 "${ability_runtime_services_path}/abilitymgr/src/ability_debug_deal.cpp", 80 "${ability_runtime_services_path}/abilitymgr/src/ability_event_handler.cpp", 81 "${ability_runtime_services_path}/abilitymgr/src/ability_first_frame_state_observer_manager.cpp", 82 "${ability_runtime_services_path}/abilitymgr/src/ability_manager_collaborator_proxy.cpp", 83 "${ability_runtime_services_path}/abilitymgr/src/ability_manager_event_subscriber.cpp", 84 "${ability_runtime_services_path}/abilitymgr/src/ability_manager_service.cpp", 85 "${ability_runtime_services_path}/abilitymgr/src/ability_manager_stub.cpp", 86 "${ability_runtime_services_path}/abilitymgr/src/ability_running_info.cpp", 87 "${ability_runtime_services_path}/abilitymgr/src/ability_scheduler_proxy.cpp", 88 "${ability_runtime_services_path}/abilitymgr/src/ability_start_with_wait_observer_manager/ability_start_with_wait_observer_manager.cpp", 89 "${ability_runtime_services_path}/abilitymgr/src/ability_token_stub.cpp", 90 "${ability_runtime_services_path}/abilitymgr/src/ams_configuration_parameter.cpp", 91 "${ability_runtime_services_path}/abilitymgr/src/app_exit_reason_data_manager.cpp", 92 "${ability_runtime_services_path}/abilitymgr/src/app_exit_reason_helper.cpp", 93 "${ability_runtime_services_path}/abilitymgr/src/assert_fault_callback_death_mgr.cpp", 94 "${ability_runtime_services_path}/abilitymgr/src/assert_fault_proxy.cpp", 95 "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback.cpp", 96 "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback_proxy.cpp", 97 "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback_stub.cpp", 98 "${ability_runtime_services_path}/abilitymgr/src/auto_startup_info.cpp", 99 "${ability_runtime_services_path}/abilitymgr/src/background_task_observer.cpp", 100 "${ability_runtime_services_path}/abilitymgr/src/call_container.cpp", 101 "${ability_runtime_services_path}/abilitymgr/src/call_record.cpp", 102 "${ability_runtime_services_path}/abilitymgr/src/caller_info.cpp", 103 "${ability_runtime_services_path}/abilitymgr/src/connection_observer_controller.cpp", 104 "${ability_runtime_services_path}/abilitymgr/src/connection_record.cpp", 105 "${ability_runtime_services_path}/abilitymgr/src/connection_state_item.cpp", 106 "${ability_runtime_services_path}/abilitymgr/src/connection_state_manager.cpp", 107 "${ability_runtime_services_path}/abilitymgr/src/data_ability/data_ability_caller_recipient.cpp", 108 "${ability_runtime_services_path}/abilitymgr/src/data_ability/data_ability_record.cpp", 109 "${ability_runtime_services_path}/abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp", 110 "${ability_runtime_services_path}/abilitymgr/src/dialog_session/dialog_session_manager.cpp", 111 "${ability_runtime_services_path}/abilitymgr/src/disposed_observer.cpp", 112 "${ability_runtime_services_path}/abilitymgr/src/dlp_state_item.cpp", 113 "${ability_runtime_services_path}/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service.cpp", 114 "${ability_runtime_services_path}/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service_param.cpp", 115 "${ability_runtime_services_path}/abilitymgr/src/exit_info_data_manager.cpp", 116 "${ability_runtime_services_path}/abilitymgr/src/extension_config.cpp", 117 "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record.cpp", 118 "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record_factory.cpp", 119 "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record_manager.cpp", 120 "${ability_runtime_services_path}/abilitymgr/src/extension_running_info.cpp", 121 "${ability_runtime_services_path}/abilitymgr/src/free_install_observer_manager.cpp", 122 "${ability_runtime_services_path}/abilitymgr/src/hidden_start_observer_manager.cpp", 123 "${ability_runtime_services_path}/abilitymgr/src/implicit_start_processor.cpp", 124 "${ability_runtime_services_path}/abilitymgr/src/inner_mission_info.cpp", 125 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_execute_manager.cpp", 126 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_execute_result.cpp", 127 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_profile.cpp", 128 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_utils.cpp", 129 "${ability_runtime_services_path}/abilitymgr/src/utils/hmsf_utils.cpp", 130 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_rdb_data_mgr.cpp", 131 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_rdb_storage_mgr.cpp", 132 #"${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_db_cache.cpp", 133 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/extract_insight_intent_profile.cpp", 134 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_event_mgr.cpp", 135 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_sys_event_receiver.cpp", 136 "${ability_runtime_services_path}/abilitymgr/src/interceptor/ability_interceptor_executer.cpp", 137 "${ability_runtime_services_path}/abilitymgr/src/interceptor/ability_jump_interceptor.cpp", 138 "${ability_runtime_services_path}/abilitymgr/src/interceptor/block_all_app_start_interceptor.cpp", 139 "${ability_runtime_services_path}/abilitymgr/src/interceptor/control_interceptor.cpp", 140 "${ability_runtime_services_path}/abilitymgr/src/interceptor/crowd_test_interceptor.cpp", 141 "${ability_runtime_services_path}/abilitymgr/src/interceptor/disposed_rule_interceptor.cpp", 142 "${ability_runtime_services_path}/abilitymgr/src/interceptor/extension_control_interceptor.cpp", 143 "${ability_runtime_services_path}/abilitymgr/src/interceptor/screen_unlock_interceptor.cpp", 144 "${ability_runtime_services_path}/abilitymgr/src/interceptor/start_other_app_interceptor.cpp", 145 "${ability_runtime_services_path}/abilitymgr/src/keep_alive/ability_keep_alive_data_manager.cpp", 146 "${ability_runtime_services_path}/abilitymgr/src/keep_alive/ability_keep_alive_service.cpp", 147 "${ability_runtime_services_path}/abilitymgr/src/keep_alive/keep_alive_process_manager.cpp", 148 "${ability_runtime_services_path}/abilitymgr/src/lifecycle_deal.cpp", 149 "${ability_runtime_services_path}/abilitymgr/src/mission/mission_list_manager.cpp", 150 "${ability_runtime_services_path}/abilitymgr/src/mission/mission_listener_controller.cpp", 151 "${ability_runtime_services_path}/abilitymgr/src/mission/mission_listener_proxy.cpp", 152 "${ability_runtime_services_path}/abilitymgr/src/modal_system_dialog/modal_system_dialog_ui_extension.cpp", 153 "${ability_runtime_services_path}/abilitymgr/src/pending_want_common_event.cpp", 154 "${ability_runtime_services_path}/abilitymgr/src/pending_want_key.cpp", 155 "${ability_runtime_services_path}/abilitymgr/src/pending_want_manager.cpp", 156 "${ability_runtime_services_path}/abilitymgr/src/pending_want_record.cpp", 157 "${ability_runtime_services_path}/abilitymgr/src/query_erms_manager.cpp", 158 "${ability_runtime_services_path}/abilitymgr/src/query_erms_observer_manager.cpp", 159 "${ability_runtime_services_path}/abilitymgr/src/rdb/ability_resident_process_rdb.cpp", 160 "${ability_runtime_services_path}/abilitymgr/src/rdb/parser_util.cpp", 161 "${ability_runtime_services_path}/abilitymgr/src/rdb/rdb_data_manager.cpp", 162 "${ability_runtime_services_path}/abilitymgr/src/recovery_info_timer.cpp", 163 "${ability_runtime_services_path}/abilitymgr/src/remote_mission_listener_proxy.cpp", 164 "${ability_runtime_services_path}/abilitymgr/src/report_data_partition_usage_manager.cpp", 165 "${ability_runtime_services_path}/abilitymgr/src/resident_process/resident_process_manager.cpp", 166 "${ability_runtime_services_path}/abilitymgr/src/restart_app_manager.cpp", 167 "${ability_runtime_services_path}/abilitymgr/src/sa_interceptor_manager.cpp", 168 "${ability_runtime_services_path}/abilitymgr/src/scene_board/status_bar_delegate_manager.cpp", 169 "${ability_runtime_services_path}/abilitymgr/src/screen_lock/unlock_screen_callback.cpp", 170 "${ability_runtime_services_path}/abilitymgr/src/screen_lock/unlock_screen_manager.cpp", 171 "${ability_runtime_services_path}/abilitymgr/src/sender_info.cpp", 172 "${ability_runtime_services_path}/abilitymgr/src/start_ability_handler.cpp", 173 "${ability_runtime_services_path}/abilitymgr/src/start_ability_handler/start_ability_sandbox_savefile.cpp", 174 "${ability_runtime_services_path}/abilitymgr/src/start_options.cpp", 175 "${ability_runtime_services_path}/abilitymgr/src/system_dialog_scheduler.cpp", 176 "${ability_runtime_services_path}/abilitymgr/src/ui_extension/preload_uiext_state_observer.cpp", 177 "${ability_runtime_services_path}/abilitymgr/src/ui_extension_record/ui_extension_record.cpp", 178 "${ability_runtime_services_path}/abilitymgr/src/ui_extension_record/ui_extension_record_factory.cpp", 179 "${ability_runtime_services_path}/abilitymgr/src/user_callback_proxy.cpp", 180 "${ability_runtime_services_path}/abilitymgr/src/user_controller.cpp", 181 "${ability_runtime_services_path}/abilitymgr/src/user_event_handler.cpp", 182 "${ability_runtime_services_path}/abilitymgr/src/utils/ability_event_util.cpp", 183 "${ability_runtime_services_path}/abilitymgr/src/utils/ability_permission_util.cpp", 184 "${ability_runtime_services_path}/abilitymgr/src/utils/app_mgr_util.cpp", 185 "${ability_runtime_services_path}/abilitymgr/src/utils/dms_util.cpp", 186 "${ability_runtime_services_path}/abilitymgr/src/utils/dump_utils.cpp", 187 "${ability_runtime_services_path}/abilitymgr/src/utils/request_id_util.cpp", 188 "${ability_runtime_services_path}/abilitymgr/src/utils/extension_permissions_util.cpp", 189 "${ability_runtime_services_path}/abilitymgr/src/utils/hidden_start_utils.cpp", 190 "${ability_runtime_services_path}/abilitymgr/src/utils/keep_alive_utils.cpp", 191 "${ability_runtime_services_path}/abilitymgr/src/utils/main_element_utils.cpp", 192 "${ability_runtime_services_path}/abilitymgr/src/utils/modal_system_dialog_util.cpp", 193 "${ability_runtime_services_path}/abilitymgr/src/utils/multi_app_utils.cpp", 194 "${ability_runtime_services_path}/abilitymgr/src/utils/multi_instance_utils.cpp", 195 "${ability_runtime_services_path}/abilitymgr/src/utils/start_ability_utils.cpp", 196 "${ability_runtime_services_path}/abilitymgr/src/utils/start_options_utils.cpp", 197 "${ability_runtime_services_path}/abilitymgr/src/utils/state_utils.cpp", 198 "${ability_runtime_services_path}/abilitymgr/src/utils/timeout_state_utils.cpp", 199 "${ability_runtime_services_path}/abilitymgr/src/utils/update_caller_info_util.cpp", 200 "${ability_runtime_services_path}/abilitymgr/src/utils/uri_utils.cpp", 201 "${ability_runtime_services_path}/abilitymgr/src/utils/want_utils.cpp", 202 "${ability_runtime_services_path}/abilitymgr/src/utils/window_options_utils.cpp", 203 "${ability_runtime_services_path}/abilitymgr/src/want_receiver_proxy.cpp", 204 "${ability_runtime_services_path}/abilitymgr/src/want_receiver_stub.cpp", 205 "${ability_runtime_services_path}/abilitymgr/src/want_sender_info.cpp", 206 "${ability_runtime_services_path}/abilitymgr/src/want_sender_proxy.cpp", 207 "${ability_runtime_services_path}/abilitymgr/src/want_sender_stub.cpp", 208 "${ability_runtime_services_path}/abilitymgr/src/wants_info.cpp", 209 "${ability_runtime_services_path}/abilitymgr/src/window_focus_changed_listener.cpp", 210 "${ability_runtime_services_path}/abilitymgr/src/window_visibility_changed_listener.cpp", 211 "${ability_runtime_services_path}/appdfr/src/application_anr_listener.cpp", 212 "${ability_runtime_services_path}/common/src/ability_manager_radar.cpp", 213 "${ability_runtime_services_path}/common/src/ffrt_task_handler_wrap.cpp", 214 "${ability_runtime_services_path}/common/src/json_utils.cpp", 215 "${ability_runtime_services_path}/common/src/queue_task_handler_wrap.cpp", 216 "${ability_runtime_services_path}/common/src/task_handler_wrap.cpp", 217 "${ability_runtime_test_path}/mock/frameworks_kits_ability_native_test/include/mock_ability_manager_client.cpp", 218 "ability_manager_service_thirteenth_test.cpp", 219 "mock/src/mock_ability_record.cpp", 220 "mock/src/mock_accesstoken_kit.cpp", 221 "mock/src/mock_app_scheduler.cpp", 222 "mock/src/mock_app_utils.cpp", 223 "mock/src/mock_data_ability_manager.cpp", 224 "mock/src/mock_ecological_rule_interceptor.cpp", 225 "mock/src/mock_free_install_manager.cpp", 226 "mock/src/mock_insight_intent_db_cache.cpp", 227 "mock/src/mock_ipc_skeleton.cpp", 228 "mock/src/mock_parameters.cpp", 229 "mock/src/mock_permission_verification.cpp", 230 "mock/src/mock_scene_board_judgement.cpp", 231 "mock/src/mock_sub_managers_helper.cpp", 232 "mock/src/mock_ui_ability_lifecycle_manager.cpp", 233 "${ability_runtime_services_path}/abilitymgr/src/kiosk_status.cpp", 234 "${ability_runtime_services_path}/abilitymgr/src/kiosk_manager.cpp", 235 "${ability_runtime_services_path}/abilitymgr/src/interceptor/kiosk_interceptor.cpp", 236 "${ability_runtime_services_path}/abilitymgr/src/preload_manager_service.cpp", 237 ] 238 239 deps = [ 240 "${ability_runtime_innerkits_path}/ability_manager:ability_connect_callback_stub", 241 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 242 "${ability_runtime_innerkits_path}/ability_manager:ability_start_options", 243 "${ability_runtime_innerkits_path}/ability_manager:ability_start_setting", 244 "${ability_runtime_innerkits_path}/ability_manager:mission_info", 245 "${ability_runtime_innerkits_path}/ability_manager:process_options", 246 "${ability_runtime_innerkits_path}/ability_manager:start_window_option", 247 "${ability_runtime_innerkits_path}/app_manager:app_manager", 248 "${ability_runtime_innerkits_path}/connectionobs_manager:connection_obs_manager", 249 "${ability_runtime_innerkits_path}/deps_wrapper:ability_deps_wrapper", 250 "${ability_runtime_innerkits_path}/error_utils:ability_runtime_error_util", 251 "${ability_runtime_innerkits_path}/session_handler:session_handler", 252 "${ability_runtime_innerkits_path}/uri_permission:uri_permission_mgr", 253 "${ability_runtime_native_path}/ability/native:ability_business_error", 254 "${ability_runtime_native_path}/ability/native:abilitykit_native", 255 "${ability_runtime_native_path}/ability/native:auto_startup_callback", 256 "${ability_runtime_native_path}/appkit:appkit_manager_helper", 257 "${ability_runtime_path}/utils/global/freeze:freeze_util", 258 "${ability_runtime_path}/utils/server/startup:startup_util", 259 "${ability_runtime_services_path}/abilitymgr:mission_list", 260 "${ability_runtime_services_path}/common:app_util", 261 "${ability_runtime_services_path}/common:event_report", 262 "${ability_runtime_services_path}/common:perm_verification", 263 "${ability_runtime_services_path}/common:rate_limiter", 264 "${ability_runtime_services_path}/common:record_cost_time_util", 265 "${ability_runtime_services_path}/common:res_sched_util", 266 "${ability_runtime_services_path}/common:task_handler_wrap", 267 ] 268 269 external_deps = [ 270 "ability_base:base", 271 "ability_base:configuration", 272 "ability_base:extractortool", 273 "ability_base:session_info", 274 "ability_base:view_data", 275 "ability_base:want", 276 "ability_base:zuri", 277 "access_token:libaccesstoken_sdk", 278 "access_token:libnativetoken", 279 "access_token:libtoken_setproc", 280 "access_token:libtokenid_sdk", 281 "bundle_framework:appexecfwk_base", 282 "bundle_framework:appexecfwk_core", 283 "bundle_framework:libappexecfwk_common", 284 "c_utils:utils", 285 "common_event_service:cesfwk_core", 286 "common_event_service:cesfwk_innerkits", 287 "config_policy:configpolicy_util", 288 "dsoftbus:softbus_client", 289 "eventhandler:libeventhandler", 290 "faultloggerd:libbacktrace_local", 291 "ffrt:libffrt", 292 "googletest:gmock_main", 293 "googletest:gtest_main", 294 "hicollie:libhicollie", 295 "hilog:libhilog", 296 "hisysevent:libhisysevent", 297 "hitrace:hitrace_meter", 298 "icu:shared_icuuc", 299 "init:libbeget_proxy", 300 "init:libbegetutil", 301 "ipc:ipc_core", 302 "json:nlohmann_json_static", 303 "kv_store:distributeddata_inner", 304 "os_account:os_account_innerkits", 305 "qos_manager:concurrent_task_client", 306 "relational_store:native_appdatafwk", 307 "relational_store:native_dataability", 308 "relational_store:native_rdb", 309 "safwk:api_cache_manager", 310 "safwk:system_ability_fwk", 311 "samgr:samgr_proxy", 312 "window_manager:libmodal_system_ui_extension_client", 313 "window_manager:libwsutils", 314 "window_manager:scene_session", 315 "window_manager:session_manager_lite", 316 "window_manager:sms", 317 "window_manager:window_animation_utils", 318 ] 319 320 if (ability_runtime_graphics) { 321 external_deps += [ 322 "ability_base:session_info", 323 "i18n:intl_util", 324 "icu:shared_icuuc", 325 "image_framework:image_native", 326 "input:libmmi-client", 327 "resource_management:global_resmgr", 328 "window_manager:libdm", 329 "window_manager:libmodal_system_ui_extension_client", 330 "window_manager:libwm", 331 "window_manager:libwsutils", 332 "window_manager:scene_session", 333 "window_manager:sms", 334 ] 335 } 336 337 if (ability_runtime_graphics && ability_runtime_screenlock_enable) { 338 external_deps += [ 339 "screenlock_mgr:screenlock_client", 340 ] 341 } 342 343 cflags = [ 344 "-Dprivate=public", 345 "-Dprotected=public", 346 ] 347 cflags_cc = [] 348 if (os_dlp_part_enabled) { 349 cflags_cc += [ "-DWITH_DLP" ] 350 external_deps += [ 351 "dlp_permission_service:libdlp_permission_sdk", 352 "dlp_permission_service:libdlpparse", 353 ] 354 } 355} 356 357config("abilityms_config") { 358 defines = [] 359 360 if (ability_command_for_test) { 361 defines += [ "ABILITY_COMMAND_FOR_TEST" ] 362 } 363 364 if (ability_fault_and_exit_test) { 365 defines += [ "ABILITY_FAULT_AND_EXIT_TEST" ] 366 } 367 368 if (ability_runtime_graphics) { 369 defines += [ 370 "SUPPORT_GRAPHICS", 371 "SUPPORT_SCREEN", 372 ] 373 } 374 375 if (ability_runtime_graphics && ability_runtime_screenlock_enable) { 376 defines += [ 377 "ABILITY_RUNTIME_SCREENLOCK_ENABLE" 378 ] 379 } 380 381 if (background_task_mgr_continuous_task_enable) { 382 defines += [ "BGTASKMGR_CONTINUOUS_TASK_ENABLE" ] 383 } 384 385 if (resource_schedule_service_enable) { 386 defines += [ "RESOURCE_SCHEDULE_SERVICE_ENABLE" ] 387 } 388 389 if (memmgr_override_enable) { 390 defines += [ "MEMMGR_OVERRIDE_ENABLE" ] 391 } 392 393 if (is_asan || asan_detector) { 394 defines += [ "SUPPORT_ASAN" ] 395 } 396} 397config("abilityms_exception_config") { 398 cflags_cc = [ "-fexceptions" ] 399} 400 401group("unittest") { 402 testonly = true 403 deps = [ ":ability_manager_service_thirteenth_test" ] 404} 405