1f7a47986Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
2f7a47986Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f7a47986Sopenharmony_ci# you may not use this file except in compliance with the License.
4f7a47986Sopenharmony_ci# You may obtain a copy of the License at
5f7a47986Sopenharmony_ci#
6f7a47986Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f7a47986Sopenharmony_ci#
8f7a47986Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f7a47986Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f7a47986Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f7a47986Sopenharmony_ci# See the License for the specific language governing permissions and
12f7a47986Sopenharmony_ci# limitations under the License.
13f7a47986Sopenharmony_ci
14f7a47986Sopenharmony_ci#####################hydra-fuzz###################
15f7a47986Sopenharmony_ciimport("//build/config/features.gni")
16f7a47986Sopenharmony_ciimport("//build/ohos.gni")
17f7a47986Sopenharmony_ciimport("//build/test.gni")
18f7a47986Sopenharmony_cimodule_output_path = "enterprise_device_management/enterprise_device_management"
19f7a47986Sopenharmony_ci
20f7a47986Sopenharmony_ci##############################fuzztest##########################################
21f7a47986Sopenharmony_ciohos_fuzztest("GetBluetoothInfoPluginFuzzTest") {
22f7a47986Sopenharmony_ci  module_out_path = module_output_path
23f7a47986Sopenharmony_ci
24f7a47986Sopenharmony_ci  fuzz_config_file = "."
25f7a47986Sopenharmony_ci
26f7a47986Sopenharmony_ci  cflags = [
27f7a47986Sopenharmony_ci    "-g",
28f7a47986Sopenharmony_ci    "-O0",
29f7a47986Sopenharmony_ci    "-Wno-unused-variable",
30f7a47986Sopenharmony_ci    "-fno-omit-frame-pointer",
31f7a47986Sopenharmony_ci  ]
32f7a47986Sopenharmony_ci  sources = [
33f7a47986Sopenharmony_ci    "../common/src/common_fuzzer.cpp",
34f7a47986Sopenharmony_ci    "get_bluetooth_info_plugin_fuzzer.cpp",
35f7a47986Sopenharmony_ci  ]
36f7a47986Sopenharmony_ci
37f7a47986Sopenharmony_ci  include_dirs = [
38f7a47986Sopenharmony_ci    "../common/include",
39f7a47986Sopenharmony_ci    "../../../interfaces/inner_api/common/include",
40f7a47986Sopenharmony_ci  ]
41f7a47986Sopenharmony_ci
42f7a47986Sopenharmony_ci  configs = [ "../../../common/config:coverage_flags" ]
43f7a47986Sopenharmony_ci
44f7a47986Sopenharmony_ci  deps = [
45f7a47986Sopenharmony_ci    "../../../common/external:edm_external_adapters",
46f7a47986Sopenharmony_ci    "../../../common/native:edm_commom",
47f7a47986Sopenharmony_ci    "../../../interfaces/inner_api:edmservice_kits",
48f7a47986Sopenharmony_ci    "../../../interfaces/inner_api/plugin_kits:plugin_kits",
49f7a47986Sopenharmony_ci    "../../unittest/utils:edm_unittest_utils",
50f7a47986Sopenharmony_ci    "../enterprisedevicemgrstubmock_fuzzer:edmservice_fuzz_static",
51f7a47986Sopenharmony_ci  ]
52f7a47986Sopenharmony_ci
53f7a47986Sopenharmony_ci  external_deps = [
54f7a47986Sopenharmony_ci    "ability_base:want",
55f7a47986Sopenharmony_ci    "ability_runtime:app_manager",
56f7a47986Sopenharmony_ci    "access_token:libaccesstoken_sdk",
57f7a47986Sopenharmony_ci    "access_token:libnativetoken",
58f7a47986Sopenharmony_ci    "access_token:libtoken_setproc",
59f7a47986Sopenharmony_ci    "bundle_framework:appexecfwk_base",
60f7a47986Sopenharmony_ci    "bundle_framework:appexecfwk_core",
61f7a47986Sopenharmony_ci    "c_utils:utils",
62f7a47986Sopenharmony_ci    "hilog:libhilog",
63f7a47986Sopenharmony_ci    "init:libbegetutil",
64f7a47986Sopenharmony_ci    "ipc:ipc_core",
65f7a47986Sopenharmony_ci    "relational_store:native_rdb",
66f7a47986Sopenharmony_ci    "safwk:system_ability_fwk",
67f7a47986Sopenharmony_ci    "samgr:samgr_proxy",
68f7a47986Sopenharmony_ci  ]
69f7a47986Sopenharmony_ci
70f7a47986Sopenharmony_ci  subsystem_name = "customization"
71f7a47986Sopenharmony_ci  part_name = "enterprise_device_management"
72f7a47986Sopenharmony_ci}
73