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 module_out_path = module_output_path 23 sources = [ "trans_ipc_test.cpp" ] 24 include_dirs = [ 25 "$dsoftbus_root_path/core/common/inner_communication", 26 "$dsoftbus_root_path/core/common/include", 27 "$dsoftbus_root_path/interfaces/kits/transport", 28 "$dsoftbus_root_path/sdk/transmission/ipc/standard/include", 29 "$dsoftbus_root_path/sdk/transmission/ipc/standard/src", 30 "$dsoftbus_root_path/tests/sdk/common/include", 31 "$dsoftbus_root_path/core/frame/standard/init/include", 32 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 33 "$dsoftbus_root_path/core/bus_center/utils/include", 34 "$softbus_adapter_config/spec_config", 35 "$dsoftbus_root_path/sdk/transmission/ipc/include", 36 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 37 "//utils/system/safwk/native/include", 38 "//base/security/device_auth/interfaces/inner_api", 39 "//commonlibrary/c_utils/base/include", 40 "//third_party/bounds_checking_function/include", 41 "unittest/common/", 42 "$dsoftbus_root_path/sdk/transmission/session/include", 43 ] 44 deps = [ 45 "$dsoftbus_root_path/core/common:softbus_utils", 46 "$dsoftbus_root_path/sdk:softbus_client", 47 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 48 "//third_party/bounds_checking_function:libsec_shared", 49 "//third_party/bounds_checking_function:libsec_static", 50 "//third_party/googletest:gtest_main", 51 ] 52 if (is_standard_system) { 53 external_deps = [ 54 "c_utils:utils", 55 "hilog:libhilog", 56 "ipc:ipc_core", 57 "ipc:ipc_single", 58 ] 59 } else { 60 external_deps = [ 61 "c_utils:utils", 62 "hilog:libhilog", 63 "ipc:ipc_core", 64 "ipc:ipc_single", 65 ] 66 } 67} 68group("unittest") { 69 testonly = true 70 deps = [ ":TransIpcStandardTest" ] 71} 72