ASSERT error check in brightness test

Without ASSERT the next call to take the first element will crash the instrumentation for the tests.

BUG: 210151839
Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: I2c78b9130661e543e62138c064ab15dd79180920
This commit is contained in:
ramindani
2022-01-12 18:27:05 +00:00
committed by Ram Indani
parent 962deadfd2
commit b3bdf0535c

View File

@@ -1499,7 +1499,7 @@ TEST_P(GraphicsComposerAidlCommandTest, SetDisplayBrightness) {
execute();
{
const auto errors = mReader.takeErrors();
EXPECT_EQ(1, errors.size());
ASSERT_EQ(1, errors.size());
EXPECT_EQ(IComposerClient::EX_BAD_PARAMETER, errors[0].errorCode);
}
@@ -1507,7 +1507,7 @@ TEST_P(GraphicsComposerAidlCommandTest, SetDisplayBrightness) {
execute();
{
const auto errors = mReader.takeErrors();
EXPECT_EQ(1, errors.size());
ASSERT_EQ(1, errors.size());
EXPECT_EQ(IComposerClient::EX_BAD_PARAMETER, errors[0].errorCode);
}
}