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