1# Copyright (c) 2021-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 17group("unittest") { 18 testonly = true 19 deps = [ 20 "common/unittest:DataheadTransformTest", 21 "common/unittest:SoftbusConnAsyncHelperTest", 22 "common/unittest:SoftbusConnCommonTest", 23 "common/unittest:SoftbusConnQueueTest", 24 "common/unittest:SoftbusRcTest", 25 "ipc:unittest", 26 "manager:ConnectionManagerTest", 27 ] 28 if (support_bluetooth && dsoftbus_feature_conn_br) { 29 deps += [ 30 "br:BrConnTest", 31 "br:BrConnectionTest", 32 "br:BrHidumperTest", 33 "br:ConnectionBrTest", 34 ] 35 } 36 if (support_bluetooth && dsoftbus_feature_conn_ble) { 37 deps += [ 38 "ble:BleClientTest", 39 "ble:BleConnectionManagerTest", 40 "ble:BleConnectionServiceTest", 41 "ble:BleHidumperTest", 42 "ble:BleTransTest", 43 "ble:ConnectionBleSwitchTest", 44 "ble:ConnectionBleTest", 45 "general:GeneralConnectionTest", 46 "general:GeneralNegotiationTest", 47 "proxy:ProxyChannelManagerTest", 48 ] 49 } 50 if (dsoftbus_feature_conn_tcp_comm && dsoftbus_feature_conn_tcp_proxy) { 51 deps += [ "tcp:TcpManagerTest" ] 52 } 53 54 # add wifi_direct cpp unit test here 55 if (softbus_communication_wifi_feature) { 56 deps += [ "wifi_direct_cpp:unittest" ] 57 } 58} 59 60group("fuzztest") { 61 testonly = true 62 deps = [ 63 "common/fuzztest/connectioncommon_fuzzer:ConnectionCommonFuzzTest", 64 "fuzztest:fuzztest", 65 ] 66 if (support_bluetooth) { 67 if (dsoftbus_feature_conn_br) { 68 deps += [ "br/fuzztest/brconnection_fuzzer:BrConnectionFuzzTest" ] 69 } 70 if (dsoftbus_feature_conn_ble) { 71 deps += [ "ble/fuzztest/bleconnection_fuzzer:BleConnectionFuzzTest" ] 72 } 73 } 74} 75