• 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.
13import("../../../device_status.gni")
14
15###############################hydra_fuzz#################################
16import("//build/config/features.gni")
17import("//build/test.gni")
18module_output_path = "${device_status_fuzz_output_path}"
19deps_ex = [
20    "access_token:libaccesstoken_sdk",
21    "bundle_framework:appexecfwk_core",
22    "eventhandler:libeventhandler",
23    "graphic_2d:librender_service_client",
24    "graphic_2d:librender_service_base",
25    "hicollie:libhicollie",
26    "hilog:libhilog",
27    "image_framework:image_native",
28    "input:libmmi-client",
29    "samgr:samgr_proxy",
30    "window_manager:libdm",
31    "window_manager:libwm",
32]
33
34###############################fuzztest#################################
35ohos_fuzztest("MsdpIntentionServiceFuzzTest") {
36  module_out_path = module_output_path
37  fuzz_config_file = "${device_status_root_path}/test/fuzztest/intentionservice_fuzzer"
38  include_dirs = [
39    "${device_status_root_path}/libs/interface",
40    "${device_status_service_path}/interaction/drag/include",
41    "${device_status_service_path}/communication/service/include",
42    "${device_status_utils_path}/include",
43  ]
44
45  cflags = [
46    "-g",
47    "-O0",
48    "-fno-omit-frame-pointer",
49    "-Dprivate=public",
50    "-Dprotected=public",
51  ]
52
53  sources = [ "intention_service_fuzzer.cpp" ]
54
55  deps = [
56    "${device_status_root_path}/intention/services/intention_service:intention_service",
57    "${device_status_root_path}/intention/boomerang/server:intention_boomerang_server",
58    "${device_status_root_path}/intention/cooperate/server:intention_cooperate_server",
59    "${device_status_root_path}/intention/drag/server:intention_drag_server",
60    "${device_status_root_path}/intention/ipc/socket:intention_socket_server",
61    "${device_status_root_path}/intention/ipc/tunnel:intention_server_stub",
62    "${device_status_root_path}/intention/onscreen/server:intention_on_screen_server",
63    "${device_status_root_path}/intention/prototype:intention_prototype",
64    "${device_status_root_path}/intention/stationary/server:intention_stationary_server",
65    "${device_status_root_path}/utils/common:devicestatus_util",
66    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
67  ]
68
69  external_deps = deps_ex
70}
71
72group("fuzztest") {
73  testonly = true
74  deps = []
75  deps += [ ":MsdpIntentionServiceFuzzTest" ]
76}
77