• 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("../../../../windowmanager_aafwk.gni")
17
18module_output_path = "window_manager/wms"
19
20##############################fuzztest##########################################
21ohos_fuzztest("WindowSceneFuzzTest") {
22  fuzz_config_file = "."
23  module_out_path = module_output_path
24  include_dirs = [
25    "../../../../wmserver/include",
26    "../../../../interfaces/innerkits/dm",
27    "../../../../interfaces/innerkits/wm",
28    "//foundation/graphic/graphic_2d/interfaces/innerkits/surface",
29    "//commonlibrary/c_utils/base/include",
30
31    # for abilityContext
32    "${ability_runtime_path}/interfaces/kits/native/ability/ability_runtime",
33    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context",
34    "//third_party/node/deps/icu-small/source/common",
35    "${ability_runtime_inner_api_path}/ability_manager/include",
36    "//foundation/ability/ability_base/interfaces/kits/native/configuration/include/",
37
38    # abilityContext end
39  ]
40
41  configs = [
42    "../..:configs_cc_ld",
43    "../../../../resources/config/build:coverage_flags",
44  ]
45
46  sources = [ "windowscene_fuzzer.cpp" ]
47  deps = [
48    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
49    "${window_base_path}/dm:libdm",
50    "${window_base_path}/wm:libwm",
51  ]
52
53  external_deps = [
54    "ability_base:configuration",
55    "ability_base:want",
56    "ability_runtime:ability_context_native",
57    "ace_engine:ace_uicontent",
58    "c_utils:utils",
59    "graphic_2d:librender_service_client",
60    "hilog:libhilog",
61    "ipc:ipc_single",
62    "napi:ace_napi",
63  ]
64}
65
66###############################################################################
67group("fuzztest") {
68  testonly = true
69  deps = []
70
71  deps += [
72    # deps file
73    ":WindowSceneFuzzTest",
74  ]
75}
76###############################################################################
77