1fa7767c5Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2fa7767c5Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3fa7767c5Sopenharmony_ci# you may not use this file except in compliance with the License.
4fa7767c5Sopenharmony_ci# You may obtain a copy of the License at
5fa7767c5Sopenharmony_ci#
6fa7767c5Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7fa7767c5Sopenharmony_ci#
8fa7767c5Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9fa7767c5Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10fa7767c5Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11fa7767c5Sopenharmony_ci# See the License for the specific language governing permissions and
12fa7767c5Sopenharmony_ci# limitations under the License.
13fa7767c5Sopenharmony_ciimport("//build/test.gni")
14fa7767c5Sopenharmony_ciimport("//foundation/multimedia/media_foundation/config.gni")
15fa7767c5Sopenharmony_ciimport("//foundation/multimedia/player_framework/config.gni")
16fa7767c5Sopenharmony_ci
17fa7767c5Sopenharmony_cimodule_output_path = "media_foundation/scenetest/audio_player"
18fa7767c5Sopenharmony_ci
19fa7767c5Sopenharmony_cihistreamer_unittest_cflags = [
20fa7767c5Sopenharmony_ci  "-std=c++17",
21fa7767c5Sopenharmony_ci  "-Wall",
22fa7767c5Sopenharmony_ci  "-Werror",
23fa7767c5Sopenharmony_ci]
24fa7767c5Sopenharmony_ci
25fa7767c5Sopenharmony_ci#################################################################################################################
26fa7767c5Sopenharmony_ciohos_unittest("histreamer_audio_player_test") {
27fa7767c5Sopenharmony_ci  module_out_path = module_output_path
28fa7767c5Sopenharmony_ci  include_dirs = [
29fa7767c5Sopenharmony_ci    "$histreamer_root_dir/test",
30fa7767c5Sopenharmony_ci    "$histreamer_root_dir/engine",
31fa7767c5Sopenharmony_ci    "$histreamer_root_dir/engine/scene/player",
32fa7767c5Sopenharmony_ci  ]
33fa7767c5Sopenharmony_ci  cflags = histreamer_unittest_cflags
34fa7767c5Sopenharmony_ci  defines = []
35fa7767c5Sopenharmony_ci  defines += player_framework_defines
36fa7767c5Sopenharmony_ci  defines -= [ "SUPPORT_METADATA" ]
37fa7767c5Sopenharmony_ci  deps = [
38fa7767c5Sopenharmony_ci    "$histreamer_root_dir/engine/scene:std_engine_factory",
39fa7767c5Sopenharmony_ci    "$histreamer_root_dir/engine/scene/player:histreamer_player",
40fa7767c5Sopenharmony_ci    "//third_party/googletest:gtest_rtti",
41fa7767c5Sopenharmony_ci  ]
42fa7767c5Sopenharmony_ci  external_deps = [
43fa7767c5Sopenharmony_ci    "graphic_surface:surface",
44fa7767c5Sopenharmony_ci    "hilog:libhilog",
45fa7767c5Sopenharmony_ci  ]
46fa7767c5Sopenharmony_ci  public_configs = []
47fa7767c5Sopenharmony_ci  resource_config_file = "../../resources/ohos_test.xml"
48fa7767c5Sopenharmony_ci  sources = [
49fa7767c5Sopenharmony_ci    "../helper/media_data_source_imp.cpp",
50fa7767c5Sopenharmony_ci    "../helper/std_player.cpp",
51fa7767c5Sopenharmony_ci    "TestFastPlayer.cpp",
52fa7767c5Sopenharmony_ci  ]
53fa7767c5Sopenharmony_ci}
54