# Copyright (c) 2022-2025 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/distributedhardware/distributed_camera/distributedcamera.gni") module_out_path = "${unittest_output_path}/dcamera_data_process_test" config("module_private_config") { visibility = [ ":*" ] include_dirs = [ "${services_path}/data_process/include/interfaces", "${services_path}/data_process/include/eventbus", "${services_path}/data_process/include/pipeline", "${services_path}/data_process/include/utils", "${services_path}/data_process/include/pipeline_node/multimedia_codec/decoder", "${services_path}/data_process/include/pipeline_node/multimedia_codec/encoder", "${services_path}/data_process/include/pipeline_node/fpscontroller", "${services_path}/data_process/include/pipeline_node/scale_conversion", "${services_path}/cameraservice/sinkservice/include/distributedcameramgr", "${common_path}/include/constants", "${common_path}/include/utils", "${innerkits_path}/native_cpp/camera_source/include", "${feeding_smoother_path}/base", "${services_path}/cameraservice/base/include", ] } ohos_unittest("DCameraDataProcessPipelineTest") { module_out_path = module_out_path cflags = [ "-g", "-O0", "-Wno-unused-variable", "-fno-omit-frame-pointer", "-Dprivate=public", "-Dprotected=public", ] sources = [ "dcamera_pipeline_sink_test.cpp", "dcamera_pipeline_source_test.cpp", "decode_surface_listener_test.cpp", ] configs = [ ":module_private_config" ] deps = [ "${common_path}:distributed_camera_utils", "${services_path}/data_process:distributed_camera_data_process", ] external_deps = [ "av_codec:av_codec_client", "c_utils:utils", "distributed_hardware_fwk:distributedhardwareutils", "eventhandler:libeventhandler", "ffmpeg:libohosffmpeg", "graphic_surface:surface", "hilog:libhilog", "hitrace:hitrace_meter", "ipc:ipc_single", ] defines = [ "HI_LOG_ENABLE", "DH_LOG_TAG=\"DCameraDataProcessPipelineTest\"", "LOG_DOMAIN=0xD004150", ] } group("dcamera_pipeline_test") { testonly = true deps = [ ":DCameraDataProcessPipelineTest" ] }