• 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/communication/dsoftbus/dsoftbus.gni")
16
17module_output_path = "dsoftbus_standard/LNN"
18
19ohos_unittest("LNNTest") {
20  module_out_path = module_output_path
21  sources = [
22    "unittest/ledger_lane_hub_test.cpp",
23    "unittest/net_builder_test.cpp",
24  ]
25
26  include_dirs = [
27    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
28    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
29    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
30    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
31    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/sync_info/include",
32    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
33    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
34    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
35    "$dsoftbus_root_path/core/bus_center/monitor/include",
36    "$dsoftbus_root_path/core/common/include",
37    "$dsoftbus_root_path/adapter/common/include",
38    "$dsoftbus_root_path/core/connection/interface",
39    "$dsoftbus_root_path/core/authentication/interface",
40    "$dsoftbus_root_path/core/bus_center/interface",
41    "$dsoftbus_root_path/core/bus_center/utils/include",
42    "$dsoftbus_root_path/interfaces/kits/bus_center",
43    "$dsoftbus_root_path/interfaces/kits/common",
44    "$dsoftbus_root_path/core/adapter/bus_center/include",
45    "//utils/native/base/include",
46    "//third_party/cJSON",
47    "unittest/common/",
48    "$dsoftbus_root_path/core/connection/manager",
49    "$dsoftbus_root_path/adapter/common/bus_center/include/",
50    "$dsoftbus_root_path/core/discovery/manager/include",
51    "$dsoftbus_root_path/core/discovery/interface",
52    "$dsoftbus_root_path/interfaces/kits/discovery",
53  ]
54
55  deps = [
56    "$dsoftbus_root_path/adapter:softbus_adapter",
57    "$dsoftbus_root_path/core/common:softbus_utils",
58    "$dsoftbus_root_path/core/frame:softbus_server",
59    "//base/security/deviceauth/services:deviceauth_sdk",
60    "//third_party/googletest:gtest_main",
61    "//utils/native/base:utils",
62  ]
63
64  if (is_standard_system) {
65    external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
66  } else {
67    external_deps = [ "hilog:libhilog" ]
68  }
69}
70
71group("unittest") {
72  testonly = true
73  deps = [ ":LNNTest" ]
74}
75