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