• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/test.gni")
16import("./../../../multimedia_camera_framework.gni")
17
18ohos_fuzztest("ProfessionSessionFuzzTest") {
19  module_out_path = "camera_framework/camera_framework"
20  fuzz_config_file = "../professionsession_fuzzer"
21
22  include_dirs = [
23    "${multimedia_camera_framework_path}/interfaces/inner_api/native/camera/include",
24    "${multimedia_camera_framework_path}/interfaces/inner_api/native/camera/include/output/",
25    "${multimedia_camera_framework_path}/services/camera_service/include",
26    "${multimedia_camera_framework_path}/services/camera_service/binder/base/include",
27    "${multimedia_camera_framework_path}/services/camera_service/binder/client/include",
28    "${multimedia_camera_framework_path}/services/camera_service/binder/server/include",
29  ]
30
31  cflags = [
32    "-g",
33    "-O0",
34    "-Wno-unused-variable",
35    "-fno-omit-frame-pointer",
36  ]
37
38  sources = [ "profession_session_fuzzer.cpp" ]
39
40  deps = [ "${multimedia_camera_framework_path}/frameworks/native/camera:camera_framework" ]
41  external_deps = [
42    "ability_base:want",
43    "access_token:libaccesstoken_sdk",
44    "access_token:libnativetoken",
45    "access_token:libprivacy_sdk",
46    "access_token:libtoken_setproc",
47    "bundle_framework:appexecfwk_base",
48    "bundle_framework:appexecfwk_core",
49    "c_utils:utils",
50    "drivers_interface_camera:libcamera_proxy_1.0",
51    "drivers_interface_camera:libcamera_proxy_1.1",
52    "drivers_interface_camera:metadata",
53    "drivers_peripheral_display:hdi_gralloc_client",
54    "graphic_2d:librender_service_client",
55    "graphic_surface:surface",
56    "hdf_core:libhdi",
57    "hicollie:libhicollie",
58    "hilog:libhilog",
59    "hisysevent:libhisysevent",
60    "hitrace:hitrace_meter",
61    "ipc:ipc_core",
62    "ipc:ipc_single",
63    "os_account:libaccountkits",
64    "os_account:os_account_innerkits",
65    "safwk:system_ability_fwk",
66    "samgr:samgr_proxy",
67    "window_manager:libdm",
68  ]
69}
70
71group("fuzztest") {
72  testonly = true
73  deps = [ ":ProfessionSessionFuzzTest" ]
74}
75