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/ohos.gni") 15import("//build/test.gni") 16import("../../../multimodalinput_mini.gni") 17 18module_output_path = "multimodalinput/mmi_unit_out" 19 20ohos_unittest("FingerprintEventProcessorTest") { 21 module_out_path = module_output_path 22 23 defines = input_default_defines 24 defines += [ "OHOS_BUILD_ENABLE_FINGERPRINT" ] 25 26 configs = [ 27 "${mmi_path}:coverage_flags", 28 "${mmi_path}/service:libmmi_server_config", 29 ] 30 31 cflags = [ 32 "-Dprivate=public", 33 "-Dprotected=public", 34 ] 35 36 include_dirs = [ 37 "${mmi_path}/service/fingerprint_event_processor/include", 38 "${mmi_path}/service/event_handler/include", 39 "${mmi_path}/util/common/include", 40 "${mmi_path}/test/facility/event_monitor_handler_interface/include", 41 "${mmi_path}/test/facility/mock/include", 42 "${mmi_path}/util/network/include", 43 "${mmi_path}/service/monitor/include/event_monitor_handler.h", 44 "${mmi_path}/service/monitor/include/event_pre_monitor_handler.h", 45 "${mmi_path}/util/common/include/input_event_data_transformation.h", 46 "${mmi_path}/test/unittest/standalone/include/", 47 "${mmi_path}/interfaces/native/innerkits/proxy/include", 48 "${mmi_path}/interfaces/native/innerkits/event/include", 49 "${mmi_path}/service/nap_process/include", 50 "${mmi_path}/util/socket/include", 51 "$root_out_dir/diff_libinput_mmi/export_include", 52 ] 53 54 sources = [ 55 "${mmi_path}/frameworks/proxy/events/src/pointer_event.cpp", 56 "${mmi_path}/service/event_handler/src/input_event_handler.cpp", 57 "${mmi_path}/service/fingerprint_event_processor/src/fingerprint_event_processor.cpp", 58 "${mmi_path}/service/monitor/src/event_monitor_handler.cpp", 59 "${mmi_path}/service/monitor/src/event_pre_monitor_handler.cpp", 60 "${mmi_path}/util/common/src/input_event_data_transformation.cpp", 61 "${mmi_path}/util/network/src/stream_buffer.cpp", 62 "src/fingerprint_event_processor_test.cpp", 63 ] 64 65 deps = [ 66 "${mmi_path}/frameworks/proxy:libmmi-client", 67 "${mmi_path}/service:libmmi-server", 68 "${mmi_path}/test/facility/mock:mmi_mock_sources", 69 "${mmi_path}/util:libmmi-util", 70 ] 71 72 external_deps = [ 73 "ability_base:want", 74 "ability_runtime:ability_manager", 75 "c_utils:utils", 76 "config_policy:configpolicy_util", 77 "data_share:datashare_consumer", 78 "ffrt:libffrt", 79 "googletest:gmock_main", 80 "googletest:gtest_main", 81 "hilog:libhilog", 82 "image_framework:image_native", 83 "init:libbeget_proxy", 84 "init:libbegetutil", 85 "ipc:ipc_core", 86 "libinput:libinput-third-mmi", 87 "preferences:native_preferences", 88 "safwk:system_ability_fwk", 89 "samgr:samgr_proxy", 90 ] 91 92 if (security_component_enable) { 93 external_deps += [ "security_component_manager:libsecurity_component_sdk" ] 94 } 95 96 if (resource_schedule_service_enabled) { 97 external_deps += [ "resource_schedule_service:ressched_client" ] 98 } 99} 100