• 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.
13
14import("//build/test.gni")
15import("../../../../dsoftbus.gni")
16
17module_output_path = "dsoftbus/soft_bus/connection"
18
19ohos_unittest("ConnServerProxyTest") {
20  sanitize = {
21    cfi = true
22    cfi_cross_dso = true
23    debug = true
24  }
25  module_out_path = module_output_path
26  sources = [ "connection_server_proxy_test.cpp" ]
27
28  include_dirs = [
29    "$dsoftbus_root_path/sdk/connection/ipc/include",
30    "$dsoftbus_root_path/interfaces/kits/connection",
31  ]
32
33  deps = [
34    "$dsoftbus_dfx_path:softbus_dfx",
35    "$dsoftbus_root_path/core/common:softbus_utils",
36    "$dsoftbus_root_path/tests/sdk:softbus_client_static",
37  ]
38  external_deps = [
39    "c_utils:utils",
40    "hilog:libhilog",
41  ]
42}
43
44ohos_unittest("ConnServerProxyStandardTest") {
45  sanitize = {
46    cfi = true
47    cfi_cross_dso = true
48    debug = true
49  }
50  module_out_path = module_output_path
51  sources = [ "connection_server_proxy_standard_test.cpp" ]
52
53  include_dirs = [
54    "$dsoftbus_root_path/sdk/connection/ipc/standard/include",
55    "$dsoftbus_root_path/core/frame/standard/init/include",
56    "$dsoftbus_root_path/interfaces/kits/connection",
57  ]
58
59  deps = [
60    "$dsoftbus_dfx_path:softbus_dfx",
61    "$dsoftbus_root_path/core/common:softbus_utils",
62    "$dsoftbus_root_path/tests/sdk:softbus_client_static",
63  ]
64  external_deps = [
65    "c_utils:utils",
66    "hilog:libhilog",
67    "ipc:ipc_single",
68  ]
69}
70
71group("unittest") {
72  testonly = true
73  deps = [
74    ":ConnServerProxyStandardTest",
75    ":ConnServerProxyTest",
76  ]
77}
78