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/ability/ability_runtime/ability_runtime.gni") 16import("//foundation/resourceschedule/background_task_mgr/bgtaskmgr.gni") 17 18module_output_path = "ability_runtime/abilitymgr" 19 20ohos_unittest("ui_ability_lifecycle_manager_test") { 21 module_out_path = module_output_path 22 23 include_dirs = [ 24 "${distributedschedule_path}/samgr/interfaces/innerkits/samgr_proxy/include", 25 "mock/include", 26 ] 27 28 public_configs = 29 [ "${ability_runtime_services_path}/abilitymgr:abilityms_config" ] 30 31 sources = [ "ui_ability_lifecycle_manager_test.cpp" ] 32 33 deps = [ 34 "${ability_runtime_innerkits_path}/ability_manager:ability_start_setting", 35 "${ability_runtime_innerkits_path}/app_manager:app_manager", 36 "${ability_runtime_native_path}/ability/native:abilitykit_native", 37 "${ability_runtime_services_path}/abilitymgr:abilityms", 38 "${ability_runtime_services_path}/common:perm_verification", 39 "${ability_runtime_test_path}/unittest:abilityms_test_source", 40 "//third_party/googletest:gmock_main", 41 "//third_party/googletest:gtest_main", 42 ] 43 44 external_deps = [ 45 "ability_base:session_info", 46 "ability_base:want", 47 "ability_base:zuri", 48 "bundle_framework:appexecfwk_base", 49 "bundle_framework:appexecfwk_core", 50 "c_utils:utils", 51 "dsoftbus:softbus_client", 52 "ffrt:libffrt", 53 "init:libbeget_proxy", 54 "init:libbegetutil", 55 "ipc:ipc_core", 56 "napi:ace_napi", 57 "safwk:system_ability_fwk", 58 "samgr:samgr_proxy", 59 "window_manager:scene_session", 60 ] 61 62 if (background_task_mgr_continuous_task_enable) { 63 external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] 64 } 65} 66 67group("unittest") { 68 testonly = true 69 70 deps = [ ":ui_ability_lifecycle_manager_test" ] 71} 72