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

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

Change-Id: I8711fc885403a22d7a09fc51aeb3d6e69ef759ea
This commit is contained in:
Kuowei Li 2021-07-23 21:28:20 +00:00 committed by Automerger Merge Worker
commit 2950416a76

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;
}