# 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" # DBINDER_TEST_ROOT = "//foundation/communication/ipc/services/dbinder/test" MODULE_OUTPUT_PATH = "ipc/services/dbinder" ohos_moduletest("RPCCLIENTTEST") { module_out_path = MODULE_OUTPUT_PATH include_dirs = [ "include", "${SUBSYSTEM_DIR}/utils/include", "${SUBSYSTEM_DIR}/ipc/native/c/adapter/access_token/include", ] sources = [ "src/rpc_client_test.cpp", "src/rpc_test.cpp", ] configs = [ "$SUBSYSTEM_DIR/config:dsoftbus_header_deps_config", "$SUBSYSTEM_DIR/config:ipc_util_config", ] deps = [ "//third_party/googletest:gtest_main" ] external_deps = [ "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ohos_moduletest("RPCSERVERTEST") { module_out_path = MODULE_OUTPUT_PATH include_dirs = [ "include", "${SUBSYSTEM_DIR}/utils/include", ] sources = [ "src/rpc_server_test.cpp", "src/rpc_test.cpp", ] configs = [ "$SUBSYSTEM_DIR/config:ipc_util_config" ] deps = [ "//third_party/googletest:gtest_main" ] external_deps = [ "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ############################################################################### group("moduletest") { testonly = true deps = [ ":RPCCLIENTTEST", ":RPCSERVERTEST", ] } ###############################################################################