# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") SUBSYSTEM_DIR = "//foundation/communication/ipc" IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native" MODULE_OUTPUT_PATH = "ipc" ohos_unittest("RPCDbinderTest") { module_out_path = MODULE_OUTPUT_PATH include_dirs = [ "$IPC_CORE_ROOT/c/manager/include", "$SUBSYSTEM_DIR/utils/include", "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_core/include", "$IPC_CORE_ROOT/c/rpc/include", ] sources = [ "dbinder_death_recipient_unittest.cpp", "dbinder_remote_listener_unittest.cpp", "dbinder_service_stub_unittest.cpp", "dbinder_service_unittest.cpp", ] configs = [ "$SUBSYSTEM_DIR/config:dsoftbus_header_deps_config" ] deps = [ "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_core:ipc_core" ] external_deps = [ "c_utils:utils", "hilog:libhilog", "ipc:libdbinder", ] resource_config_file = "$SUBSYSTEM_DIR/test/resource/ipc/ohos_test.xml" } ############################################################################### group("unittest") { testonly = true deps = [ ":RPCDbinderTest", "../auxiliary:Dynamic_loading_softbus_client_test", ] }