• 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
14import("//base/customization/enterprise_device_management/edm.gni")
15
16#####################hydra-fuzz###################
17import("//build/config/features.gni")
18import("//build/ohos.gni")
19import("//build/test.gni")
20module_output_path = "customization/enterprise_device_management"
21
22##############################fuzztest##########################################
23ohos_fuzztest("IsSuperAdminFuzzTest") {
24  module_out_path = module_output_path
25
26  fuzz_config_file = "//base/customization/enterprise_device_management/test/fuzztest/issuperadmin_fuzzer"
27
28  include_dirs = [
29    "//commonlibrary/c_utils/base/include",
30    "include",
31    "include/utils",
32    "//commonlibrary/c_utils/base:utils_config",
33    JSONCPP_INCLUDE_DIR,
34    "$SUBSYSTEM_DIR/common/native/include",
35  ]
36
37  cflags = [
38    "-g",
39    "-O0",
40    "-Wno-unused-variable",
41    "-fno-omit-frame-pointer",
42  ]
43  sources = [ "issuperadmin_fuzzer.cpp" ]
44
45  configs = [ "//base/customization/enterprise_device_management/common/config:coverage_flags" ]
46
47  deps = [ "$EDM_INNERKITS_PATH:edmservice_kits" ]
48
49  external_deps = [
50    "ability_base:want",
51    "bundle_framework:appexecfwk_base",
52    "bundle_framework:appexecfwk_core",
53    "c_utils:utils",
54    "ipc:ipc_core",
55    "safwk:system_ability_fwk",
56    "samgr:samgr_proxy",
57  ]
58
59  subsystem_name = "customization"
60  part_name = "enterprise_device_management"
61}
62