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("//foundation/communication/dsoftbus/dsoftbus.gni") 16 17module_output_path = "dsoftbus/transmission" 18 19ohos_unittest("TransClientProxyTest") { 20 module_out_path = module_output_path 21 sources = [ 22 "trans_client_proxy_standard_test.cpp", 23 "trans_client_proxy_test.cpp", 24 ] 25 26 include_dirs = [ 27 "$dsoftbus_root_path/core/common/include", 28 "$dsoftbus_root_path/core/frame/common/include", 29 "$dsoftbus_root_path/core/transmission/common/include", 30 "$dsoftbus_root_path/core/transmission/ipc/include", 31 "$dsoftbus_root_path/core/transmission/ipc/standard/include", 32 "$dsoftbus_root_path/core/frame/standard/init/include", 33 "$dsoftbus_root_path/core/frame/standard/client_manager/include", 34 "$dsoftbus_root_path/adapter/common/include", 35 "$dsoftbus_root_path/sdk/frame/standard/include", 36 "//foundation/communication/dsoftbus/tests/core/transmission/ipc/samgr/interfaces/innerkits/samgr_proxy/include", 37 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/", 38 "//foundation/window/window_manager/previewer/mock", 39 "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", 40 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 41 ] 42 43 deps = [ 44 "$dsoftbus_root_path/core/common:softbus_utils", 45 "$dsoftbus_root_path/core/frame:softbus_server", 46 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 47 "//third_party/googletest:gtest_main", 48 ] 49 50 if (is_standard_system) { 51 external_deps = [ 52 "c_utils:utils", 53 "hiviewdfx_hilog_native:libhilog", 54 "samgr:samgr_proxy", 55 ] 56 } else { 57 external_deps = [ 58 "c_utils:utils", 59 "hilog:libhilog", 60 "samgr:samgr_proxy", 61 ] 62 } 63} 64 65group("unittest") { 66 testonly = true 67 deps = [ ":TransClientProxyTest" ] 68} 69