# Copyright (c) 2021-2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("../../../dsoftbus.gni") group("unittest") { testonly = true deps = [ "common/unittest:SoftbusConnCommonTest", "manager:ConnectionManagerTest", ] if (support_bluetooth && dsoftbus_feature_conn_br) { deps += [ "br:BrConnTest", "br:BrConnectionTest", "br:ConnectionBrTest", ] } if (support_bluetooth && dsoftbus_feature_conn_ble) { deps += [ "ble:BleClientTest", "ble:BleConnectionManagerTest", "ble:BleConnectionServiceTest", "ble:BleTransTest", "ble:ConnectionBleSwitchTest", "ble:ConnectionBleTest", ] } if (dsoftbus_feature_conn_tcp) { deps += [ "tcp:TcpManagerTest" ] } # add wifi_direct cpp unit test here if (softbus_communication_wifi_feature) { deps += [ "wifi_direct_cpp:unittest" ] } } group("fuzztest") { testonly = true deps = [ "common/fuzztest/connectioncommon_fuzzer:ConnectionCommonFuzzTest", "fuzztest:fuzztest", ] if (support_bluetooth) { if (dsoftbus_feature_conn_br) { deps += [ "br/fuzztest/brconnection_fuzzer:BrConnectionFuzzTest" ] } if (dsoftbus_feature_conn_ble) { deps += [ "ble/fuzztest/bleconnection_fuzzer:BleConnectionFuzzTest" ] } } if (dsoftbus_feature_ex_kits == true) { deps += [ "$dsoftbus_root_path/dsoftbus_enhance/test/core/connection:fuzztest" ] } }