# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("//foundation/multimedia/player_framework/config.gni") module_output_path = "$MODULE_OUTPUT_PATH/avmetadata" ohos_unittest("avmetadata_unit_test") { module_out_path = module_output_path include_dirs = [ "./include", "//foundation/multimedia/player_framework/interfaces/inner_api/native", "//foundation/multimedia/player_framework/services/utils/include", "//drivers/peripheral/display/interfaces/include", "//foundation/multimedia/image_framework/interfaces/innerkits/include", "//foundation/window/window_manager/interfaces/innerkits/wm", "//foundation/multimedia/player_framework/frameworks/native/player", "//foundation/multimedia/player_framework/test/unittest/common/include", ] cflags = [ "-Wall", "-Werror", ] if (player_framework_support_metadata) { sources = [ "src/avmetadata_mock.cpp", "src/avmetadata_unit_test.cpp", ] } external_deps = [ "c_utils:utils", "graphic_surface:surface", "graphic_surface:sync_fence", "hilog:libhilog", "init:libbegetutil", "qos_manager:qos", ] deps = [ "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", "//foundation/multimedia/image_framework/interfaces/innerkits:image_native", "//foundation/multimedia/player_framework/interfaces/inner_api/native:media_client", "//foundation/multimedia/player_framework/services/utils:media_service_utils", "//foundation/window/window_manager/wm:libwm", ] defines = [] if (player_framework_check_video_is_hdr_vivid) { defines += [ "CHECKING_VIDEO_IS_HDR_VIVID" ] } resource_config_file = "//foundation/multimedia/player_framework/test/unittest/resources/ohos_test.xml" }