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

Commit e1d48d4f authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "gralloc4-vts: fix GetLargeReservedRegion test" into rvc-dev am:...

Merge "gralloc4-vts: fix GetLargeReservedRegion test" into rvc-dev am: 68dbdf4a am: 100fa923 am: 7a99d610

Change-Id: If21e8e6cec5e57a7cc304add8141636e56212338
parents 367f7aeb 7a99d610
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2124,8 +2124,14 @@ TEST_P(GraphicsMapperHidlTest, GetLargeReservedRegion) {

        Error err;
        mGralloc->getAllocator()->allocate(
                descriptor, 1,
                [&](const auto& tmpError, const auto&, const auto&) { err = tmpError; });
                descriptor, 1, [&](const auto& tmpError, const auto&, const auto& tmpBuffers) {
                    err = tmpError;
                    if (err == Error::NONE) {
                        ASSERT_EQ(1, tmpBuffers.size());
                        ASSERT_NO_FATAL_FAILURE(bufferHandle =
                                                        mGralloc->importBuffer(tmpBuffers[0]));
                    }
                });
        if (err == Error::UNSUPPORTED) {
            continue;
        }