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("../../../../core/common/dfx/dsoftbus_dfx.gni")
18import("../../../../dsoftbus.gni")
19import("../../../utils/utils.gni")
20
21module_output_path = "dsoftbus/discovery"
22
23ohos_unittest("DiscClientOnDeviceFoundTest") {
24  module_out_path = module_output_path
25  sources = [
26    "$dsoftbus_root_path/core/bus_center/ipc/standard/src/lnn_bus_center_ipc.cpp",
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/meta_node/include",
40    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
41    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
42    "$dsoftbus_root_path/core/bus_center/service/include",
43    "$dsoftbus_root_path/core/bus_center/utils/include",
44    "$dsoftbus_root_path/core/common/include",
45    "$dsoftbus_root_path/core/connection/interface",
46    "$dsoftbus_root_path/core/discovery/interface",
47    "$dsoftbus_root_path/core/discovery/manager/include",
48    "$dsoftbus_root_path/interfaces/inner_kits/lnn",
49    "$dsoftbus_root_path/interfaces/kits/bus_center",
50    "$dsoftbus_root_path/interfaces/kits/common",
51    "$dsoftbus_root_path/interfaces/kits/discovery",
52    "$dsoftbus_root_path/interfaces/kits/transport",
53  ]
54
55  deps = [ "$dsoftbus_dfx_path/log:softbus_dfx_log" ]
56
57  external_deps = [
58    "c_utils:utils",
59    "googletest:gmock",
60    "googletest:gtest_main",
61    "hilog:libhilog",
62  ]
63}
64
65group("unittest") {
66  testonly = true
67  deps = [ ":DiscClientOnDeviceFoundTest" ]
68}
69