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