Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e65f0a0 authored by Leon Scroggins's avatar Leon Scroggins Committed by Gerrit Code Review
Browse files

Merge "Assert the errors size to 1 for case SetDisplayBrightness" into main

parents 0f39c73d 6adbf0c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1839,7 +1839,7 @@ TEST_P(GraphicsComposerAidlCommandTest, SetDisplayBrightness) {
        writer.setDisplayBrightness(getPrimaryDisplayId(), /*brightness*/ 0.5f, -1.f);
        execute();
        const auto errors = mReader.takeErrors();
        EXPECT_EQ(1, errors.size());
        ASSERT_EQ(1, errors.size());
        EXPECT_EQ(IComposerClient::EX_UNSUPPORTED, errors[0].errorCode);
        GTEST_SUCCEED() << "SetDisplayBrightness is not supported";
        return;