• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/arkui/ace_engine/interfaces/inner_api/ui_service_manager:ui_service_mgr",
46    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
47    "//foundation/window/window_manager/dmserver:libdms",
48    "//foundation/window/window_manager/dm:libdm",
49    "//foundation/window/window_manager/etc:wms_etc",
50    "//foundation/window/window_manager/utils:libwmutil",
51    "//foundation/window/window_manager/wm:libwm",
52    "//foundation/window/window_manager/wmserver:libwms",
53    "//third_party/libxml2:libxml2",
54  ]
55
56  external_deps = [
57    "ability_base:want",
58    "ability_runtime:ability_manager",
59    "c_utils:utils",
60    "common_event_service:cesfwk_innerkits",
61    "config_policy:configpolicy_util",
62    "display_manager:displaymgr",
63    "eventhandler:libeventhandler",
64    "graphic_standard:window_animation",
65    "hicollie_native:libhicollie",
66    "hilog_native:libhilog",
67    "hisysevent_native:libhisysevent",
68    "hitrace_native:hitrace_meter",
69    "input:libmmi-client",
70    "ipc:ipc_core",
71    "power_manager:powermgr_client",
72    "safwk:system_ability_fwk",
73  ]
74}
75
76###############################################################################
77group("fuzztest") {
78  testonly = true
79  deps = []
80
81  deps += [
82    # deps file
83    ":WindowPairFuzzTest",
84  ]
85}
86###############################################################################
87