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