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