• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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
14#####################hydra-fuzz###################
15import("//build/config/features.gni")
16import("//build/test.gni")
17import("//foundation/multimedia/player_framework/config.gni")
18module_output_path = "$MODULE_OUTPUT_PATH/avmetadata"
19MEDIA_ROOT_DIR = "//foundation/multimedia/player_framework/"
20
21##############################fuzztest##########################################
22ohos_fuzztest("AVmetadataHelperDataSrcFuzzTest") {
23  branch_protector_ret = "pac_ret"
24
25  module_out_path = module_output_path
26  fuzz_config_file = "../../../../test/fuzztest/avmetadata_fuzztest/avmetadatahelperdatasrc_fuzzer"
27
28  defines = [ "IMAGE_COLORSPACE_FLAG" ]
29  defines += player_framework_defines
30
31  sources = [
32    "$MEDIA_ROOT_DIR/services/services/media_data_source/ipc/media_data_source_stub.cpp",
33    "$MEDIA_ROOT_DIR/test/fuzztest/common/stub_common.cpp",
34    "src/avmetadatahelperdatasrc_fuzzer.cpp",
35  ]
36
37  include_dirs = [
38    "./include",
39    "$MEDIA_ROOT_DIR/services/include",
40    "$MEDIA_ROOT_DIR/services/services/avmetadatahelper/ipc",
41    "$MEDIA_ROOT_DIR/services/services/common",
42    "$MEDIA_ROOT_DIR/services/services/media_data_source/ipc",
43    "$MEDIA_ROOT_DIR/services/services/sa_media/ipc",
44    "$MEDIA_ROOT_DIR/services/services/sa_media/server",
45    "$MEDIA_ROOT_DIR/services/services/sa_media/server_manager",
46    "$MEDIA_ROOT_DIR/test/fuzztest/avmetadata_fuzztest",
47    "$MEDIA_ROOT_DIR/test/fuzztest/common",
48  ]
49
50  deps = [
51    "$MEDIA_ROOT_DIR/interfaces/inner_api/native:media_client",
52    "$MEDIA_ROOT_DIR/services/services:media_service",
53    "$MEDIA_ROOT_DIR/services/utils:media_service_utils",
54  ]
55
56  external_deps = [
57    "av_codec:av_codec_client",
58    "c_utils:utils",
59    "hilog:libhilog",
60    "image_framework:image_native",
61    "ipc:ipc_single",
62    "safwk:system_ability_fwk",
63    "samgr:samgr_proxy",
64  ]
65}
66