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 "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/qos/include", 29 "//foundation/communication/dsoftbus/sdk/transmission/session/include", 30 ] 31 32 deps = [ "$dsoftbus_root_path/tests/sdk:softbus_client_static" ] 33 34 external_deps = [ 35 "bounds_checking_function:libsec_static", 36 "c_utils:utils", 37 "hilog:libhilog", 38 ] 39} 40 41ohos_unittest("TransQosStatClientTest") { 42 module_out_path = module_output_path 43 sources = [ "trans_qos_stat_client_test.cpp" ] 44 45 include_dirs = [ 46 "$dsoftbus_root_path/core/common/include", 47 "$dsoftbus_root_path/interfaces/kits/transport", 48 "$dsoftbus_root_path/interfaces/kits/common", 49 ] 50 51 deps = [ "$dsoftbus_root_path/tests/sdk:softbus_client_static" ] 52 53 external_deps = [ 54 "bounds_checking_function:libsec_static", 55 "c_utils:utils", 56 "hilog:libhilog", 57 ] 58} 59 60ohos_unittest("TransQosStatServerTest") { 61 module_out_path = module_output_path 62 sources = [ "trans_qos_stat_server_test.cpp" ] 63 64 include_dirs = [ 65 "$dsoftbus_root_path/core/common/include", 66 "$dsoftbus_root_path/interfaces/kits/transport", 67 "$dsoftbus_root_path/interfaces/kits/common", 68 ] 69 70 deps = [ "$dsoftbus_root_path/tests/sdk:softbus_client_static" ] 71 72 external_deps = [ 73 "bounds_checking_function:libsec_static", 74 "c_utils:utils", 75 "hilog:libhilog", 76 ] 77} 78 79group("unittest") { 80 testonly = true 81 deps = [ 82 ":TransQosStatClientTest", 83 ":TransQosTest", 84 ] 85} 86