• 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("//foundation/distributeddatamgr/pasteboard/pasteboard.gni")
15
16import("//build/config/features.gni")
17import("//build/ohos.gni")
18import("//build/test.gni")
19
20ohos_fuzztest("PasteboardDisposableFuzzTest") {
21  module_out_path = "pasteboard/pasteboard"
22
23  fuzz_config_file = "${pasteboard_root_path}/test/fuzztest/pasteboarddisposable_fuzzer"
24
25  cflags = [
26    "-g",
27    "-O0",
28    "-fno-omit-frame-pointer",
29    "-fno-access-control",
30  ]
31
32  include_dirs = [
33    "${pasteboard_framework_path}/include",
34    "${pasteboard_service_path}/core/include",
35    "${pasteboard_service_path}/test/unittest/mock/access_token",
36    "${pasteboard_utils_path}/native/include",
37  ]
38
39  sources = [
40    "${pasteboard_framework_path}/ffrt/ffrt_utils.cpp",
41    "${pasteboard_framework_path}/permission/permission_utils.cpp",
42    "${pasteboard_service_path}/core/src/pasteboard_disposable_manager.cpp",
43    "${pasteboard_service_path}/test/unittest/mock/access_token/accesstoken_kit_virtual.cpp",
44    "${pasteboard_utils_path}/native/src/pasteboard_common.cpp",
45    "pasteboarddisposable_fuzzer.cpp"
46  ]
47
48  deps = [
49    "${pasteboard_framework_path}:pasteboard_framework",
50    "${pasteboard_innerkits_path}:pasteboard_client",
51    "${pasteboard_innerkits_path}:pasteboard_data",
52  ]
53
54  external_deps = [
55    "bundle_framework:appexecfwk_core",
56    "c_utils:utils",
57    "ffrt:libffrt",
58    "hilog:libhilog",
59    "init:libbegetutil",
60    "ipc:ipc_single",
61  ]
62}
63
64group("fuzztest") {
65  testonly = true
66  deps = [ ":PasteboardDisposableFuzzTest" ]
67}
68