• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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/ohos.gni")
15import("//build/ohos_var.gni")
16import("//build/test.gni")
17import("../../../distributedaudio.gni")
18
19module_output_path =
20    "distributed_audio/distributed_audio/common/daudio_util_test"
21
22config("module_private_config") {
23  visibility = [ ":*" ]
24
25  include_dirs = [
26    "${common_path}/include",
27    "include",
28  ]
29}
30
31ohos_unittest("DaudioUtilsTest") {
32  module_out_path = module_output_path
33
34  sources = [ "src/daudio_utils_test.cpp" ]
35
36  configs = [ ":module_private_config" ]
37
38  deps = [ "${services_path}/common:distributed_audio_utils" ]
39
40  external_deps = [
41    "cJSON:cjson",
42    "c_utils:utils",
43    "distributed_hardware_fwk:distributedhardwareutils",
44    "hilog:libhilog",
45  ]
46
47  defines = [
48    "HI_LOG_ENABLE",
49    "LOG_DOMAIN=0xD004130",
50  ]
51}
52
53group("daudio_utils_test") {
54  testonly = true
55  deps = [ ":DaudioUtilsTest" ]
56}
57