summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorKevin Rocard <krocard@google.com>2018-10-03 16:22:39 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-10-03 16:22:39 -0700
commite029bd11f83325c3df0a0a2e7794fdc362139b13 (patch)
tree7c244495e0e39e685d6ce5328c183fc0156ef9e8 /audio
parentdb5c49f89cc33e17f95f21082d29decf93605e45 (diff)
parentb86e2855373731bb54948cee1dda9d73d3309eff (diff)
downloadandroid_hardware_interfaces-e029bd11f83325c3df0a0a2e7794fdc362139b13.tar.gz
android_hardware_interfaces-e029bd11f83325c3df0a0a2e7794fdc362139b13.tar.bz2
android_hardware_interfaces-e029bd11f83325c3df0a0a2e7794fdc362139b13.zip
Audio VTS: Do not constrain implementation frameCount am: 069bc45044
am: b86e285537 Change-Id: Id3c6275cdb5c9de079c425d8f252a6f3e9ac7b99
Diffstat (limited to 'audio')
-rw-r--r--audio/core/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp4
-rw-r--r--audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp4
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 f84e1e2dc..8a8338bb4 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())))