12d4d9a4dSopenharmony_ci# Copyright (c) 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("../../../../distributedinput.gni") 162d4d9a4dSopenharmony_ci 172d4d9a4dSopenharmony_cimodule_out_path = "distributed_input/state" 182d4d9a4dSopenharmony_ci 192d4d9a4dSopenharmony_cigroup("dinpusinkstatetest") { 202d4d9a4dSopenharmony_ci testonly = true 212d4d9a4dSopenharmony_ci 222d4d9a4dSopenharmony_ci deps = [ ":dinput_sink_state_test" ] 232d4d9a4dSopenharmony_ci} 242d4d9a4dSopenharmony_ci 252d4d9a4dSopenharmony_ci## UnitTest dinput_sink_state_test {{{ 262d4d9a4dSopenharmony_ciohos_unittest("dinput_sink_state_test") { 272d4d9a4dSopenharmony_ci module_out_path = module_out_path 282d4d9a4dSopenharmony_ci 292d4d9a4dSopenharmony_ci include_dirs = [ 302d4d9a4dSopenharmony_ci "${common_path}/include", 312d4d9a4dSopenharmony_ci "${services_state_path}/include", 322d4d9a4dSopenharmony_ci ] 332d4d9a4dSopenharmony_ci 342d4d9a4dSopenharmony_ci sources = [ "dinput_sink_state_test.cpp" ] 352d4d9a4dSopenharmony_ci 362d4d9a4dSopenharmony_ci cflags = [ 372d4d9a4dSopenharmony_ci "-Wall", 382d4d9a4dSopenharmony_ci "-Werror", 392d4d9a4dSopenharmony_ci "-g3", 402d4d9a4dSopenharmony_ci "-Dprivate=public", 412d4d9a4dSopenharmony_ci ] 422d4d9a4dSopenharmony_ci 432d4d9a4dSopenharmony_ci defines = [ 442d4d9a4dSopenharmony_ci "HI_LOG_ENABLE", 452d4d9a4dSopenharmony_ci "DH_LOG_TAG=\"distributedinpututtest\"", 462d4d9a4dSopenharmony_ci "LOG_DOMAIN=0xD004120", 472d4d9a4dSopenharmony_ci ] 482d4d9a4dSopenharmony_ci 492d4d9a4dSopenharmony_ci deps = [ "${services_state_path}:libdinput_sink_state" ] 502d4d9a4dSopenharmony_ci 512d4d9a4dSopenharmony_ci external_deps = [ 522d4d9a4dSopenharmony_ci "c_utils:utils", 532d4d9a4dSopenharmony_ci "distributed_hardware_fwk:distributedhardwareutils", 542d4d9a4dSopenharmony_ci "hilog:libhilog", 552d4d9a4dSopenharmony_ci "libevdev:libevdev", 562d4d9a4dSopenharmony_ci ] 572d4d9a4dSopenharmony_ci 582d4d9a4dSopenharmony_ci cflags_cc = [ "-DHILOG_ENABLE" ] 592d4d9a4dSopenharmony_ci} 602d4d9a4dSopenharmony_ci## UnitTest dinput_sink_state_test }}} 61