1# Copyright (c) 2022 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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/test.gni") 17import("../../../multimodalinput_mini.gni") 18module_output_path = "input/input" 19 20##############################fuzztest########################################## 21ohos_fuzztest("EnableCombineKeyFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = "${mmi_path}/test/fuzztest/enablecombinekey_fuzzer" 24 include_dirs = [ 25 "${mmi_path}/interfaces/util/common/include", 26 "${mmi_path}/service/connect_manager/include", 27 "${mmi_path}/service/filter/include/", 28 "${mmi_path}/service/nap_process/include/", 29 "${mmi_path}/service/module_loader/include", 30 "${mmi_path}/service/delegate_task/include", 31 "${mmi_path}/service/event_handler/include", 32 "${mmi_path}/service/event_dispatch/include", 33 "${mmi_path}/service/interceptor/include", 34 "${mmi_path}/service/monitor/include", 35 "${mmi_path}/service/key_event_normalize/include", 36 "${mmi_path}/service/window_manager/include", 37 "${mmi_path}/service/key_command/include", 38 "${mmi_path}/service/subscriber/include", 39 "${mmi_path}/service/mouse_event_normalize/include", 40 "${mmi_path}/service/timer_manager/include", 41 "${mmi_path}/service/libinput_adapter/include", 42 "${mmi_path}/service/message_handle/include", 43 ] 44 cflags = [ 45 "-g", 46 "-O0", 47 "-Wno-unused-variable", 48 "-fno-omit-frame-pointer", 49 "-Dprivate=public", 50 "-Dprotected=public", 51 ] 52 sources = [ "enablecombinekey_fuzzer.cpp" ] 53 54 deps = [ 55 "${mmi_path}/frameworks/proxy:libmmi-client", 56 "${mmi_path}/service:libmmi-server", 57 "${mmi_path}/util:libmmi-util", 58 ] 59 60 external_deps = [ 61 "ability_runtime:app_manager", 62 "c_utils:utils", 63 "data_share:datashare_consumer", 64 "graphic_2d:2d_graphics", 65 "graphic_2d:librender_service_client", 66 "hilog:libhilog", 67 "image_framework:image_native", 68 "ipc:ipc_single", 69 "ipc:ipc_single", 70 "libinput:libinput-third-mmi", 71 "preferences:native_preferences", 72 "safwk:system_ability_fwk", 73 "samgr:samgr_proxy", 74 "window_manager:libwm", 75 ] 76 77 if (security_component_enable) { 78 external_deps += [ "security_component_manager:libsecurity_component_sdk" ] 79 } 80 81 if (enable_player_framework) { 82 external_deps += [ "player_framework:media_client" ] 83 } 84} 85 86############################################################################### 87group("fuzztest") { 88 testonly = true 89 deps = [] 90 deps += [ 91 # deps file 92 ":EnableCombineKeyFuzzTest", 93 ] 94} 95############################################################################### 96