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 14import("//build/config/features.gni") 15import("//build/test.gni") 16 17module_output_path = "window_manager/wms" 18 19##############################fuzztest########################################## 20ohos_fuzztest("WindowRootFuzzTest") { 21 fuzz_config_file = 22 "//foundation/window/window_manager/test/fuzztest/wms/windowroot_fuzzer" 23 module_out_path = module_output_path 24 include_dirs = [ 25 "//foundation/window/window_manager/wm/include", 26 "//foundation/window/window_manager/dm/include", 27 "//foundation/window/window_manager/dm/include/zidl", 28 "//foundation/window/window_manager/wmserver/include", 29 "//foundation/window/window_manager/wmserver/include/zidl", 30 "//foundation/window/window_manager/wmserver/include/window_snapshot", 31 "//foundation/window/window_manager/dmserver/include", 32 "//foundation/window/window_manager/snapshot/include", 33 "//foundation/window/window_manager/utils/include", 34 "//foundation/window/window_manager/interfaces/innerkits/dm", 35 "//foundation/window/window_manager/interfaces/innerkits/wm", 36 "//foundation/graphic/graphic_2d/interfaces/innerkits/surface", 37 "//commonlibrary/c_utils/base/include", 38 ] 39 40 configs = [ 41 "//foundation/window/window_manager/test/fuzztest:configs_cc_ld", 42 "//foundation/window/window_manager/resources/config/build:coverage_flags", 43 "//foundation/window/window_manager/resources/config/build:testcase_flags", 44 ] 45 46 sources = [ "windowroot_fuzzer.cpp" ] 47 48 deps = [ 49 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 50 "//foundation/window/window_manager/dm:libdm", 51 "//foundation/window/window_manager/dmserver:libdms", 52 "//foundation/window/window_manager/utils:libwmutil", 53 "//foundation/window/window_manager/wm:libwm", 54 "//foundation/window/window_manager/wmserver:libwms", 55 ] 56 57 public_deps = [ "//foundation/arkui/napi:ace_napi" ] 58 59 external_deps = [ 60 "ability_base:want", 61 "ability_runtime:ability_manager", 62 "c_utils:utils", 63 "common_event_service:cesfwk_innerkits", 64 "config_policy:configpolicy_util", 65 "display_manager:displaymgr", 66 "eventhandler:libeventhandler", 67 "graphic_standard:window_animation", 68 "hicollie_native:libhicollie", 69 "hilog_native:libhilog", 70 "hisysevent_native:libhisysevent", 71 "hitrace_native:hitrace_meter", 72 "input:libmmi-client", 73 "ipc:ipc_core", 74 "power_manager:powermgr_client", 75 "safwk:system_ability_fwk", 76 ] 77} 78 79############################################################################### 80group("fuzztest") { 81 testonly = true 82 deps = [] 83 84 deps += [ 85 # deps file 86 ":WindowRootFuzzTest", 87 ] 88} 89############################################################################### 90