1// Copyright (C) 2022 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Headers module is in frameworks/av/Android.bp because modules are not allowed 16// to refer to headers in parent directories and the headers live in 17// frameworks/av/include. 18 19package { 20 default_team: "trendy_team_android_media_audio_framework", 21 default_applicable_licenses: ["frameworks_av_license"], 22} 23 24cc_defaults { 25 name: "libaudiohal_aidl_test_default", 26 test_suites: ["device-tests"], 27 defaults: [ 28 "libaudiohal_aidl_default", 29 "libaudiohal_default", 30 ], 31 shared_libs: [ 32 "libaudiohal", 33 ], 34} 35 36cc_test { 37 name: "CoreAudioHalAidlTest", 38 srcs: [ 39 ":core_audio_hal_aidl_src_files", 40 "CoreAudioHalAidl_test.cpp", 41 ], 42 defaults: ["libaudiohal_aidl_test_default"], 43 header_libs: ["libaudiohalimpl_headers"], 44} 45 46cc_test { 47 name: "EffectsFactoryHalInterfaceTest", 48 srcs: ["EffectsFactoryHalInterface_test.cpp"], 49 defaults: ["libaudiohal_aidl_test_default"], 50 shared_libs: [ 51 "libvibrator", 52 ], 53 test_config_template: "AudioHalTestTemplate.xml", 54} 55 56cc_test { 57 name: "EffectProxyTest", 58 srcs: [ 59 ":audio_effectproxy_src_files", 60 "EffectProxy_test.cpp", 61 ], 62 defaults: [ 63 "libaudiohal_aidl_test_default", 64 "use_libaidlvintf_gtest_helper_static", 65 ], 66 header_libs: ["libaudiohalimpl_headers"], 67} 68 69cc_test { 70 name: "EffectHalVersionCompatibilityTest", 71 srcs: [ 72 ":audio_effect_hal_aidl_src_files", 73 "EffectHalVersionCompatibility_test.cpp", 74 ], 75 defaults: ["libaudiohal_aidl_test_default"], 76 header_libs: ["libaudiohalimpl_headers"], 77 static_libs: ["libgmock"], 78} 79