• 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.
13
14import("//build/test.gni")
15import("../../../../dsoftbus.gni")
16
17module_output_path = "dsoftbus/bus_center"
18
19ohos_unittest("BusCenterDecisionTest") {
20  module_out_path = module_output_path
21  sources = [ "unittest/bus_center_decision_center_test.cpp" ]
22
23  include_dirs = [
24    "$dsoftbus_root_path/core/bus_center/service/include",
25    "$dsoftbus_root_path/core/common/include",
26    "$dsoftbus_root_path/core/common/dfx/interface/include",
27    "$dsoftbus_root_path/core/connection/interface",
28    "$dsoftbus_root_path/core/bus_center/interface",
29    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
30    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
31    "$dsoftbus_root_path/adapter/common/include",
32    "$dsoftbus_root_path/core/common/include",
33    "$dsoftbus_root_path/interfaces/kits/bus_center",
34    "$dsoftbus_root_path/adapter/common/bus_center/include",
35    "$dsoftbus_root_path/adapter/common/bus_center/wlan",
36    "$dsoftbus_root_path/core/bus_center/utils/include",
37    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
38    "$dsoftbus_root_path/core/discovery/manager/include",
39    "$dsoftbus_root_path/core/discovery/interface",
40    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
41    "$dsoftbus_root_path/core/authentication/interface",
42    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
43  ]
44
45  deps = [
46    "$dsoftbus_root_path/adapter:softbus_adapter",
47    "$dsoftbus_root_path/core/common:softbus_utils",
48    "$dsoftbus_root_path/core/frame:softbus_server",
49    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
50    "//third_party/bounds_checking_function:libsec_shared",
51    "//third_party/googletest:gmock_main",
52    "//third_party/googletest:gtest_main",
53  ]
54
55  if (is_standard_system) {
56    external_deps = [
57      "c_utils:utils",
58      "hilog:libhilog",
59    ]
60  } else {
61    external_deps = [
62      "c_utils:utils",
63      "hilog:libhilog",
64    ]
65  }
66}
67
68group("unittest") {
69  testonly = true
70  deps = [ ":BusCenterDecisionTest" ]
71}
72