• 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 = "aafwk_standard/mstabilitymgrservice"
18
19ohos_moduletest("IpcAbilitySchedulerModuleTest") {
20  module_out_path = module_output_path
21
22  include_dirs = [
23    "//third_party/jsoncpp/include",
24    "//foundation/aafwk/standard/interfaces/innerkits/dataobs_manager/include",
25  ]
26
27  sources = [
28    "${services_path}/abilitymgr/src/ability_scheduler_proxy.cpp",
29    "${services_path}/abilitymgr/src/ability_scheduler_stub.cpp",
30    "${services_path}/abilitymgr/src/caller_info.cpp",
31    "${services_path}/abilitymgr/src/lifecycle_state_info.cpp",
32    "//foundation/aafwk/standard/frameworks/kits/content/cpp/src/ohos/aafwk/content/pac_map.cpp",
33    "//foundation/aafwk/standard/services/abilitymgr/src/aafwk_dummy_configuration.cpp",
34    "//foundation/appexecfwk/standard/common/log/src/app_log_wrapper.cpp",
35  ]
36
37  sources += [ "ipc_ability_scheduler_module_test.cpp" ]
38
39  configs = [
40    "${services_path}/test:aafwk_module_test_config",
41    "//foundation/appexecfwk/standard/common:appexecfwk_common_config",
42    "//foundation/aafwk/standard/interfaces/innerkits/want:want_public_config",
43  ]
44  cflags = []
45  if (target_cpu == "arm") {
46    cflags += [ "-DBINDER_IPC_32BIT" ]
47  }
48  deps = [
49    "${innerkits_path}/want:want",
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/base:base",
53    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
54    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
55    "//third_party/googletest:gmock_main",
56    "//third_party/googletest:gtest_main",
57    "//third_party/jsoncpp:jsoncpp",
58    "//utils/native/base:utilsbase",
59  ]
60
61  external_deps = [
62    "hiviewdfx_hilog_native:libhilog",
63    "ipc:ipc_core",
64    "native_appdatamgr:native_appdatafwk",
65    "native_appdatamgr:native_dataability",
66    "native_appdatamgr:native_rdb",
67  ]
68}
69
70group("moduletest") {
71  testonly = true
72
73  deps = [ ":IpcAbilitySchedulerModuleTest" ]
74}
75