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/ohos.gni") 15import("//foundation/ability/idl_tool/idl_tool.gni") 16 17config("ipc_test_config") { 18 include_dirs = [ 19 "${IDL_TEST_DIR}/include", 20 "${IPC_SUBSYSTEM_DIR}/utils/include", 21 "${IPC_SUBSYSTEM_DIR}/ipc/native/src/mock/include", 22 ] 23} 24 25ohos_executable("idl_server_test") { 26 sources = [ 27 "./src/idl_test_service_stub.cpp", 28 "./src/main_server.cpp", 29 "./src/test_service.cpp", 30 ] 31 32 configs = [ ":ipc_test_config" ] 33 34 external_deps = [ 35 "c_utils:utils", 36 "hiviewdfx_hilog_native:libhilog", 37 "ipc:ipc_core", 38 "samgr:samgr_proxy", 39 ] 40 41 subsystem_name = "ability" 42 part_name = "idl_tool" 43} 44 45ohos_executable("idl_client_test") { 46 sources = [ 47 "./src/idl_test_service_proxy.cpp", 48 "./src/main_client.cpp", 49 "./src/test_client.cpp", 50 ] 51 52 configs = [ ":ipc_test_config" ] 53 54 external_deps = [ 55 "c_utils:utils", 56 "hiviewdfx_hilog_native:libhilog", 57 "ipc:ipc_core", 58 "samgr:samgr_proxy", 59 ] 60 61 subsystem_name = "ability" 62 part_name = "idl_tool" 63} 64