• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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"
18dsoftbus_root_path = "../../../../.."
19
20ohos_unittest("TransQosTest") {
21  module_out_path = module_output_path
22  sources = [ "trans_qos_test.cpp" ]
23
24  include_dirs = [
25    "$dsoftbus_root_path/core/common/include",
26    "$dsoftbus_root_path/interfaces/kits/transport",
27    "$dsoftbus_root_path/interfaces/kits/common",
28    "//commonlibrary/c_utils/base/include",
29    "//third_party/bounds_checking_function/include",
30    "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/qos/include",
31    "//foundation/communication/dsoftbus/sdk/transmission/session/include",
32  ]
33
34  deps = [
35    "$dsoftbus_root_path/sdk:softbus_client",
36    "//third_party/bounds_checking_function:libsec_static",
37    "//third_party/googletest:gtest_main",
38  ]
39
40  if (is_standard_system) {
41    external_deps = [
42      "c_utils:utils",
43      "hilog:libhilog",
44    ]
45  } else {
46    external_deps = [
47      "c_utils:utils",
48      "hilog:libhilog",
49    ]
50  }
51}
52
53ohos_unittest("TransQosStatClientTest") {
54  module_out_path = module_output_path
55  sources = [ "trans_qos_stat_client_test.cpp" ]
56
57  include_dirs = [
58    "$dsoftbus_root_path/core/common/include",
59    "$dsoftbus_root_path/interfaces/kits/transport",
60    "$dsoftbus_root_path/interfaces/kits/common",
61    "//commonlibrary/c_utils/base/include",
62    "//third_party/bounds_checking_function/include",
63  ]
64
65  deps = [
66    "$dsoftbus_root_path/sdk:softbus_client",
67    "//third_party/bounds_checking_function:libsec_static",
68    "//third_party/googletest:gtest_main",
69  ]
70
71  if (is_standard_system) {
72    external_deps = [
73      "c_utils:utils",
74      "hilog:libhilog",
75    ]
76  } else {
77    external_deps = [
78      "c_utils:utils",
79      "hilog:libhilog",
80    ]
81  }
82}
83
84ohos_unittest("TransQosStatServerTest") {
85  module_out_path = module_output_path
86  sources = [ "trans_qos_stat_server_test.cpp" ]
87
88  include_dirs = [
89    "$dsoftbus_root_path/core/common/include",
90    "$dsoftbus_root_path/interfaces/kits/transport",
91    "$dsoftbus_root_path/interfaces/kits/common",
92    "//commonlibrary/c_utils/base/include",
93    "//third_party/bounds_checking_function/include",
94  ]
95
96  deps = [
97    "$dsoftbus_root_path/sdk:softbus_client",
98    "//third_party/bounds_checking_function:libsec_static",
99    "//third_party/googletest:gtest_main",
100  ]
101
102  if (is_standard_system) {
103    external_deps = [
104      "c_utils:utils",
105      "hilog:libhilog",
106    ]
107  } else {
108    external_deps = [
109      "c_utils:utils",
110      "hilog:libhilog",
111    ]
112  }
113}
114
115group("unittest") {
116  testonly = true
117  deps = [
118    ":TransQosStatClientTest",
119    ":TransQosTest",
120  ]
121}
122