• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
16
17module_output_path = "ability_runtime/mstabilitymgrservice"
18
19ohos_moduletest("ability_manager_service_dump_test") {
20  module_out_path = module_output_path
21
22  include_dirs = [
23    "//foundation/aafwk/standard/services/test/mock/include",
24    "${services_path}/abilitymgr/test/mock/libs/system_ability_mock",
25    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
26    "//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include/",
27    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/include/appmgr",
28    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include",
29  ]
30
31  sources = [
32    "//foundation/aafwk/standard/services/test/mock/src/mock_app_mgr_client.cpp",
33    "ability_manager_service_dump_test.cpp",
34  ]
35
36  configs = [ "${services_path}/abilitymgr:abilityms_config" ]
37
38  cflags = []
39  if (target_cpu == "arm") {
40    cflags += [ "-DBINDER_IPC_32BIT" ]
41  }
42
43  deps = [
44    "${innerkits_path}/want:want",
45    "${services_path}/abilitymgr/test:abilityms_test_source",
46    "${services_path}/abilitymgr/test/mock/libs/aakit:aakit_mock",
47    "${services_path}/abilitymgr/test/mock/libs/appexecfwk_core:appexecfwk_appmgr_mock",
48    "${services_path}/abilitymgr/test/mock/libs/appexecfwk_core:appexecfwk_bundlemgr_mock",
49    "${services_path}/common:perm_verification",
50    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
51    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
52    "//foundation/aafwk/standard/interfaces/innerkits/app_manager:app_manager",
53    "//foundation/aafwk/standard/services/abilitymgr:abilityms",
54    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
55    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
56    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
57    "//third_party/googletest:gmock_main",
58    "//third_party/googletest:gtest_main",
59    "//third_party/libpng:libpng",
60    "//utils/native/base:utils",
61  ]
62
63  external_deps = [
64    "device_manager_base:devicemanagersdk",
65    "dsoftbus_standard:softbus_client",
66    "hiviewdfx_hilog_native:libhilog",
67    "ipc:ipc_core",
68  ]
69}
70
71group("moduletest") {
72  testonly = true
73
74  deps = [ ":ability_manager_service_dump_test" ]
75}
76