1# Copyright (c) 2021-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") 16import( 17 "//foundation/ability/ability_runtime/services/abilitymgr/abilitymgr.gni") 18 19module_output_path = "ability_runtime/ability_runtime/mstabilitymgrservice" 20 21ohos_moduletest("PandingWantMgrTest") { 22 module_out_path = module_output_path 23 cflags_cc = [] 24 include_dirs = [ 25 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime", 26 "${ability_runtime_test_path}/moduletest/mock/include", 27 "${ability_runtime_path}/interfaces/kits/native/appkit/app", 28 ] 29 30 sources = [ 31 "${ability_runtime_test_path}/mock/services_abilitymgr_test/libs/sa_mgr/src/sa_mgr_client_mock.cpp", 32 "${ability_runtime_test_path}/moduletest/mock/src/mock_app_mgr_client.cpp", 33 "${ability_runtime_test_path}/moduletest/mock/src/mock_bundle_mgr.cpp", 34 "panding_want_manager_test.cpp", 35 ] 36 37 configs = [ "${ability_runtime_services_path}/abilitymgr:abilityms_config" ] 38 cflags = [] 39 if (target_cpu == "arm") { 40 cflags += [ "-DBINDER_IPC_32BIT" ] 41 } 42 43 deps = [ 44 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 45 "${ability_runtime_innerkits_path}/app_manager:app_manager", 46 "${ability_runtime_innerkits_path}/wantagent:wantagent_innerkits", 47 "${ability_runtime_native_path}/ability/native:abilitykit_native", 48 "${ability_runtime_native_path}/appkit:app_context", 49 "${ability_runtime_services_path}/common:perm_verification", 50 ] 51 52 external_deps = [ 53 "ability_base:base", 54 "ability_base:want", 55 "ability_base:zuri", 56 "access_token:libaccesstoken_sdk", 57 "bundle_framework:appexecfwk_core", 58 "c_utils:utils", 59 "common_event_service:cesfwk_core", 60 "common_event_service:cesfwk_innerkits", 61 "dsoftbus:softbus_client", 62 "ffrt:libffrt", 63 "googletest:gmock_main", 64 "googletest:gtest_main", 65 "hicollie:libhicollie", 66 "hilog:libhilog", 67 "hisysevent:libhisysevent", 68 "hitrace:hitrace_meter", 69 "ipc:ipc_core", 70 "jsoncpp:jsoncpp", 71 "napi:ace_napi", 72 "relational_store:native_appdatafwk", 73 "relational_store:native_dataability", 74 "relational_store:native_rdb", 75 "safwk:system_ability_fwk", 76 "samgr:samgr_proxy", 77 ] 78 79 if (background_task_mgr_continuous_task_enable) { 80 external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] 81 } 82 83 if (ability_runtime_graphics) { 84 external_deps += [ 85 "i18n:intl_util", 86 "image_framework:image_native", 87 ] 88 } 89 if (ability_runtime_upms) { 90 deps += [ 91 "${ability_runtime_innerkits_path}/uri_permission:uri_permission_mgr", 92 ] 93 } 94} 95 96group("moduletest") { 97 testonly = true 98 # deps = [ ":PandingWantMgrTest" ] 99} 100