• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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.
13import("//build/lite/config/component/lite_component.gni")
14import("//build/ohos.gni")
15import("//build/test.gni")
16import("//foundation/communication/dsoftbus/dsoftbus.gni")
17
18dsoftbus_root_path = "../../../.."
19module_output_path = "dsoftbus/connection/proxy"
20
21ohos_unittest("ProxyChannelManagerTest") {
22    module_out_path = module_output_path
23
24    include_dirs = [
25    "$dsoftbus_root_path/core/adapter/br/include",
26    "$softbus_adapter_common/net/bluetooth/include",
27    "$dsoftbus_root_path/core/connection/proxy",
28    "$dsoftbus_root_path/test/core/connection/proxy",
29    "$dsoftbus_root_path/test/core/connection/proxy/mock",
30    "$dsoftbus_root_path/core/connection/common/include",
31    "$dsoftbus_root_path/core/common/include",
32    "$softbus_adapter_common/include",
33    "$dsoftbus_root_path/interfaces/kits/common",
34    "$dsoftbus_root_path/interfaces/kits/bus_center",
35    "$dsoftbus_root_path/adapter/common/include",
36    "$dsoftbus_root_path/dfx/interface/include",
37  ]
38
39  deps = [
40    "$dsoftbus_root_path/adapter:softbus_adapter",
41    "$dsoftbus_root_path/core/common:softbus_utils",
42    "$dsoftbus_dfx_path:softbus_dfx",
43  ]
44
45  sources = [
46    "$dsoftbus_root_path/core/connection/proxy/proxy_manager.c",
47    "$dsoftbus_root_path/core/connection/proxy/proxy_connection.c",
48    "$dsoftbus_root_path/core/connection/common/src/softbus_conn_common.c",
49    "$dsoftbus_root_path/tests/core/connection/proxy/mock/proxy_manager_mock.cpp",
50    "proxy_manager_test.cpp",
51  ]
52
53  external_deps = [
54    "c_utils:utils",
55    "googletest:gmock_main",
56    "hilog:libhilog",
57    "bluetooth:btframework",
58  ]
59}