• 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("//base/security/certificate_manager/cert_manager.gni")
15import("//build/config/features.gni")
16import("//build/test.gni")
17
18module_output_path = "certificate_manager/certificate_manager"
19
20##############################fuzztest##########################################
21ohos_fuzztest("CmOnRemoteRequestFuzzTest") {
22  module_out_path = module_output_path
23  fuzz_config_file =
24      "${cert_manager_root_dir}/test/fuzz_test/cmonremoterequest_fuzzer"
25
26  cflags = [
27    "-g",
28    "-O0",
29    "-Wno-unused-variable",
30    "-fno-omit-frame-pointer",
31  ]
32  sources = [ "cmonremoterequest_fuzzer.cpp" ]
33  deps = [
34    "${cert_manager_root_dir}/frameworks/cert_manager_standard/main/common:libcert_manager_common_standard_static",
35    "${cert_manager_root_dir}/interfaces/innerkits/cert_manager_standard/main:cert_manager_sdk",
36    "${cert_manager_root_dir}/services/cert_manager_standard:cert_manager_service",
37    "${cert_manager_root_dir}/services/cert_manager_standard/cert_manager_service/main/os_dependency:libcert_manager_service_os_dependency_standard_static",
38    "${cert_manager_root_dir}/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl:libcm_service_idl_standard_static",
39    "${cert_manager_root_dir}/test/fuzz_test/fuzz_test_common:libcert_manager_fuzz_test_common_static",
40  ]
41  external_deps = [
42    "access_token:libaccesstoken_sdk",
43    "access_token:libnativetoken",
44    "access_token:libtoken_setproc",
45    "bounds_checking_function:libsec_static",
46    "cJSON:cjson_static",
47    "c_utils:utils",
48    "eventhandler:libeventhandler",
49    "ipc:ipc_core",
50    "safwk:system_ability_fwk",
51    "selinux_adapter:librestorecon",
52  ]
53}
54
55###############################################################################
56group("fuzztest") {
57  testonly = true
58  deps = []
59
60  deps += [
61    # deps file
62    ":CmOnRemoteRequestFuzzTest",
63  ]
64}
65###############################################################################
66