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. 13import("//build/test.gni") 14import("//foundation/aafwk/standard/aafwk.gni") 15 16module_output_path = "aafwk_standard/mstabilitymgrservice" 17 18ohos_moduletest("dump_module_test") { 19 module_out_path = module_output_path 20 21 include_dirs = [ 22 "${services_path}/abilitymgr/test/mock/libs/system_ability_mock", 23 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 24 "//foundation/aafwk/standard/services/test/moduletest/module_test_dump_util/", 25 "//foundation/aafwk/standard/services/test/mock/include", 26 ] 27 28 sources = [ 29 "${services_path}/abilitymgr/test/unittest/phone/ability_with_applications_test/mock_ability_scheduler.cpp", 30 "//foundation/aafwk/standard/services/abilitymgr/src/app_scheduler.cpp", 31 "//foundation/aafwk/standard/services/test/moduletest/module_test_dump_util/module_test_dump_util.cpp", 32 "dump_module_test.cpp", 33 ] 34 35 configs = [ 36 "${services_path}/abilitymgr:abilityms_config", 37 "${services_path}/abilitymgr/test/mock:aafwk_mock_config", 38 "//foundation/aafwk/standard/services/test/moduletest/module_test_dump_util:module_test_dump_util_config", 39 ] 40 cflags = [] 41 if (target_cpu == "arm") { 42 cflags += [ "-DBINDER_IPC_32BIT" ] 43 } 44 deps = [ 45 "${innerkits_path}/want:want", 46 "${services_path}/abilitymgr/test:abilityms_test_source", 47 "${services_path}/abilitymgr/test/mock/appmgr_test_service:appmgr_test_service", 48 "${services_path}/abilitymgr/test/mock/libs/appexecfwk_core:appexecfwk_appmgr_mock", 49 "${services_path}/abilitymgr/test/mock/libs/appexecfwk_core:appexecfwk_bundlemgr_mock", 50 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 51 "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes", 52 "//foundation/aafwk/standard/services/test/moduletest/module_test_dump_util:module_test_dump_util_lib", 53 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 54 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", 55 "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri", 56 "//third_party/googletest:gmock_main", 57 "//third_party/googletest:gtest_main", 58 "//utils/native/base:utils", 59 ] 60 61 external_deps = [ 62 "hiviewdfx_hilog_native:libhilog", 63 "ipc:ipc_core", 64 ] 65} 66 67group("moduletest") { 68 testonly = true 69 70 deps = [ ":dump_module_test" ] 71} 72