audio: Allow SetAudioProperties to not be supported am: de829572f9 am: 4f21be2965 am: 2950416a76

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588

Change-Id: Ice1083c4c6e5f5f924880f3464d961b5687fc2d2
This commit is contained in:
Kuowei Li
2021-07-23 21:44:07 +00:00
committed by Automerger Merge Worker

View File

@@ -1390,6 +1390,9 @@ static void testSetAudioProperties(IStream* stream) {
config.channelMask.value(channelMask);
auto ret = stream->setAudioProperties(config);
EXPECT_TRUE(ret.isOk());
if (ret == Result::NOT_SUPPORTED) {
GTEST_SKIP() << "setAudioProperties is not supported";
}
EXPECT_EQ(Result::OK, ret)
<< profile.format << "; " << sampleRate << "; " << channelMask;
}