• 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    "c_utils:utils",
21    "graphic_2d:librender_service_base",
22    "graphic_2d:librender_service_client",
23    "hilog:libhilog",
24    "ipc:ipc_core",
25    "samgr:samgr_proxy",
26    "image_framework:image_native"
27]
28
29###############################fuzztest#################################
30ohos_fuzztest("MsdpIntentionClientFuzzTest") {
31  module_out_path = module_output_path
32  fuzz_config_file = "${device_status_root_path}/test/fuzztest/intentionclient_fuzzer"
33  include_dirs = [
34    "${device_status_root_path}/libs/interface",
35    "${device_status_service_path}/interaction/drag/include",
36    "${device_status_service_path}/communication/service/include",
37    "${device_status_utils_path}/include",
38  ]
39
40  cflags = [
41    "-g",
42    "-O0",
43    "-fno-omit-frame-pointer",
44    "-Dprivate=public",
45    "-Dprotected=public",
46  ]
47
48  sources = [ "intention_client_fuzzer.cpp" ]
49
50  deps = [
51    "${device_status_root_path}/intention/prototype:intention_prototype",
52    "${device_status_utils_path}:devicestatus_util",
53    "${device_status_root_path}/intention/ipc/sequenceable_types:sequenceable_types",
54    "${device_status_root_path}/intention/ipc/tunnel:intention_client",
55    "${device_status_interfaces_path}/innerkits:devicestatus_client",
56  ]
57
58  external_deps = deps_ex
59}
60
61group("fuzztest") {
62  testonly = true
63  deps = []
64  deps += [ ":MsdpIntentionClientFuzzTest" ]
65}
66