• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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/lite/config/component/lite_component.gni")
15import("//build/ohos.gni")
16import("//build/test.gni")
17import("../../../../dsoftbus.gni")
18import("../../../utils/utils.gni")
19
20module_output_path = "dsoftbus/discovery"
21
22ohos_unittest("DiscClientOnDeviceFoundTest") {
23  module_out_path = module_output_path
24  sources = [
25    "$dsoftbus_root_path/core/bus_center/ipc/standard/src/lnn_bus_center_ipc.cpp",
26    "$dsoftbus_root_path/core/frame/common/src/softbus_ddos.c",
27    "disc_client_on_device_found_test.cpp",
28  ]
29
30  include_dirs = [
31    "$dsoftbus_root_path/adapter/common/include",
32    "$dsoftbus_root_path/core/authentication/interface",
33    "$dsoftbus_root_path/core/bus_center/interface",
34    "$dsoftbus_root_path/core/bus_center/ipc/include",
35    "$dsoftbus_root_path/core/bus_center/ipc/standard/include",
36    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
37    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
38    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/time_sync/include",
39    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
40    "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include",
41    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
42    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
43    "$dsoftbus_root_path/core/bus_center/service/include",
44    "$dsoftbus_root_path/core/bus_center/utils/include",
45    "$dsoftbus_root_path/core/common/include",
46    "$dsoftbus_root_path/core/connection/interface",
47    "$dsoftbus_root_path/core/discovery/interface",
48    "$dsoftbus_root_path/core/discovery/manager/include",
49    "$dsoftbus_root_path/core/frame/common/include",
50    "$dsoftbus_root_path/interfaces/inner_kits/lnn",
51    "$dsoftbus_root_path/interfaces/kits/bus_center",
52    "$dsoftbus_root_path/interfaces/kits/common",
53    "$dsoftbus_root_path/interfaces/kits/discovery",
54    "$dsoftbus_root_path/interfaces/kits/transport",
55  ]
56
57  deps = [
58    "$dsoftbus_dfx_path:softbus_dfx",
59    "$dsoftbus_root_path/adapter:softbus_adapter",
60    "$dsoftbus_root_path/core/common:softbus_utils",
61  ]
62
63  external_deps = [
64    "c_utils:utils",
65    "googletest:gmock",
66    "googletest:gtest_main",
67    "hilog:libhilog",
68    "ipc:ipc_single",
69  ]
70}
71
72group("unittest") {
73  testonly = true
74  deps = [ ":DiscClientOnDeviceFoundTest" ]
75}
76