• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/distributedcamera/distributedcamera.gni")
17
18module_out_path = "distributed_camera/dcamera_sink_mgr_test"
19
20config("module_private_config") {
21  visibility = [ ":*" ]
22  include_dirs = [
23    "${services_path}/cameraservice/sinkservice/include/distributedcameramgr",
24    "${services_path}/cameraservice/sinkservice/include/distributedcameramgr/callback",
25    "${services_path}/cameraservice/sinkservice/include/distributedcameramgr/eventbus",
26    "${services_path}/cameraservice/sinkservice/include/distributedcameramgr/interface",
27    "${services_path}/cameraservice/sinkservice/include/distributedcameramgr/listener",
28    "${services_path}/cameraservice/cameraoperator/client/include",
29    "${services_path}/cameraservice/base/include",
30    "${services_path}/channel/include",
31    "${services_path}/data_process/include/pipeline",
32    "${services_path}/data_process/include/interfaces",
33    "${services_path}/data_process/include/utils",
34    "${common_path}/include/constants",
35    "${common_path}/include/utils",
36    "${distributedcamera_hdf_path}/interfaces/include",
37    "${innerkits_path}/native_cpp/camera_source/include",
38    "${innerkits_path}/native_cpp/camera_source/include/callback",
39
40    "${fwk_utils_path}/include/eventbus",
41    "${fwk_utils_path}/include/log",
42    "${fwk_utils_path}/include",
43    "${fwk_common_path}/utils/include",
44    "${fwk_common_path}/log/include",
45
46    "//drivers/peripheral/base",
47    "//drivers/peripheral/camera/interfaces/metadata/include",
48  ]
49}
50
51ohos_unittest("DCameraSinkMgrTest") {
52  module_out_path = module_out_path
53
54  sources = [
55    "dcamera_sink_access_control_test.cpp",
56    "dcamera_sink_controller_test.cpp",
57    "dcamera_sink_data_process_test.cpp",
58    "dcamera_sink_dev_test.cpp",
59    "dcamera_sink_output_test.cpp",
60  ]
61
62  configs = [ ":module_private_config" ]
63
64  deps = [
65    "${common_path}:distributed_camera_utils",
66    "${fwk_utils_path}:distributedhardwareutils",
67    "${services_path}/cameraservice/sinkservice:distributed_camera_sink",
68    "${services_path}/channel:distributed_camera_channel",
69    "//drivers/peripheral/camera/interfaces/metadata:metadata",
70    "//third_party/jsoncpp:jsoncpp",
71    "//utils/native/base:utils",
72  ]
73
74  external_deps = [
75    "eventhandler:libeventhandler",
76    "ipc:ipc_core",
77  ]
78
79  defines = [
80    "HI_LOG_ENABLE",
81    "DH_LOG_TAG=\"DCameraSinkMgrTest\"",
82    "LOG_DOMAIN=0xD004100",
83  ]
84}
85
86group("dcamera_sink_mgr_test") {
87  testonly = true
88  deps = [ ":DCameraSinkMgrTest" ]
89}
90