• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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.
13import("//build/test.gni")
14import("//foundation/distributeddatamgr/udmf/udmf.gni")
15
16module_output_path = "udmf/innerkitsImpl"
17
18###############################################################################
19config("module_private_config") {
20  include_dirs = [
21    "${udmf_interfaces_path}/innerkits/client",
22    "${udmf_interfaces_path}/innerkits/common",
23    "${udmf_interfaces_path}/innerkits/data",
24    "${udmf_framework_path}/common",
25    "${udmf_framework_path}/innerkits/service",
26  ]
27}
28
29common_deps = [ "${udmf_interfaces_path}/innerkits:udmf_client" ]
30
31common_external_deps = [
32  "access_token:libaccesstoken_sdk",
33  "access_token:libnativetoken",
34  "access_token:libtoken_setproc",
35  "bundle_framework:appexecfwk_core",
36  "c_utils:utils",
37  "hilog:libhilog",
38  "ipc:ipc_core",
39  "kv_store:distributeddata_inner",
40  "samgr:samgr_proxy",
41]
42
43ohos_unittest("UdmfClientTest") {
44  module_out_path = module_output_path
45
46  sources = [
47    "custom_utd_json_parser_test.cpp",
48    "custom_utd_store_test.cpp",
49    "graph_test.cpp",
50    "udmf_client_test.cpp",
51    "utd_client_test.cpp",
52  ]
53
54  configs = [ ":module_private_config" ]
55
56  deps = common_deps
57
58  external_deps = common_external_deps
59}
60
61###############################################################################
62group("unittest") {
63  testonly = true
64
65  deps = [ ":UdmfClientTest" ]
66}
67###############################################################################
68