• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/window_manager"
19
20##############################fuzztest##########################################
21ohos_fuzztest("PictureInPictureFuzzTest") {
22  fuzz_config_file = "."
23  module_out_path = module_output_path
24
25  include_dirs = [
26    "${window_base_path}/window_scene",
27    "${window_base_path}/window_scene/session_manager/include",
28    "${window_base_path}/window_scene/session_manager/include/zidl",
29    "../",
30
31    "${window_base_path}/window_scene/session/host/include",
32    "${window_base_path}/window_scene/session/host/include/zidl",
33    "${window_base_path}/window_scene/session/container/include/zidl",
34
35    # for window_manager
36    "${window_base_path}/utils/include",
37    "${window_base_path}/wm/include",
38    "${window_base_path}/wm/include/zidl",
39  ]
40  cflags = [
41    "-g",
42    "-O0",
43    "-fno-omit-frame-pointer",
44  ]
45  sources = [ "pictureinpicture_fuzzer.cpp"]
46  deps = [
47    "${window_base_path}/dm:libdm",
48    "${window_base_path}/utils:libwmutil",
49    "${window_base_path}/utils:libwmutil_base",
50    "${window_base_path}/window_scene/common:window_scene_common",
51    "${window_base_path}/window_scene/intention_event/service:intention_event_anr_manager",
52    "${window_base_path}/window_scene/screen_session_manager_client:screen_session_manager_client",
53    "${window_base_path}/window_scene/session:scene_session",
54    "${window_base_path}/window_scene/session:screen_session",
55    "${window_base_path}/window_scene/session_manager:scene_session_manager",
56    "${window_base_path}/window_scene/session_manager:session_manager",
57    "${window_base_path}/wm:libwm",
58  ]
59  external_deps = [
60    "ability_base:configuration",
61    "ability_base:session_info",
62    "ability_base:want",
63    "ability_runtime:ability_context_native",
64    "ability_runtime:ability_deps_wrapper",
65    "ability_runtime:ability_manager",
66    "ability_runtime:ability_start_setting",
67    "ability_runtime:app_manager",
68    "ability_runtime:mission_info",
69    "ability_runtime:session_handler",
70    "ace_engine:ace_uicontent",
71    "bundle_framework:appexecfwk_base",
72    "bundle_framework:appexecfwk_core",
73    "c_utils:utils",
74    "config_policy:configpolicy_util",
75    "dsoftbus:softbus_client",
76    "eventhandler:libeventhandler",
77    "ffrt:libffrt",
78    "graphic_2d:librender_service_client",
79    "graphic_2d:librender_service_base",
80    "hicollie:libhicollie",
81    "hilog:libhilog",
82    "hitrace:hitrace_meter",
83    "image_framework:image_native",
84    "init:libbegetutil",
85    "input:libmmi-client",
86    "ipc:ipc_single",
87    "libxml2:libxml2",
88    "napi:ace_napi",
89    "resource_management:global_resmgr",
90    "samgr:samgr_proxy",
91  ]
92}
93
94###############################################################################
95group("fuzztest") {
96  testonly = true
97  deps = []
98
99  deps += [
100    # deps file
101    ":PictureInPictureFuzzTest",
102  ]
103}
104###############################################################################
105