12d4d9a4dSopenharmony_ci# Copyright (c) 2022-2024 Huawei Device Co., Ltd. 22d4d9a4dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 32d4d9a4dSopenharmony_ci# you may not use this file except in compliance with the License. 42d4d9a4dSopenharmony_ci# You may obtain a copy of the License at 52d4d9a4dSopenharmony_ci# 62d4d9a4dSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 72d4d9a4dSopenharmony_ci# 82d4d9a4dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 92d4d9a4dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 102d4d9a4dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 112d4d9a4dSopenharmony_ci# See the License for the specific language governing permissions and 122d4d9a4dSopenharmony_ci# limitations under the License. 132d4d9a4dSopenharmony_ci 142d4d9a4dSopenharmony_ciimport("//build/test.gni") 152d4d9a4dSopenharmony_ciimport( 162d4d9a4dSopenharmony_ci "//foundation/distributedhardware/distributed_input/distributedinput.gni") 172d4d9a4dSopenharmony_ci 182d4d9a4dSopenharmony_cimodule_out_path = "distributed_input/ipc" 192d4d9a4dSopenharmony_ci 202d4d9a4dSopenharmony_cigroup("clientunittest") { 212d4d9a4dSopenharmony_ci testonly = true 222d4d9a4dSopenharmony_ci 232d4d9a4dSopenharmony_ci deps = [ ":distributed_input_client_test" ] 242d4d9a4dSopenharmony_ci} 252d4d9a4dSopenharmony_ci 262d4d9a4dSopenharmony_ci## UnitTest distributed_input_client_test {{{ 272d4d9a4dSopenharmony_ciohos_unittest("distributed_input_client_test") { 282d4d9a4dSopenharmony_ci module_out_path = module_out_path 292d4d9a4dSopenharmony_ci 302d4d9a4dSopenharmony_ci include_dirs = [ 312d4d9a4dSopenharmony_ci "${common_path}/include", 322d4d9a4dSopenharmony_ci "${frameworks_path}/include", 332d4d9a4dSopenharmony_ci "${innerkits_path}/include", 342d4d9a4dSopenharmony_ci "${innerkits_path}/src", 352d4d9a4dSopenharmony_ci "${ipc_path}/include", 362d4d9a4dSopenharmony_ci "${ipc_path}/src", 372d4d9a4dSopenharmony_ci "${utils_path}/include", 382d4d9a4dSopenharmony_ci "${services_source_path}/sourcemanager/include", 392d4d9a4dSopenharmony_ci "${services_source_path}/inputinject/include", 402d4d9a4dSopenharmony_ci "${services_source_path}/transport/include", 412d4d9a4dSopenharmony_ci "${service_common}/include", 422d4d9a4dSopenharmony_ci "${services_sink_path}/transport/include", 432d4d9a4dSopenharmony_ci "${services_sink_path}/inputcollector/include", 442d4d9a4dSopenharmony_ci "${services_sink_path}/sinkmanager/include", 452d4d9a4dSopenharmony_ci "${distributedinput_path}/inputdevicehandler/include", 462d4d9a4dSopenharmony_ci "${distributedinput_path}/services/state/include", 472d4d9a4dSopenharmony_ci ] 482d4d9a4dSopenharmony_ci 492d4d9a4dSopenharmony_ci sources = [ 502d4d9a4dSopenharmony_ci "${common_path}/include/input_check_param.cpp", 512d4d9a4dSopenharmony_ci "${common_path}/include/white_list_util.cpp", 522d4d9a4dSopenharmony_ci "${ipc_path}/src/add_white_list_infos_call_back_proxy.cpp", 532d4d9a4dSopenharmony_ci "${ipc_path}/src/add_white_list_infos_call_back_stub.cpp", 542d4d9a4dSopenharmony_ci "${ipc_path}/src/del_white_list_infos_call_back_proxy.cpp", 552d4d9a4dSopenharmony_ci "${ipc_path}/src/del_white_list_infos_call_back_stub.cpp", 562d4d9a4dSopenharmony_ci "${ipc_path}/src/distributed_input_client.cpp", 572d4d9a4dSopenharmony_ci "${ipc_path}/src/distributed_input_sink_proxy.cpp", 582d4d9a4dSopenharmony_ci "${ipc_path}/src/distributed_input_sink_stub.cpp", 592d4d9a4dSopenharmony_ci "${ipc_path}/src/distributed_input_source_proxy.cpp", 602d4d9a4dSopenharmony_ci "${ipc_path}/src/distributed_input_source_stub.cpp", 612d4d9a4dSopenharmony_ci "${ipc_path}/src/get_sink_screen_infos_call_back_proxy.cpp", 622d4d9a4dSopenharmony_ci "${ipc_path}/src/get_sink_screen_infos_call_back_stub.cpp", 632d4d9a4dSopenharmony_ci "${ipc_path}/src/input_node_listener_proxy.cpp", 642d4d9a4dSopenharmony_ci "${ipc_path}/src/input_node_listener_stub.cpp", 652d4d9a4dSopenharmony_ci "${ipc_path}/src/prepare_d_input_call_back_proxy.cpp", 662d4d9a4dSopenharmony_ci "${ipc_path}/src/prepare_d_input_call_back_stub.cpp", 672d4d9a4dSopenharmony_ci "${ipc_path}/src/register_d_input_call_back_proxy.cpp", 682d4d9a4dSopenharmony_ci "${ipc_path}/src/register_d_input_call_back_stub.cpp", 692d4d9a4dSopenharmony_ci "${ipc_path}/src/sharing_dhid_listener_proxy.cpp", 702d4d9a4dSopenharmony_ci "${ipc_path}/src/sharing_dhid_listener_stub.cpp", 712d4d9a4dSopenharmony_ci "${ipc_path}/src/simulation_event_listener_proxy.cpp", 722d4d9a4dSopenharmony_ci "${ipc_path}/src/simulation_event_listener_stub.cpp", 732d4d9a4dSopenharmony_ci "${ipc_path}/src/start_d_input_call_back_proxy.cpp", 742d4d9a4dSopenharmony_ci "${ipc_path}/src/start_d_input_call_back_stub.cpp", 752d4d9a4dSopenharmony_ci "${ipc_path}/src/start_stop_d_inputs_call_back_proxy.cpp", 762d4d9a4dSopenharmony_ci "${ipc_path}/src/start_stop_d_inputs_call_back_stub.cpp", 772d4d9a4dSopenharmony_ci "${ipc_path}/src/start_stop_result_call_back_proxy.cpp", 782d4d9a4dSopenharmony_ci "${ipc_path}/src/start_stop_result_call_back_stub.cpp", 792d4d9a4dSopenharmony_ci "${ipc_path}/src/stop_d_input_call_back_proxy.cpp", 802d4d9a4dSopenharmony_ci "${ipc_path}/src/stop_d_input_call_back_stub.cpp", 812d4d9a4dSopenharmony_ci "${ipc_path}/src/unprepare_d_input_call_back_proxy.cpp", 822d4d9a4dSopenharmony_ci "${ipc_path}/src/unprepare_d_input_call_back_stub.cpp", 832d4d9a4dSopenharmony_ci "${ipc_path}/src/unregister_d_input_call_back_proxy.cpp", 842d4d9a4dSopenharmony_ci "${ipc_path}/src/unregister_d_input_call_back_stub.cpp", 852d4d9a4dSopenharmony_ci "distributed_input_client_test.cpp", 862d4d9a4dSopenharmony_ci "mock_samanager.cpp", 872d4d9a4dSopenharmony_ci ] 882d4d9a4dSopenharmony_ci 892d4d9a4dSopenharmony_ci cflags = [ 902d4d9a4dSopenharmony_ci "-Wall", 912d4d9a4dSopenharmony_ci "-Werror", 922d4d9a4dSopenharmony_ci "-g3", 932d4d9a4dSopenharmony_ci "-Dprivate=public", 942d4d9a4dSopenharmony_ci "-Dprotected=public", 952d4d9a4dSopenharmony_ci ] 962d4d9a4dSopenharmony_ci 972d4d9a4dSopenharmony_ci defines = [ 982d4d9a4dSopenharmony_ci "HI_LOG_ENABLE", 992d4d9a4dSopenharmony_ci "DH_LOG_TAG=\"distributedinpututtest\"", 1002d4d9a4dSopenharmony_ci "LOG_DOMAIN=0xD004120", 1012d4d9a4dSopenharmony_ci ] 1022d4d9a4dSopenharmony_ci 1032d4d9a4dSopenharmony_ci deps = [ 1042d4d9a4dSopenharmony_ci "${dfx_utils_path}:libdinput_dfx_utils", 1052d4d9a4dSopenharmony_ci "${services_sink_path}/sinkmanager:libdinput_sink", 1062d4d9a4dSopenharmony_ci "${services_source_path}/inputinject:libdinput_inject", 1072d4d9a4dSopenharmony_ci "${services_source_path}/sourcemanager:libdinput_source", 1082d4d9a4dSopenharmony_ci "${utils_path}:libdinput_utils", 1092d4d9a4dSopenharmony_ci ] 1102d4d9a4dSopenharmony_ci 1112d4d9a4dSopenharmony_ci external_deps = [ 1122d4d9a4dSopenharmony_ci "access_token:libaccesstoken_sdk", 1132d4d9a4dSopenharmony_ci "access_token:libtokenid_sdk", 1142d4d9a4dSopenharmony_ci "c_utils:utils", 1152d4d9a4dSopenharmony_ci "config_policy:configpolicy_util", 1162d4d9a4dSopenharmony_ci "distributed_hardware_fwk:distributed_av_receiver", 1172d4d9a4dSopenharmony_ci "distributed_hardware_fwk:distributed_av_sender", 1182d4d9a4dSopenharmony_ci "distributed_hardware_fwk:distributedhardwareutils", 1192d4d9a4dSopenharmony_ci "distributed_hardware_fwk:libdhfwk_sdk", 1202d4d9a4dSopenharmony_ci "dsoftbus:softbus_client", 1212d4d9a4dSopenharmony_ci "eventhandler:libeventhandler", 1222d4d9a4dSopenharmony_ci "graphic_surface:surface", 1232d4d9a4dSopenharmony_ci "hilog:libhilog", 1242d4d9a4dSopenharmony_ci "ipc:ipc_core", 1252d4d9a4dSopenharmony_ci "json:nlohmann_json_static", 1262d4d9a4dSopenharmony_ci "libevdev:libevdev", 1272d4d9a4dSopenharmony_ci "safwk:system_ability_fwk", 1282d4d9a4dSopenharmony_ci "samgr:samgr_proxy", 1292d4d9a4dSopenharmony_ci "window_manager:libdm", 1302d4d9a4dSopenharmony_ci ] 1312d4d9a4dSopenharmony_ci 1322d4d9a4dSopenharmony_ci cflags_cc = [ "-DHILOG_ENABLE" ] 1332d4d9a4dSopenharmony_ci} 1342d4d9a4dSopenharmony_ci## UnitTest distributed_input_client_test }}} 135