• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("//foundation/multimedia/video_processing_engine/config.gni")
16
17ohos_unittest("services_test") {
18  module_out_path = UNIT_TEST_OUTPUT_PATH
19
20  sanitize = {
21    boundary_sanitize = true
22    cfi = true
23    cfi_cross_dso = true
24    integer_overflow = true
25    ubsan = true
26    debug = false
27  }
28
29  cflags = VIDEO_PROCESSING_ENGINE_CFLAGS
30
31  include_dirs = [
32    "$INTERFACES_DIR/inner_api",
33    "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/test/unittest/utils",
34    "$SERVICES_DIR/include/",
35    "$SERVICES_DIR/utils/include/",
36    "${target_gen_dir}/../../../services",
37    "$ALGORITHM_COMMON_DIR/include",
38    "$ALGORITHM_EXTENSION_MANAGER_DIR/include",
39    "$SERVICES_DIR/algorithm/include/",
40    "$SERVICES_DIR/utils/include/",
41  ]
42
43  sources = [ "video_processing_client_test.cpp",
44              "video_processing_load_callback_test.cpp",
45              "video_processing_server_test.cpp",
46              "video_processing_algorithm_factory_test.cpp",
47              "video_processing_algorithm_without_data_test.cpp",
48              "configuration_helper_test.cpp",
49              "surface_buffer_info_test.cpp",
50              "vpe_sa_utils_test.cpp",
51              "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/services/src/video_processing_server.cpp"
52            ]
53  deps = [
54    "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/services:videoprocessingservice_interface",
55    "$VIDEO_PROCESSING_ENGINE_ROOT_DIR/services:videoprocessingserviceimpl",
56  ]
57  external_deps = [
58    "video_processing_engine:videoprocessingengine",
59    "video_processing_engine:videoprocessingservice",
60    "c_utils:utils",
61    "eventhandler:libeventhandler",
62    "graphic_2d:2d_graphics",
63    "graphic_surface:surface",
64    "hilog:libhilog",
65    "hitrace:hitrace_meter",
66    "image_framework:image_native",
67    "image_framework:pixelmap",
68    "ipc:ipc_single",
69    "media_foundation:media_foundation",
70    "safwk:system_ability_fwk",
71    "samgr:samgr_proxy",
72  ]
73
74  subsystem_name = "multimedia"
75  part_name = "video_processing_engine"
76}
77