• 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("../../../../../audio_framework_test_sources.gni")
16import("../../../../../config.gni")
17
18if (!audio_framework_feature_offline_effect) {
19  group("offline_audio_effect_manager_unit_test") {
20    deps = []
21  }
22} else {
23  ohos_unittest("offline_audio_effect_manager_unit_test") {
24    module_out_path = "multimedia_audio_framework/offline_audio_effect_manager"
25    include_dirs = [
26      "../../include",
27      "../../../../../interfaces/inner_api/native/offlineaudioeffect/include",
28      "../../../../../interfaces/inner_api/native/audiocommon/include",
29      "../../../../../services/audio_service/client/include",
30    ]
31
32    cflags = [
33      "-Wall",
34      "-Werror",
35      "-fno-access-control",
36    ]
37
38    sources = [ "offline_audio_effect_manager_unit_test.cpp" ]
39
40    deps = [
41      "../../:offline_audio_effect",
42      "../../:offline_audio_effect_service",
43      "../../../../../services/audio_service:audio_client",
44      "../../../audioutils:audio_utils",
45    ]
46
47    external_deps = [
48      "c_utils:utils",
49      "drivers_interface_audio:libeffect_proxy_1.0",
50      "googletest:gmock",
51      "googletest:gtest",
52      "hilog:libhilog",
53      "hitrace:hitrace_meter",
54    ]
55
56    part_name = "audio_framework"
57    subsystem_name = "multimedia"
58  }
59}
60