• 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
14#####################hydra-fuzz###################
15import("//build/config/features.gni")
16import("//build/test.gni")
17import(
18    "//foundation/distributedhardware/distributed_screen/distributedscreen.gni")
19
20##############################fuzztest##########################################
21ohos_fuzztest("UnPluginHardwareFuzzTest") {
22  module_out_path = "distributed_screen/dscreenhandler"
23
24  fuzz_config_file = "${distributedscreen_path}/screenhandler/test/fuzztest/unpluginhardware_fuzzer"
25
26  include_dirs = [
27    "//third_party/json/include",
28    "${windowmanager_path}/interfaces/innerkits/dm",
29    "${mediastandard_path}/interfaces/innerkits/native/media/include",
30    "${fwk_common_path}/utils/include",
31  ]
32
33  include_dirs += [
34    "include",
35    "${common_path}/include",
36    "${distributedscreen_path}/screenhandler/include",
37    "${fwk_services_path}/distributedhardwarefwkservice/include/localhardwaremanager",
38    "//drivers/peripheral/base",
39    "//drivers/peripheral/display/interfaces/include",
40    "//foundation/arkui/ace_engine/frameworks/base/utils",
41    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
42    "//foundation/distributedhardware/distributed_hardware_fwk/common/utils/include",
43    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
44    "//foundation/graphic/graphic_2d/interfaces/inner_api/common",
45    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include",
46    "//foundation/graphic/graphic_2d/utils/buffer_handle/export",
47    "//foundation/window/window_manager/utils/include",
48  ]
49
50  cflags = [
51    "-g",
52    "-O0",
53    "-Wno-unused-variable",
54    "-fno-omit-frame-pointer",
55  ]
56
57  sources = [ "unpluginhardware_fuzzer.cpp" ]
58
59  deps = [
60    "${distributedscreen_path}/screenhandler:distributed_screen_handler",
61    "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr",
62  ]
63
64  defines = [
65    "HI_LOG_ENABLE",
66    "DH_LOG_TAG=\"UnPluginHardwareFuzzTest\"",
67    "LOG_DOMAIN=0xD004100",
68  ]
69
70  external_deps = [ "c_utils:utils" ]
71}
72
73###############################################################################
74group("fuzztest") {
75  testonly = true
76  deps = []
77  deps += [ ":UnPluginHardwareFuzzTest" ]
78}
79###############################################################################
80