• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/appmgrservice"
18
19ohos_unittest("app_running_manager_fourth_test") {
20  module_out_path = module_output_path
21
22  include_dirs = [
23    "${ability_runtime_services_path}/appmgr/include",
24    "${ability_runtime_services_path}/abilitymgr/include",
25    "${ability_runtime_test_path}/mock/mock_appmgr_service/include/",
26    "${ability_runtime_test_path}/mock/services_appmgr_test/include/",
27  ]
28
29  configs = [ "${ability_runtime_services_path}/appmgr:appmgr_config" ]
30
31  sources = [ "app_running_manager_fourth_test.cpp" ]
32
33  deps = [
34    "${ability_runtime_innerkits_path}/app_manager:app_manager",
35    "${ability_runtime_innerkits_path}/deps_wrapper:ability_deps_wrapper",
36    "${ability_runtime_services_path}/abilitymgr:abilityms",
37    "${ability_runtime_services_path}/appmgr:libappms",
38    "${ability_runtime_services_path}/common:event_report",
39    "${ability_runtime_services_path}/common:perm_verification",
40    "${ability_runtime_services_path}/common:task_handler_wrap",
41  ]
42
43  external_deps = [
44    "ability_base:base",
45    "ability_base:configuration",
46    "ability_base:want",
47    "access_token:libaccesstoken_sdk",
48    "appspawn:appspawn_client",
49    "bundle_framework:appexecfwk_base",
50    "bundle_framework:appexecfwk_core",
51    "c_utils:utils",
52    "common_event_service:cesfwk_innerkits",
53    "ffrt:libffrt",
54    "googletest:gmock_main",
55    "googletest:gtest_main",
56    "hicollie:libhicollie",
57    "hilog:libhilog",
58    "hisysevent:libhisysevent",
59    "hitrace:hitrace_meter",
60    "init:libbeget_proxy",
61    "init:libbegetutil",
62    "ipc:ipc_core",
63    "kv_store:distributeddata_mgr",
64    "memory_utils:libmeminfo",
65    "safwk:system_ability_fwk",
66    "samgr:samgr_proxy",
67  ]
68
69  defines = []
70  if (ability_runtime_child_process) {
71    defines += [ "SUPPORT_CHILD_PROCESS" ]
72  }
73
74  if (ability_runtime_graphics) {
75    external_deps += [
76      "window_manager:libwm",
77      "window_manager:libwsutils",
78    ]
79    defines += [ "SUPPORT_SCREEN" ]
80  }
81  if (ability_runtime_upms) {
82    deps += [
83      "${ability_runtime_innerkits_path}/uri_permission:uri_permission_mgr",
84    ]
85  }
86}
87
88group("unittest") {
89  testonly = true
90
91  deps = [ ":app_running_manager_fourth_test" ]
92}
93