• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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")
16module_output_path = "sharing/wfdsink"
17
18ohos_fuzztest("WfdGetSinkConfigFuzzTest") {
19  module_out_path = module_output_path
20  sharing_root = "../../../../"
21  fuzz_config_file = "../wfdgetsinkconfig_fuzzer"
22
23  include_dirs = [ "${sharing_root}/interfaces/innerkits/native/wfd/include" ]
24
25  deps = [ "${sharing_root}/interfaces/innerkits/native/wfd:sharingwfd_client" ]
26
27  external_deps = [
28    "c_utils:utils",
29    "graphic_surface:surface",
30    "hilog:libhilog",
31    "ipc:ipc_single",
32  ]
33
34  cflags = [
35    "-g",
36    "-O0",
37    "-Wno-unused-variable",
38    "-fno-omit-frame-pointer",
39  ]
40
41  sources = [ "wfd_get_sink_config_fuzzer.cpp" ]
42}
43
44group("fuzztest") {
45  testonly = true
46  deps = [ ":WfdGetSinkConfigFuzzTest" ]
47}
48