• 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("../../../app_domain_verify.gni")
16
17config("module_private_config") {
18  visibility = [ ":*" ]
19  configs = [ "//build/config/compiler:exceptions" ]
20  include_dirs = [
21    "${app_domain_verify_frameworks_app_details_rdb_path}/include/",
22    "${app_domain_verify_service_path}/include/manager/core/",
23    "${app_domain_verify_service_path}/include/manager/filter",
24    "${app_domain_verify_common_path}/include",
25  ]
26}
27
28module_output_path = "app_domain_verify/app_domain_verify"
29ohos_unittest("app_details_rdb_data_manager_test") {
30  module_out_path = module_output_path
31
32  sources = [
33    "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_meta_item.cpp",
34    "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_rdb_data_manager.cpp",
35    "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_rdb_item.cpp",
36    "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_rdb_open_callback.cpp",
37    "${app_domain_verify_service_path}/src/manager/core/app_details_data_mgr.cpp",
38    "${app_domain_verify_service_path}/src/manager/filter/app_details_filter.cpp",
39    "app_details_rdb_data_manager_test.cpp",
40  ]
41
42  configs = [ ":module_private_config" ]
43  external_deps = [
44    "ability_base:want",
45    "ability_base:zuri",
46    "bundle_framework:appexecfwk_base",
47    "c_utils:utils",
48    "eventhandler:libeventhandler",
49    "ffrt:libffrt",
50    "googletest:gmock_main",
51    "googletest:gtest_main",
52    "hilog:libhilog",
53    "hisysevent:libhisysevent",
54    "image_framework:image_native",
55    "init:libbegetutil",
56    "ipc:ipc_core",
57    "netstack:http_client",
58    "os_account:os_account_innerkits",
59    "relational_store:native_rdb",
60    "samgr:samgr_proxy",
61  ]
62
63  defines = [ "API_EXPORT=__attribute__((visibility (\"default\")))" ]
64  deps = [
65    "${app_domain_verify_client_path}:app_domain_verify_agent_client",
66    "${app_domain_verify_client_path}:app_domain_verify_mgr_client",
67    "${app_domain_verify_common_path}:app_domain_verify_common",
68    "${app_domain_verify_frameworks_common_path}:app_domain_verify_frameworks_common",
69    "${app_domain_verify_frameworks_common_path}:app_domain_verify_frameworks_common",
70    "${app_domain_verify_frameworks_extension_path}:app_domain_verify_extension_framework",
71    "${app_domain_verify_frameworks_verifier_path}:app_domain_verify_agent_verifier",
72  ]
73}
74