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  ]
39
40  deps = [
41    "$dsoftbus_core_path/common:softbus_utils",
42    "$dsoftbus_core_path/frame:softbus_server",
43  ]
44
45  external_deps = [
46    "c_utils:utils",
47    "hilog:libhilog",
48  ]
49}
50
51ohos_unittest("TransSessionServiceTest") {
52  module_out_path = module_output_path
53  sources = [ "trans_session_service_test.cpp" ]
54
55  include_dirs = [
56    "$dsoftbus_core_path/authentication/interface",
57
58    "$dsoftbus_core_path/bus_center/interface",
59    "$dsoftbus_core_path/bus_center/lnn/net_ledger/common/include",
60
61    "$dsoftbus_core_path/common/include",
62
63    "$dsoftbus_core_path/connection/interface",
64
65    "$dsoftbus_core_path/discovery/interface",
66    "$dsoftbus_core_path/discovery/manager/include",
67
68    "$dsoftbus_core_path/transmission/common/include",
69    "$dsoftbus_core_path/transmission/session/include",
70  ]
71
72  deps = [
73    "$dsoftbus_core_path/common:softbus_utils",
74    "$dsoftbus_core_path/frame:softbus_server",
75  ]
76
77  external_deps = [
78    "c_utils:utils",
79    "hilog:libhilog",
80  ]
81}
82
83group("unittest") {
84  testonly = true
85  deps = [
86    ":TransSessionManagerTest",
87    ":TransSessionServiceTest",
88  ]
89}
90