1# Copyright (c) 2021 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/aafwk/standard/aafwk.gni") 16import("//foundation/aafwk/standard/services/abilitymgr/abilitymgr.gni") 17 18module_output_path = "aafwk_standard/mstabilitymgrservice" 19 20ohos_moduletest("PandingWantMgrTest") { 21 module_out_path = module_output_path 22 23 include_dirs = [ 24 "//foundation/aafwk/standard/services/test/mock/include", 25 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 26 "//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include/", 27 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include/appmg", 28 "//foundation/appexecfwk/standard/kits/appkit/native/app/include", 29 "//base/notification/ns_standard/interfaces/innerkits/wantagent/include", 30 "//third_party/jsoncpp/include", 31 "//base/notification/ans_standard/interfaces/innerkits/wantagent/include", 32 ] 33 34 sources = abilityms_files 35 sources += [ 36 "//base/notification/ans_standard/frameworks/wantagent/src/completed_dispatcher.cpp", 37 "//base/notification/ans_standard/frameworks/wantagent/src/pending_want.cpp", 38 "//base/notification/ans_standard/frameworks/wantagent/src/trigger_info.cpp", 39 "//base/notification/ans_standard/frameworks/wantagent/src/want_agent.cpp", 40 "//base/notification/ans_standard/frameworks/wantagent/src/want_agent_helper.cpp", 41 "//base/notification/ans_standard/frameworks/wantagent/src/want_agent_info.cpp", 42 "//base/notification/ans_standard/frameworks/wantagent/src/want_agent_log_wrapper.cpp", 43 "//foundation/aafwk/standard/services/abilitymgr/src/ability_manager_client.cpp", 44 "//foundation/aafwk/standard/services/abilitymgr/test/mock/libs/sa_mgr/src/sa_mgr_client_mock.cpp", 45 "//foundation/aafwk/standard/services/test/mock/src/mock_app_mgr_client.cpp", 46 "//foundation/aafwk/standard/services/test/mock/src/mock_bundle_mgr.cpp", 47 "//foundation/appexecfwk/standard/common/log/src/app_log_wrapper.cpp", 48 "panding_want_manager_test.cpp", 49 ] 50 51 configs = [ "${services_path}/abilitymgr:abilityms_config" ] 52 cflags = [] 53 if (target_cpu == "arm") { 54 cflags += [ "-DBINDER_IPC_32BIT" ] 55 } 56 57 deps = [ 58 "${innerkits_path}/want:want", 59 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 60 "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes", 61 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 62 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core", 63 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", 64 "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri", 65 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 66 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 67 "//third_party/googletest:gmock_main", 68 "//third_party/googletest:gtest_main", 69 "//third_party/jsoncpp:jsoncpp", 70 "//utils/native/base:utils", 71 ] 72 73 external_deps = [ 74 "ces_standard:cesfwk_core", 75 "ces_standard:cesfwk_innerkits", 76 "hiviewdfx_hilog_native:libhilog", 77 "ipc:ipc_core", 78 "native_appdatamgr:native_appdatafwk", 79 "native_appdatamgr:native_dataability", 80 "native_appdatamgr:native_rdb", 81 ] 82} 83 84group("moduletest") { 85 testonly = true 86 87 deps = [ ":PandingWantMgrTest" ] 88} 89