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/media_player" 19 20##############################fuzztest########################################## 21ohos_fuzztest("PlayerFileFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = 24 "../../../../test/fuzztest/player_fuzztest/playerfile_fuzzer" 25 resource_config_file = "../../../../test/fuzztest/resource/ohos_test.xml" 26 27 include_dirs = [ 28 "../../../../interfaces/inner_api/native", 29 "../../../../services/utils/include", 30 "../../../../test/fuzztest/common/", 31 ] 32 cflags = [ 33 "-g", 34 "-O0", 35 "-Wno-unused-variable", 36 "-fno-omit-frame-pointer", 37 ] 38 if (player_framework_support_player) { 39 sources = [ 40 "../../../../test/fuzztest/common/test_player.cpp", 41 "playerfile_fuzzer.cpp", 42 ] 43 } 44 external_deps = [ 45 "c_utils:utils", 46 "graphic_2d:librender_service_base", 47 "graphic_surface:surface", 48 "hilog:libhilog", 49 "player_framework:media_client", 50 "graphic_2d:librender_service_client", 51 "window_manager:libwm", 52 ] 53} 54 55############################################################################### 56 57