• 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("//foundation/multimedia/player_framework/config.gni")
16
17module_output_path = "$MODULE_OUTPUT_PATH/avmetadata"
18
19ohos_unittest("avmetadata_unit_test") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "./include",
23    "//foundation/multimedia/player_framework/interfaces/inner_api/native",
24    "//foundation/multimedia/player_framework/services/utils/include",
25    "//foundation/multimedia/player_framework/frameworks/native/player",
26    "//foundation/multimedia/player_framework/test/unittest/common/include",
27  ]
28
29  cflags = [
30    "-Wall",
31    "-Werror",
32  ]
33
34  if (player_framework_support_metadata) {
35    sources = [
36      "src/avmetadata_mock.cpp",
37      "src/avmetadata_unit_test.cpp",
38    ]
39  }
40
41  external_deps = [
42    "c_utils:utils",
43    "graphic_2d:librender_service_client",
44    "graphic_surface:surface",
45    "graphic_surface:sync_fence",
46    "hilog:libhilog",
47    "image_framework:image_native",
48    "init:libbegetutil",
49    "qos_manager:qos",
50    "window_manager:libwm",
51  ]
52
53  deps = [
54    "//foundation/multimedia/player_framework/interfaces/inner_api/native:media_client",
55    "//foundation/multimedia/player_framework/services/utils:media_service_utils",
56  ]
57  defines = []
58  if (player_framework_check_video_is_hdr_vivid) {
59    defines += [ "CHECKING_VIDEO_IS_HDR_VIVID" ]
60  }
61  resource_config_file = "//foundation/multimedia/player_framework/test/unittest/resources/ohos_test.xml"
62}
63