1# Copyright (c) 2024 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("../../../../distributedinput.gni") 16 17module_out_path = "distributed_input/state" 18 19group("dinpusinkstatetest") { 20 testonly = true 21 22 deps = [ ":dinput_sink_state_test" ] 23} 24 25## UnitTest dinput_sink_state_test {{{ 26ohos_unittest("dinput_sink_state_test") { 27 module_out_path = module_out_path 28 29 include_dirs = [ 30 "${common_path}/include", 31 "${services_state_path}/include", 32 ] 33 34 sources = [ "dinput_sink_state_test.cpp" ] 35 36 cflags = [ 37 "-Wall", 38 "-Werror", 39 "-g3", 40 "-Dprivate=public", 41 ] 42 43 defines = [ 44 "HI_LOG_ENABLE", 45 "DH_LOG_TAG=\"distributedinpututtest\"", 46 "LOG_DOMAIN=0xD004120", 47 ] 48 49 deps = [ "${services_state_path}:libdinput_sink_state" ] 50 51 external_deps = [ 52 "c_utils:utils", 53 "distributed_hardware_fwk:distributedhardwareutils", 54 "hilog:libhilog", 55 "libevdev:libevdev", 56 ] 57 58 cflags_cc = [ "-DHILOG_ENABLE" ] 59} 60## UnitTest dinput_sink_state_test }}} 61