• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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("../../../../dsoftbus.gni")
16
17module_output_path = "dsoftbus/LNN"
18dsoftbus_root_path = "../../../.."
19
20ohos_unittest("LNNConnAddrUtilsTest") {
21  module_out_path = module_output_path
22  sources = [ "lnn_bus_center_utils_test.cpp" ]
23  include_dirs = [
24    "$dsoftbus_root_path/core/bus_center/utils/include",
25    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
26    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
27    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
28    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
29    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/sync_info/include",
30    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
31    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
32    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
33    "$dsoftbus_root_path/core/bus_center/lnn/disc_mgr/include",
34    "$dsoftbus_root_path/core/bus_center/monitor/include",
35    "$dsoftbus_root_path/core/common/include",
36    "$dsoftbus_root_path/adapter/common/include",
37    "$dsoftbus_root_path/core/connection/interface",
38    "$dsoftbus_root_path/core/connection/p2p/interface",
39    "$dsoftbus_root_path/core/connection/p2p/common/include",
40    "$dsoftbus_root_path/core/authentication/interface",
41    "$dsoftbus_root_path/core/bus_center/interface",
42    "$dsoftbus_root_path/core/bus_center/utils/include",
43    "$dsoftbus_root_path/interfaces/kits/bus_center",
44    "$dsoftbus_root_path/interfaces/kits/common",
45    "$dsoftbus_root_path/core/adapter/bus_center/include",
46    "//commonlibrary/c_utils/base/include",
47    "//third_party/cJSON",
48    "unittest/common/",
49    "$dsoftbus_root_path/core/connection/manager",
50    "$dsoftbus_root_path/adapter/common/bus_center/include/",
51    "$dsoftbus_root_path/core/discovery/manager/include",
52    "$dsoftbus_root_path/core/discovery/interface",
53    "$dsoftbus_root_path/interfaces/kits/discovery",
54    "$dsoftbus_root_path/core/bus_center/service/include",
55    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
56  ]
57  deps = [
58    "$dsoftbus_root_path/adapter:softbus_adapter",
59    "$dsoftbus_root_path/core/common:softbus_utils",
60    "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log",
61    "$dsoftbus_root_path/core/frame:softbus_server",
62    "//third_party/googletest:gmock",
63    "//third_party/googletest:gtest_main",
64  ]
65  if (is_standard_system) {
66    external_deps = [
67      "c_utils:utils",
68      "device_auth:deviceauth_sdk",
69      "hilog:libhilog",
70    ]
71  } else {
72    external_deps = [
73      "c_utils:utils",
74      "hilog:libhilog",
75      "huks:libhukssdk",
76    ]
77  }
78}
79
80group("unittest") {
81  testonly = true
82  deps = [ ":LNNConnAddrUtilsTest" ]
83}
84