• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//build/config/features.gni")
15import("//build/ohos.gni")
16import("//build/test.gni")
17module_output_path = "customization/enterprise_device_management"
18
19ohos_fuzztest("EnterpriseDeviceMgrStubFuzzTest") {
20  module_out_path = module_output_path
21
22  fuzz_config_file = "."
23
24  cflags = [
25    "-g",
26    "-fno-omit-frame-pointer",
27  ]
28
29  include_dirs = [
30    "../../unittest/include",
31    "../../../interfaces/inner_api/common/include",
32  ]
33
34  sources = [
35    "../../unittest/src/utils.cpp",
36    "enterprise_device_mgr_stub_fuzzer.cpp",
37  ]
38
39  configs = [ "../../../common/config:coverage_flags" ]
40
41  deps = [
42    "../../../common/native:edm_commom",
43    "../../unittest:edmservice_static",
44  ]
45
46  external_deps = [
47    "ability_base:want",
48    "ability_runtime:app_manager",
49    "access_token:libaccesstoken_sdk",
50    "access_token:libnativetoken",
51    "access_token:libtoken_setproc",
52    "bundle_framework:appexecfwk_base",
53    "bundle_framework:appexecfwk_core",
54    "c_utils:utils",
55    "hilog:libhilog",
56    "init:libbegetutil",
57    "ipc:ipc_core",
58    "relational_store:native_rdb",
59    "safwk:system_ability_fwk",
60    "samgr:samgr_proxy",
61  ]
62
63  subsystem_name = "customization"
64  part_name = "enterprise_device_management"
65}
66