• 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/ohos.gni")
17import("//build/test.gni")
18
19##############################fuzztest##########################################
20ohos_fuzztest("ScreenlockServiceFuzzTest") {
21  module_out_path = "theme/screenlock_mgr"
22
23  fuzz_config_file =
24      "//base/theme/screenlock_mgr/test/fuzztest/screenlockservice_fuzzer"
25
26  include_dirs = [
27    "//foundation/arkui/napi/interfaces/kits",
28    "//third_party/node/src",
29    "//foundation/ability/ability_runtime/services/common/include",
30    "//utils/system/safwk/native/include",
31    "//base/theme/screenlock_mgr/interfaces/kits/napi/include",
32    "//base/theme/screenlock_mgr/services/include",
33    "//base/theme/screenlock_mgr/utils/include",
34  ]
35
36  cflags = [
37    "-g",
38    "-O0",
39    "-Wno-unused-variable",
40    "-fno-omit-frame-pointer",
41  ]
42
43  deps = [
44    "//base/theme/screenlock_mgr/frameworks/kitsimpl:screenlock_client",
45    "//base/theme/screenlock_mgr/interfaces/kits/napi:screenlock_static",
46    "//base/theme/screenlock_mgr/services:screenlock_server",
47    "//base/theme/screenlock_mgr/utils:screenlock_utils",
48    "//foundation/arkui/napi:ace_napi",
49  ]
50
51  external_deps = [
52    "c_utils:utils",
53    "hiviewdfx_hilog_native:libhilog",
54    "ipc:ipc_core",
55    "window_manager:libdm",
56  ]
57
58  sources = [ "screenlockservice_fuzzer.cpp" ]
59}
60
61###############################################################################
62group("fuzztest") {
63  testonly = true
64  deps = []
65  deps += [
66    # deps file
67    ":ScreenlockServiceFuzzTest",
68  ]
69}
70###############################################################################
71