AIDL: Fix test after aosp/2704653
That change updated the connection for the "remote submix in"
device type, however the test was not updated, resulting in
a failure.
The need to modify the test was overlooked because
the TEST_MAPPING file for the library was wrong, although
syntacsically correct. Fix the mapping file to prevent
future regressions.
Bug: 286914845
Bug: 294976817
Bug: 296664539
Test: audio_aidl_conversion_tests
Change-Id: I3bcfab9ca45c19d487deb7709d32f43beee8c789
diff --git a/media/audioaidlconversion/TEST_MAPPING b/media/audioaidlconversion/TEST_MAPPING
index 216bc12..203ed2f 100644
--- a/media/audioaidlconversion/TEST_MAPPING
+++ b/media/audioaidlconversion/TEST_MAPPING
@@ -1,8 +1,12 @@
{
"presubmit": [
{
- "name": "audio_aidl_conversion_tests",
- "name": "audio_aidl_ndk_conversion_tests",
+ "name": "audio_aidl_conversion_tests"
+ },
+ {
+ "name": "audio_aidl_ndk_conversion_tests"
+ },
+ {
"name": "audio_aidl_ndk_cpp_conversion_tests"
}
]
diff --git a/media/libaudioclient/tests/audio_aidl_legacy_conversion_tests.cpp b/media/libaudioclient/tests/audio_aidl_legacy_conversion_tests.cpp
index a7bb02a..2a5d2f2 100644
--- a/media/libaudioclient/tests/audio_aidl_legacy_conversion_tests.cpp
+++ b/media/libaudioclient/tests/audio_aidl_legacy_conversion_tests.cpp
@@ -143,7 +143,8 @@
}
AudioDeviceDescription make_ADD_RSubmixIn() {
- return make_AudioDeviceDescription(AudioDeviceType::IN_SUBMIX);
+ return make_AudioDeviceDescription(AudioDeviceType::IN_SUBMIX,
+ AudioDeviceDescription::CONNECTION_VIRTUAL());
}
AudioDeviceDescription make_ADD_DefaultOut() {