• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024 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/bundlemanager/app_domain_verify/app_domain_verify.gni")
16
17config("module_private_config") {
18  visibility = [ ":*" ]
19  configs = [ "//build/config/compiler:exceptions" ]
20  include_dirs = [
21    "${app_domain_verify_client_path}/include",
22    "${app_domain_verify_service_path}/include",
23    "${app_domain_verify_service_path}/include/agent/core",
24    "${app_domain_verify_service_path}/include/agent/zidl",
25    "${app_domain_verify_service_path}/include/manager/rdb",
26    "${app_domain_verify_service_path}/include/manager/core",
27    "${app_domain_verify_service_path}/include/manager/constant",
28    "${app_domain_verify_service_path}/include/manager/zidl",
29    "${app_domain_verify_service_path}/include/manager/permission",
30    "${app_domain_verify_service_path}/include/manager/deferred_link",
31    "${app_domain_verify_common_path}/include",
32    "${app_domain_verify_frameworks_common_path}/include",
33    "${app_domain_verify_frameworks_common_path}/include/utils",
34    "${app_domain_verify_frameworks_common_path}/include/bms",
35    "${app_domain_verify_frameworks_extension_path}/include",
36    "${app_domain_verify_test_path}/mock/include",
37    "${app_domain_verify_frameworks_common_path}/include/dfx",
38  ]
39}
40
41module_output_path = "app_domain_verify/app_domain_verify"
42ohos_unittest("deferred_link_test") {
43  module_out_path = module_output_path
44
45  sources = [
46    "${app_domain_verify_frameworks_common_path}/src/bms/bundle_info_query.cpp",
47    "${app_domain_verify_service_path}/src/manager/deferred_link/deferred_link_mgr.cpp",
48    "${app_domain_verify_test_path}/mock/src/mock_bundle_manager.cpp",
49    "deferred_link_mgr_test.cpp",
50    "mock_ability_filter.cpp",
51  ]
52  configs = [ ":module_private_config" ]
53  external_deps = [
54    "ability_base:want",
55    "ability_base:zuri",
56    "access_token:libaccesstoken_sdk",
57    "access_token:libnativetoken_shared",
58    "access_token:libtokenid_sdk",
59    "access_token:libtokensetproc_shared",
60    "bundle_framework:appexecfwk_base",
61    "bundle_framework:appexecfwk_core",
62    "c_utils:utils",
63    "eventhandler:libeventhandler",
64    "ffrt:libffrt",
65    "googletest:gmock_main",
66    "googletest:gtest_main",
67    "hilog:libhilog",
68    "hisysevent:libhisysevent",
69    "image_framework:image_native",
70    "init:libbegetutil",
71    "ipc:ipc_core",
72    "netstack:http_client",
73    "os_account:os_account_innerkits",
74    "relational_store:native_rdb",
75    "samgr:samgr_proxy",
76  ]
77
78  defines = [ "API_EXPORT=__attribute__((visibility (\"default\")))" ]
79  deps = []
80}
81