# Copyright (c) 2024 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/video_processing_engine/config.gni") ohos_unittest("aihdr_enhancer_unit_test") { module_out_path = UNIT_TEST_OUTPUT_PATH sanitize = { cfi = true cfi_cross_dso = true debug = false } cflags = VIDEO_PROCESSING_ENGINE_CFLAGS include_dirs = [ "$VIDEO_PROCESSING_ENGINE_ROOT_DIR", "$FRAMEWORK_DIR", "$ALGORITHM_DIR/common/include", "$ALGORITHM_DIR/extension_manager/include", "$INTERFACES_INNER_API_DIR", "$ALGORITHM_DIR/aihdr_enhancer/include", "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/services/include", ] sources = [ "aihdr_enhancer_unit_test.cpp" ] deps = [ "$FRAMEWORK_DIR:videoprocessingengine", "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/services:videoprocessingservice", ] external_deps = [ "c_utils:utils", "drivers_interface_display:libdisplay_commontype_proxy_2.1", "graphic_surface:surface", "hilog:libhilog", "hitrace:hitrace_meter", ] subsystem_name = "multimedia" part_name = "video_processing_engine" }