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

This commit is contained in:
TreeHugger Robot
2020-03-10 23:05:49 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}