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") 15 16# SUBSYSTEM_DIR = "//foundation/communication/ipc" 17# IPC_TEST_ROOT = "//foundation/communication/ipc/ipc/test" 18MODULE_OUTPUT_PATH = "ipc" 19 20ohos_unittest("RPCDbinderTest") { 21 module_out_path = MODULE_OUTPUT_PATH 22 23 include_dirs = [ 24 "//foundation/communication/ipc/ipc/native/c/manager/include", 25 "//foundation/communication/ipc/utils/include", 26 "//foundation/communication/dsoftbus/sdk/transmission/session/cpp/src", 27 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 28 "//foundation/communication/ipc/ipc/native/c/rpc/include", 29 ] 30 31 sources = [ 32 "dbinder_remote_listener_unittest.cpp", 33 "dbinder_service_stub_unittest.cpp", 34 "dbinder_service_unittest.cpp", 35 ] 36 37 configs = [] 38 39 deps = [ 40 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 41 "//third_party/googletest:gtest_main", 42 ] 43 44 external_deps = [ 45 "c_utils:utils", 46 "dsoftbus:softbus_client", 47 "hiviewdfx_hilog_native:libhilog", 48 "ipc:libdbinder", 49 ] 50 51 resource_config_file = 52 "//foundation/communication/ipc/test/resource/ipc/ohos_test.xml" 53} 54 55############################################################################### 56group("unittest") { 57 testonly = true 58 deps = [ ":RPCDbinderTest" ] 59} 60