• 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("AVmetadataHelperFuzzTest") {
23  module_out_path = module_output_path
24  fuzz_config_file =
25      "../../../../test/fuzztest/avmetadata_fuzztest/avmetadatahelper_fuzzer"
26
27  include_dirs = [
28    "./include",
29    "$MEDIA_ROOT_DIR/services/include",
30    "$MEDIA_ROOT_DIR/services/services/avmetadatahelper/ipc",
31    "$MEDIA_ROOT_DIR/services/services/sa_media/ipc",
32    "$MEDIA_ROOT_DIR/services/services/sa_media/server",
33    "$MEDIA_ROOT_DIR/services/services/sa_media/server_manager",
34    "$MEDIA_ROOT_DIR/test/fuzztest/avmetadata_fuzztest",
35    "$MEDIA_ROOT_DIR/test/fuzztest/common",
36  ]
37
38  sources = [
39    "$MEDIA_ROOT_DIR/test/fuzztest/common/stub_common.cpp",
40    "src/avmetadatahelper_fuzzer.cpp",
41  ]
42
43  deps = [ "$MEDIA_ROOT_DIR/services/services:media_service" ]
44
45  external_deps = [
46    "c_utils:utils",
47    "graphic_2d:librender_service_base",
48    "hilog:libhilog",
49    "image_framework:image_native",
50    "ipc:ipc_single",
51    "player_framework:media_client",
52    "safwk:system_ability_fwk",
53    "samgr:samgr_proxy",
54  ]
55}
56