1// Build the unit tests for effects
2
3package {
4    default_team: "trendy_team_media_framework_audio",
5    // See: http://go/android-license-faq
6    // A large-scale-change added 'default_applicable_licenses' to import
7    // all of the 'license_kinds' from "frameworks_av_license"
8    // to get the below license kinds:
9    //   SPDX-license-identifier-Apache-2.0
10    default_applicable_licenses: ["frameworks_av_license"],
11}
12
13cc_test {
14    name: "EffectReverbTest",
15    defaults: [
16        "libeffects-test-defaults",
17    ],
18    srcs: [
19        "EffectReverbTest.cpp",
20    ],
21    static_libs: [
22        "libreverb",
23        "libreverbwrapper",
24    ],
25    header_libs: [
26        "libaudioeffects",
27    ],
28}
29
30cc_test {
31    name: "EffectBundleTest",
32    defaults: [
33        "libeffects-test-defaults",
34    ],
35    srcs: [
36        "EffectBundleTest.cpp",
37    ],
38    static_libs: [
39        "libbundlewrapper",
40        "libmusicbundle",
41    ],
42}
43
44cc_test {
45    name: "lvmtest",
46    host_supported: false,
47    proprietary: true,
48
49    include_dirs: [
50        "frameworks/av/media/libeffects/lvm/lib/Bass/lib",
51        "frameworks/av/media/libeffects/lvm/lib/Bass/src",
52        "frameworks/av/media/libeffects/lvm/lib/Bundle/src",
53        "frameworks/av/media/libeffects/lvm/lib/Common/src",
54        "frameworks/av/media/libeffects/lvm/lib/Eq/lib",
55        "frameworks/av/media/libeffects/lvm/lib/Eq/src",
56        "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/lib",
57        "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src",
58        "frameworks/av/media/libeffects/lvm/lib/StereoWidening/lib",
59        "frameworks/av/media/libeffects/lvm/lib/StereoWidening/src",
60        "frameworks/av/media/libeffects/lvm/wrapper/Bundle",
61    ],
62
63    header_libs: [
64        "libaudioeffects",
65    ],
66
67    shared_libs: [
68        "libaudioutils",
69        "liblog",
70    ],
71
72    static_libs: [
73        "libmusicbundle",
74    ],
75
76    srcs: ["lvmtest.cpp"],
77
78    cflags: [
79        "-DSUPPORT_MC",
80
81        "-Wall",
82        "-Werror",
83        "-Wextra",
84    ],
85}
86
87cc_test {
88    name: "reverb_test",
89    host_supported: true,
90    proprietary: true,
91    gtest: false,
92
93    header_libs: [
94        "libaudioeffects",
95    ],
96
97    shared_libs: [
98        "libaudioutils",
99        "liblog",
100    ],
101
102    static_libs: [
103        "libreverb",
104        "libreverbwrapper",
105    ],
106    srcs: [
107        "reverb_test.cpp",
108    ],
109
110    cflags: [
111        "-Wall",
112        "-Werror",
113        "-Wextra",
114    ],
115}
116
117cc_test {
118    name: "snr",
119    host_supported: false,
120
121    srcs: ["snr.cpp"],
122
123    cflags: [
124        "-Wall",
125        "-Werror",
126        "-Wextra",
127    ],
128}
129