• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14import("//build/test.gni")
15import(
16    "//foundation/distributedhardware/distributed_camera/distributedcamera.gni")
17
18module_out_path = "distributed_camera/dcamera_data_process_test"
19
20config("module_private_config") {
21  visibility = [ ":*" ]
22  include_dirs = [
23    "${services_path}/data_process/include/interfaces",
24    "${services_path}/data_process/include/eventbus",
25    "${services_path}/data_process/include/pipeline",
26    "${services_path}/data_process/include/utils",
27    "${services_path}/data_process/include/pipeline_node/multimedia_codec/decoder",
28    "${services_path}/data_process/include/pipeline_node/multimedia_codec/encoder",
29    "${services_path}/data_process/include/pipeline_node/colorspace_conversion",
30    "${services_path}/data_process/include/pipeline_node/fpscontroller",
31    "${services_path}/data_process/include/pipeline_node/scale_conversion",
32    "${services_path}/cameraservice/sinkservice/include/distributedcameramgr",
33    "${common_path}/include/constants",
34    "${common_path}/include/utils",
35    "${innerkits_path}/native_cpp/camera_source/include",
36    "//commonlibrary/c_utils/base/include",
37    "${fwk_common_path}/utils/include",
38    "${fwk_utils_path}/include/eventbus",
39  ]
40}
41
42ohos_unittest("DCameraDataProcessPipelineTest") {
43  module_out_path = module_out_path
44
45  sources = [
46    "dcamera_pipeline_sink_test.cpp",
47    "dcamera_pipeline_source_test.cpp",
48  ]
49
50  configs = [ ":module_private_config" ]
51
52  deps = [
53    "${common_path}:distributed_camera_utils",
54    "${services_path}/data_process:distributed_camera_data_process",
55    "//foundation/graphic/graphic_2d/frameworks/surface:surface",
56    "//third_party/ffmpeg:libohosffmpeg",
57  ]
58
59  external_deps = [
60    "c_utils:utils",
61    "eventhandler:libeventhandler",
62    "hitrace_native:hitrace_meter",
63    "multimedia_player_framework:media_client",
64  ]
65
66  defines = [
67    "HI_LOG_ENABLE",
68    "DH_LOG_TAG=\"DCameraDataProcessPipelineTest\"",
69    "LOG_DOMAIN=0xD004100",
70  ]
71}
72
73group("dcamera_pipeline_test") {
74  testonly = true
75  deps = [ ":DCameraDataProcessPipelineTest" ]
76}
77