1# Copyright (c) 2022-2023 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") 15import( 16 "//foundation/distributedhardware/distributed_input/distributedinput.gni") 17 18module_out_path = "distributed_input/ipc" 19 20group("unpreparedinputcallbackunittest") { 21 testonly = true 22 23 deps = [ ":unprepare_d_input_call_back_test" ] 24} 25 26## UnitTest unprepare_d_input_call_back_test {{{ 27ohos_unittest("unprepare_d_input_call_back_test") { 28 module_out_path = module_out_path 29 30 include_dirs = [ 31 "${common_path}/include", 32 "${frameworks_path}/include", 33 "${fwk_common_path}/log/include", 34 "${fwk_common_path}/utils/include", 35 "${fwk_interfaces_path}/include", 36 "${fwk_interfaces_path}/include/ipc", 37 "${innerkits_path}/include", 38 "${innerkits_path}/src", 39 "${ipc_path}/include", 40 "${ipc_path}/src", 41 "${utils_path}/include", 42 "//third_party/json/include", 43 ] 44 45 sources = [ 46 "${ipc_path}/src/unprepare_d_input_call_back_proxy.cpp", 47 "${ipc_path}/src/unprepare_d_input_call_back_stub.cpp", 48 "unprepare_d_input_call_back_test.cpp", 49 ] 50 51 cflags = [ 52 "-Wall", 53 "-Werror", 54 "-g3", 55 "-Dprivate=public", 56 "-Dprotected=public", 57 ] 58 59 defines = [ 60 "HI_LOG_ENABLE", 61 "DH_LOG_TAG=\"distributedinpututtest\"", 62 "LOG_DOMAIN=0xD004100", 63 ] 64 65 deps = [ 66 "${dfx_utils_path}:libdinput_dfx_utils", 67 "${utils_path}:libdinput_utils", 68 ] 69 70 external_deps = [ 71 "c_utils:utils", 72 "distributed_hardware_fwk:libdhfwk_sdk", 73 "dsoftbus:softbus_client", 74 "eventhandler:libeventhandler", 75 "ipc:ipc_core", 76 "safwk:system_ability_fwk", 77 "samgr:samgr_proxy", 78 ] 79 80 cflags_cc = [ "-DHILOG_ENABLE" ] 81} 82## UnitTest unprepare_d_input_call_back_test }}} 83