• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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  "ability_runtime:app_manager",
21  "device_manager:devicemanagersdk",
22  "access_token:libaccesstoken_sdk",
23  "bundle_framework:appexecfwk_core",
24  "cJSON:cjson",
25  "c_utils:utils",
26  "common_event_service:cesfwk_innerkits",
27  "data_share:datashare_consumer",
28  "graphic_2d:libcomposer",
29  "graphic_2d:window_animation",
30  "graphic_2d:librender_service_client",
31  "hisysevent:libhisysevent",
32  "hitrace:hitrace_meter",
33  "hilog:libhilog",
34  "libxml2:libxml2",
35  "input:libmmi-client",
36  "image_framework:image_native",
37  "safwk:system_ability_fwk",
38  "samgr:samgr_proxy",
39  "window_manager:libwm",
40  "window_manager:libdm",
41]
42
43###############################fuzztest#################################
44ohos_fuzztest("UpdatePreviewStyleWithAnimationStubFuzzTest") {
45  module_out_path = module_output_path
46  fuzz_config_file = "${device_status_root_path}/test/fuzztest/updatepreviewstylewithanimationstub_fuzzer"
47  include_dirs = [
48    "${device_status_root_path}/libs/interface",
49    "${device_status_service_path}/interaction/drag/include",
50    "${device_status_service_path}/communication/service/include",
51    "${device_status_utils_path}/include",
52  ]
53
54  cflags = [
55    "-g",
56    "-O0",
57    "-fno-omit-frame-pointer",
58    "-Dprivate=public",
59    "-Dprotected=public",
60  ]
61
62  sources = [ "updatepreviewstylewithanimationstub_fuzzer.cpp" ]
63
64  deps = [
65    "${device_status_interfaces_path}/innerkits:devicestatus_client",
66    "${device_status_root_path}/services:devicestatus_static_service",
67    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
68    "${device_status_utils_path}:devicestatus_util",
69  ]
70
71  external_deps = deps_ex
72}
73
74group("fuzztest") {
75  testonly = true
76  deps = []
77  deps += [ ":UpdatePreviewStyleWithAnimationStubFuzzTest" ]
78}
79