# 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("image_processing_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", "$TEST_UTILS_PATH/DetailEnhancer/sample", "$ALGORITHM_DIR/detail_enhancer/include", "$FRAMEWORK_DIR/capi/image_processing/detail_enhancer/include", "$INTERFACES_DIR/kits/c", "$FRAMEWORK_DIR/capi/image_processing/include", ] sources = [ "image_processing_unit_test.cpp" ] deps = [ "$FRAMEWORK_DIR:image_processing", ] external_deps = [ "c_utils:utils", "drivers_interface_display:libdisplay_commontype_proxy_2.1", "graphic_surface:surface", "hilog:libhilog", "hitrace:hitrace_meter", "media_foundation:native_media_core", "image_framework:pixelmap", "image_framework:image" ] subsystem_name = "multimedia" part_name = "video_processing_engine" }