1# Copyright (c) 2023-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") 16import("../../../../sdk/frame/frame_sdk.gni") 17 18module_output_path = "dsoftbus/soft_bus/transmission" 19 20ohos_unittest("SoftBusFrameStandardTest") { 21 sanitize = { 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 module_out_path = module_output_path 27 sources = [ "softbus_frame_standard_test.cpp" ] 28 29 include_dirs = [ 30 "${dsoftbus_root_path}/br_proxy", 31 "${dsoftbus_root_path}/core/frame/standard/init/include", 32 "${dsoftbus_root_path}/interfaces/kits/common", 33 "${dsoftbus_root_path}/interfaces/kits/discovery", 34 "${dsoftbus_root_path}/sdk/bus_center/manager/include", 35 "${dsoftbus_root_path}/sdk/bus_center/ipc/include", 36 "${dsoftbus_root_path}/sdk/frame/common/include", 37 "${dsoftbus_root_path}/sdk/frame/standard/include", 38 "${dsoftbus_root_path}/sdk/frame/standard/src", 39 "${dsoftbus_root_path}/sdk/transmission/session/include", 40 "${dsoftbus_root_path}/sdk/transmission/ipc/include", 41 "${dsoftbus_root_path}/sdk/transmission/trans_channel/manager/include", 42 "${dsoftbus_root_path}/sdk/transmission/trans_channel/udp/common/include", 43 "${dsoftbus_root_path}/interfaces/kits/connection", 44 "${dsoftbus_root_path}/sdk/connection/service/include", 45 "${dsoftbus_root_path}/sdk/connection/ipc/include", 46 "${dsoftbus_root_path}/components/nstackx/fillp/include", 47 "$dsoftbus_root_path/adapter/common/security/access_token/include", 48 ] 49 50 deps = [ 51 "$dsoftbus_root_path/tests/sdk:softbus_client_static", 52 "${dsoftbus_root_path}/core/common:softbus_utils", 53 "${dsoftbus_root_path}/core/frame:softbus_server", 54 ] 55 56 external_deps = [ 57 "c_utils:utils", 58 "googletest:gtest", 59 "googletest:gtest_main", 60 "hilog:libhilog", 61 ] 62 63 if (is_standard_system) { 64 external_deps += [ "ipc:ipc_single" ] 65 } 66} 67 68group("unittest") { 69 testonly = true 70 deps = [ ":SoftBusFrameStandardTest" ] 71} 72