# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/config/features.gni") import("//build/test.gni") import("../../../../windowmanager_aafwk.gni") module_output_path = "window_manager/window_manager" ##############################fuzztest########################################## ohos_fuzztest("SceneSessionMgrLStubRegFuzzTest") { fuzz_config_file = "." module_out_path = module_output_path include_dirs = [ "${window_base_path}/window_scene", "${window_base_path}/window_scene/session_manager/include", "${window_base_path}/window_scene/session_manager/include/zidl", "../", # for session_manager "${window_base_path}/wmserver/include", "${window_base_path}/wmserver/include/zidl", # for window_manager "${window_base_path}/utils/include", "${window_base_path}/wm/include", "${window_base_path}/wm/include/zidl", ] cflags = [ "-g", "-O0", "-fno-omit-frame-pointer", ] sources = [ "scenesessionmgrlstubreg_fuzzer.cpp" ] deps = [ "${window_base_path}/dm:libdm", "${window_base_path}/utils:libwmutil", "${window_base_path}/utils:libwmutil_base", "${window_base_path}/window_scene/common:window_scene_common", "${window_base_path}/window_scene/intention_event/service:intention_event_anr_manager", "${window_base_path}/window_scene/screen_session_manager:screen_session_manager_client", "${window_base_path}/window_scene/session:scene_session", "${window_base_path}/window_scene/session:screen_session", "${window_base_path}/window_scene/session_manager:scene_session_manager", ] public_external_deps = [ "ability_runtime:session_handler", "accessibility:accessibility_common", "graphic_2d:window_animation", "input:libmmi-client", "input:libmmi-napi", ] external_deps = [ "ability_base:configuration", "ability_base:session_info", "ability_base:want", "ability_runtime:ability_context_native", "ability_runtime:ability_deps_wrapper", "ability_runtime:ability_manager", "ability_runtime:ability_start_setting", "ability_runtime:app_manager", "ability_runtime:mission_info", "ability_runtime:session_handler", "ace_engine:ace_uicontent", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", "hicollie:libhicollie", "hilog:libhilog", "hitrace:hitrace_meter", "image_framework:image_native", "init:libbegetutil", "input:libmmi-client", "ipc:ipc_single", "libxml2:libxml2", "napi:ace_napi", "resource_management:global_resmgr", "samgr:samgr_proxy", ] } ############################################################################### group("fuzztest") { testonly = true deps = [] deps += [ # deps file ":SceneSessionMgrLStubRegFuzzTest", ] } ###############################################################################