mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 13:49:45 +00:00
Audio HAL VTS: Getter test assert logic was incorrect
Test: vts-tradefed run vts --module VtsHalAudioV2_0Target Test: call/play music/record/video... Bug: 36311550 Change-Id: Iaf2d71829a15b12dcf56e825773c8a697896a264 Signed-off-by: Kevin Rocard <krocard@google.com>
This commit is contained in:
@@ -594,7 +594,7 @@ class OpenStreamTest : public AudioConfigPrimaryTest,
|
||||
returnIn(res, stream, suggestedConfigRetry)));
|
||||
// This time it must succeed
|
||||
ASSERT_OK(res);
|
||||
ASSERT_TRUE(stream == nullptr);
|
||||
ASSERT_TRUE(stream != nullptr);
|
||||
audioConfig = suggestedConfig;
|
||||
break;
|
||||
default:
|
||||
@@ -895,7 +895,9 @@ static void checkGetNoParameter(IStream* stream, hidl_vec<hidl_string> keys,
|
||||
ASSERT_OK(stream->getParameters(keys, returnIn(res, parameters)));
|
||||
ASSERT_RESULT(expectedResults, res);
|
||||
if (res == Result::OK) {
|
||||
ASSERT_EQ(0U, parameters.size());
|
||||
for (auto& parameter : parameters) {
|
||||
ASSERT_EQ(0U, parameter.value.size()) << toString(parameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user