1# Copyright (c) 2022 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" 19 20##############################fuzztest########################################## 21ohos_fuzztest("AVmetadataFetchFrameAtTimeFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = "../../../../test/fuzztest/avmetadata_fuzztest/avmetadatafetchframeattime_fuzzer" 24 resource_config_file = "../../../../test/fuzztest/resource/ohos_test.xml" 25 26 include_dirs = [ 27 "../../../../interfaces/inner_api/native", 28 "../../../../services/utils/include", 29 "../../../../test/fuzztest/common/", 30 ] 31 cflags = [ 32 "-std=c++17", 33 "-fno-rtti", 34 "-fno-exceptions", 35 "-Wall", 36 "-fno-common", 37 "-fstack-protector-strong", 38 "-Wshadow", 39 "-FPIC", 40 "-FS", 41 "-O2", 42 "-D_FORTIFY_SOURCE=2", 43 "-fvisibility=hidden", 44 "-Wformat=2", 45 "-Wfloat-equal", 46 "-Wdate-time", 47 "-Werror", 48 "-Wextra", 49 "-Wimplicit-fallthrough", 50 "-Wsign-compare", 51 "-Wunused-parameter", 52 ] 53 if (player_framework_support_metadata) { 54 sources = [ 55 "../../../../test/fuzztest/common/aw_common.cpp", 56 "../../../../test/fuzztest/common/test_metadata.cpp", 57 "avmetadatafetchframeattime_fuzzer.cpp", 58 ] 59 } 60 deps = [] 61 external_deps = [ 62 "c_utils:utils", 63 "graphic_2d:librender_service_client", 64 "graphic_surface:surface", 65 "hilog:libhilog", 66 "player_framework:media_client", 67 "window_manager:libwm", 68 ] 69} 70