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}/util/common/include/input_event_data_transformation.h", 45 "${mmi_path}/test/unittest/standalone/include/", 46 "${mmi_path}/interfaces/native/innerkits/proxy/include", 47 "${mmi_path}/interfaces/native/innerkits/event/include", 48 "${mmi_path}/service/nap_process/include", 49 "${mmi_path}/util/socket/include", 50 "$root_out_dir/diff_libinput_mmi/export_include", 51 ] 52 53 sources = [ 54 "${mmi_path}/frameworks/proxy/events/src/pointer_event.cpp", 55 "${mmi_path}/service/event_handler/src/input_event_handler.cpp", 56 "${mmi_path}/service/fingerprint_event_processor/src/fingerprint_event_processor.cpp", 57 "${mmi_path}/service/monitor/src/event_monitor_handler.cpp", 58 "${mmi_path}/service/subscriber/src/key_gesture_manager.cpp", 59 "${mmi_path}/util/common/src/input_event_data_transformation.cpp", 60 "${mmi_path}/util/network/src/stream_buffer.cpp", 61 "src/fingerprint_event_processor_test.cpp", 62 ] 63 64 deps = [ 65 "${mmi_path}/frameworks/proxy:libmmi-client", 66 "${mmi_path}/service:libmmi-server", 67 "${mmi_path}/test/facility/mock:mmi_mock_sources", 68 "${mmi_path}/util:libmmi-util", 69 ] 70 71 external_deps = [ 72 "ability_base:want", 73 "ability_runtime:ability_manager", 74 "c_utils:utils", 75 "config_policy:configpolicy_util", 76 "data_share:datashare_consumer", 77 "ffrt:libffrt", 78 "googletest:gmock_main", 79 "googletest:gtest_main", 80 "hilog:libhilog", 81 "image_framework:image_native", 82 "init:libbeget_proxy", 83 "init:libbegetutil", 84 "ipc:ipc_core", 85 "libinput:libinput-third-mmi", 86 "preferences:native_preferences", 87 "safwk:system_ability_fwk", 88 "samgr:samgr_proxy", 89 ] 90 91 if (security_component_enable) { 92 external_deps += [ "security_component_manager:libsecurity_component_sdk" ] 93 } 94 95 if (resource_schedule_service_enabled) { 96 external_deps += [ "resource_schedule_service:ressched_client" ] 97 } 98} 99