1# Copyright (c) 2025 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") 16 17module_output_path = "ability_runtime/ability_runtime/abilitymgr" 18 19ohos_unittest("free_install_manager_third_test") { 20 module_out_path = module_output_path 21 22 include_dirs = [ "${ability_runtime_test_path}/mock/services_abilitymgr_test/libs/appexecfwk_core/include" ] 23 24 sources = [ "free_install_manager_third_test.cpp" ] 25 26 configs = [ "${ability_runtime_services_path}/abilitymgr:abilityms_config" ] 27 28 sanitize = { 29 cfi = true 30 cfi_cross_dso = true 31 debug = false 32 blocklist = "../../../test/cfi_blocklist.txt" 33 } 34 35 cflags = [ 36 "-Dprivate=public", 37 "-Dprotected=public", 38 ] 39 40 deps = [ 41 "${ability_runtime_innerkits_path}/app_manager:app_manager", 42 "${ability_runtime_innerkits_path}/deps_wrapper:ability_deps_wrapper", 43 "${ability_runtime_services_path}/abilitymgr:abilityms", 44 "${ability_runtime_services_path}/common:perm_verification", 45 ] 46 47 external_deps = [ 48 "ability_base:session_info", 49 "ability_base:want", 50 "access_token:libaccesstoken_sdk", 51 "bundle_framework:appexecfwk_base", 52 "bundle_framework:appexecfwk_core", 53 "c_utils:utils", 54 "common_event_service:cesfwk_innerkits", 55 "eventhandler:libeventhandler", 56 "ffrt:libffrt", 57 "googletest:gmock_main", 58 "googletest:gtest_main", 59 "hilog:libhilog", 60 "hisysevent:libhisysevent", 61 "init:libbegetutil", 62 "ipc:ipc_core", 63 "jsoncpp:jsoncpp", 64 "safwk:api_cache_manager", 65 ] 66 67 if (ability_runtime_graphics) { 68 external_deps += [ 69 "window_manager:libwm", 70 "window_manager:libwsutils", 71 "window_manager:scene_session", 72 ] 73 } 74} 75 76group("unittest") { 77 testonly = true 78 deps = [ ":free_install_manager_third_test" ] 79} 80