1# Copyright (c) 2022 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 = "../../../.." 19softbus_adapter_config = "${dsoftbus_root_path}/adapter/default_config" 20 21ohos_unittest("TransIpcStandardTest") { 22 sanitize = { 23 cfi = true 24 cfi_cross_dso = true 25 debug = false 26 } 27 module_out_path = module_output_path 28 sources = [ "trans_ipc_test.cpp" ] 29 include_dirs = [ 30 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 31 "$dsoftbus_root_path/core/common/inner_communication", 32 "$dsoftbus_root_path/core/common/include", 33 "$dsoftbus_root_path/interfaces/kits/transport", 34 "$dsoftbus_root_path/sdk/transmission/ipc/standard/include", 35 "$dsoftbus_root_path/sdk/transmission/ipc/standard/src", 36 "$dsoftbus_root_path/tests/sdk/common/include", 37 "$dsoftbus_root_path/core/frame/standard/init/include", 38 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 39 "$dsoftbus_root_path/core/bus_center/utils/include", 40 "$softbus_adapter_config/spec_config", 41 "$dsoftbus_root_path/sdk/transmission/ipc/include", 42 43 #"//utils/system/safwk/native/include", 44 "unittest/common/", 45 "$dsoftbus_root_path/sdk/transmission/session/include", 46 ] 47 deps = [ 48 "$dsoftbus_root_path/core/common:softbus_utils", 49 "$dsoftbus_root_path/tests/sdk:softbus_client_static", 50 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 51 ] 52 53 external_deps = [ 54 "bounds_checking_function:libsec_shared", 55 "bounds_checking_function:libsec_static", 56 "c_utils:utils", 57 "device_auth:deviceauth_sdk", 58 "hilog:libhilog", 59 "ipc:ipc_core", 60 "ipc:ipc_single", 61 ] 62} 63group("unittest") { 64 testonly = true 65 deps = [ ":TransIpcStandardTest" ] 66} 67