]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-hardware-interfaces.git/blobdiff - audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp
Audio VTS: Do not constrain implementation frameCount
[android/platform-hardware-interfaces.git] / audio / core / 4.0 / vts / functional / AudioPrimaryHidlHalTest.cpp
index f84e1e2dc0b57233cd7cbd277adf5ba1d1fc8ed5..8a8338bb437501341ff14c2f1f8f41ae13281d70 100644 (file)
@@ -823,8 +823,8 @@ static R extract(Return<R> ret) {
         code;                                          \
     }
 
-TEST_IO_STREAM(GetFrameCount, "Check that the stream frame count == the one it was opened with",
-               ASSERT_EQ(audioConfig.frameCount, extract(stream->getFrameCount())))
+TEST_IO_STREAM(GetFrameCount, "Check that getting stream frame count does not crash the HAL.",
+               ASSERT_TRUE(stream->getFrameCount().isOk()))
 
 TEST_IO_STREAM(GetSampleRate, "Check that the stream sample rate == the one it was opened with",
                ASSERT_EQ(audioConfig.sampleRateHz, extract(stream->getSampleRate())))