• 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/test.gni")
15import("../../../../dsoftbus.gni")
16
17module_output_path = "dsoftbus/transmission"
18
19ohos_unittest("TransSessionManagerTest") {
20  module_out_path = module_output_path
21  sources = [ "trans_session_manager_test.cpp" ]
22
23  include_dirs = [
24    "$dsoftbus_core_path/authentication/interface",
25
26    "$dsoftbus_core_path/bus_center/interface",
27    "$dsoftbus_core_path/bus_center/lnn/net_ledger/common/include",
28
29    "$dsoftbus_core_path/common/include",
30
31    "$dsoftbus_core_path/connection/interface",
32
33    "$dsoftbus_core_path/discovery/manager/include",
34    "$dsoftbus_core_path/discovery/interface",
35
36    "$dsoftbus_core_path/transmission/common/include",
37    "$dsoftbus_core_path/transmission/session/include",
38    "$dsoftbus_core_path/transmission/session/cpp/include",
39  ]
40
41  deps = [
42    "$dsoftbus_core_path/common:softbus_utils",
43    "$dsoftbus_core_path/frame:softbus_server",
44  ]
45
46  external_deps = [
47    "c_utils:utils",
48    "dsoftbus:softbus_client",
49    "hilog:libhilog",
50  ]
51}
52
53ohos_unittest("TransSessionServiceTest") {
54  module_out_path = module_output_path
55  sources = [ "trans_session_service_test.cpp" ]
56
57  include_dirs = [
58    "$dsoftbus_core_path/authentication/interface",
59
60    "$dsoftbus_core_path/bus_center/interface",
61    "$dsoftbus_core_path/bus_center/lnn/net_ledger/common/include",
62
63    "$dsoftbus_core_path/common/include",
64
65    "$dsoftbus_core_path/connection/interface",
66
67    "$dsoftbus_core_path/discovery/interface",
68    "$dsoftbus_core_path/discovery/manager/include",
69
70    "$dsoftbus_core_path/transmission/common/include",
71    "$dsoftbus_core_path/transmission/session/include",
72  ]
73
74  deps = [
75    "$dsoftbus_core_path/common:softbus_utils",
76    "$dsoftbus_core_path/frame:softbus_server",
77  ]
78
79  external_deps = [
80    "c_utils:utils",
81    "dsoftbus:softbus_client",
82    "hilog:libhilog",
83  ]
84}
85
86ohos_unittest("TransScenarioManagerTest") {
87  module_out_path = module_output_path
88  sources = [ "softbus_scenario_manager_test.cpp" ]
89
90  include_dirs = [
91    "$dsoftbus_core_path/common/include",
92    "$dsoftbus_core_path/transmission/session/include",
93  ]
94
95  deps = [
96    "$dsoftbus_core_path/common:softbus_utils",
97    "$dsoftbus_core_path/frame:softbus_server",
98  ]
99
100  external_deps = [
101    "c_utils:utils",
102    "hilog:libhilog",
103  ]
104}
105
106group("unittest") {
107  testonly = true
108  deps = [
109    ":TransScenarioManagerTest",
110    ":TransSessionManagerTest",
111    ":TransSessionServiceTest",
112  ]
113}
114