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

Commit 6455e797 authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

getDisplayDecorationSupport: expect IComposerClient::EX_UNSUPPORTED

This is the error returned by cuttlefish, not EX_UNSUPPORTED_OPERATION.
This also matches other tests, e.g. SetDisplayBrightness.

Bug: 209458568
Test: this
Change-Id: I885767c4f1c42edfb11359b36852a863cbc8b0ed
parent 51aa86c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1655,7 +1655,7 @@ TEST_P(GraphicsComposerAidlCommandTest, DisplayDecoration) {
        } else {
            const auto errors = mReader.takeErrors();
            ASSERT_EQ(1, errors.size());
            EXPECT_EQ(EX_UNSUPPORTED_OPERATION, errors[0].errorCode);
            EXPECT_EQ(IComposerClient::EX_UNSUPPORTED, errors[0].errorCode);

            const auto changedTypes = mReader.takeChangedCompositionTypes(display.getDisplayId());
            ASSERT_EQ(1u, changedTypes.size());