• 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")
16import("//foundation/window/window_manager/windowmanager_aafwk.gni")
17
18module_output_path = "window_manager/wms"
19
20##############################fuzztest##########################################
21ohos_fuzztest("WindowFuzzTest") {
22  fuzz_config_file =
23      "//foundation/window/window_manager/test/fuzztest/wms/window_fuzzer"
24  module_out_path = module_output_path
25  include_dirs = [
26    "//foundation/window/window_manager/wm/include",
27    "//foundation/window/window_manager/dm/include",
28    "//foundation/window/window_manager/wmserver/include",
29    "//foundation/window/window_manager/interfaces/innerkits/wm",
30    "//foundation/window/window_manager/interfaces/innerkits/dm",
31    "//commonlibrary/c_utils/base/include",
32
33    # for abilityContext
34    "${ability_runtime_path}/interfaces/kits/native/ability/ability_runtime",
35    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context",
36    "//base/global/resource_management/interfaces/inner_api/include",
37    "//third_party/node/deps/icu-small/source/common",
38    "${ability_runtime_inner_api_path}/ability_manager/include",
39
40    # abilityContext end
41  ]
42
43  configs = [
44    "//foundation/window/window_manager/test/fuzztest:configs_cc_ld",
45    "//foundation/window/window_manager/resources/config/build:coverage_flags",
46    "//foundation/window/window_manager/resources/config/build:testcase_flags",
47  ]
48
49  sources = [ "window_fuzzer.cpp" ]
50  deps = [
51    "//foundation/window/window_manager/dm:libdm",
52    "//foundation/window/window_manager/wm:libwm",
53  ]
54
55  public_deps = [ "//foundation/arkui/napi:ace_napi" ]
56  external_deps = [
57    "ability_base:base",
58    "ability_base:want",
59    "ability_runtime:ability_context_native",
60    "ability_runtime:ability_manager",
61    "ace_engine:ace_uicontent",
62    "c_utils:utils",
63    "eventhandler:libeventhandler",
64    "graphic_standard:window_animation",
65    "hilog_native:libhilog",
66    "input:libmmi-client",
67    "ipc:ipc_core",
68    "multimedia_image_framework:image_native",
69  ]
70}
71
72###############################################################################
73group("fuzztest") {
74  testonly = true
75  deps = []
76
77  deps += [
78    # deps file
79    ":WindowFuzzTest",
80  ]
81}
82###############################################################################
83