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 "${fwk_common_path}/utils/include", 32 "${services_state_path}/include", 33 ] 34 35 sources = [ "dinput_sink_state_test.cpp" ] 36 37 cflags = [ 38 "-Wall", 39 "-Werror", 40 "-g3", 41 "-Dprivate=public", 42 ] 43 44 defines = [ 45 "HI_LOG_ENABLE", 46 "DH_LOG_TAG=\"distributedinpututtest\"", 47 "LOG_DOMAIN=0xD004120", 48 ] 49 50 deps = [ 51 "${services_state_path}:libdinput_sink_state", 52 "//third_party/libevdev:libevdev", 53 ] 54 55 external_deps = [ "c_utils:utils" ] 56 57 cflags_cc = [ "-DHILOG_ENABLE" ] 58} 59## UnitTest dinput_sink_state_test }}} 60