diff options
author | Kevin Rocard <krocard@google.com> | 2018-10-03 16:28:44 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-10-03 16:28:44 -0700 |
commit | 4f62e23dd533a742c708a0d6872e6cc474d4bbe4 (patch) | |
tree | 375cb10f7e2593f4c7826e58f32106b47bf5a64e /audio | |
parent | 4985fa47bc6074f81024ce23a06915c46dc888da (diff) | |
parent | e029bd11f83325c3df0a0a2e7794fdc362139b13 (diff) | |
download | android_hardware_interfaces-4f62e23dd533a742c708a0d6872e6cc474d4bbe4.tar.gz android_hardware_interfaces-4f62e23dd533a742c708a0d6872e6cc474d4bbe4.tar.bz2 android_hardware_interfaces-4f62e23dd533a742c708a0d6872e6cc474d4bbe4.zip |
Audio VTS: Do not constrain implementation frameCount am: 069bc45044 am: b86e285537
am: e029bd11f8
Change-Id: Ia2c98e461ee7a39ef56e0f1b6e2dd85c446b6216
Diffstat (limited to 'audio')
-rw-r--r-- | audio/core/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp | 4 | ||||
-rw-r--r-- | audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/audio/core/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp b/audio/core/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp index bb1d26f92..a08a2d62b 100644 --- a/audio/core/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp +++ b/audio/core/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp @@ -661,8 +661,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()))) diff --git a/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp b/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp index 3a7c28425..f1e0b211d 100644 --- a/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp +++ b/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp @@ -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()))) |