Merge "Fix Mapper Protected test" into rvc-dev am: 7b25582017 am: 90b7b9b512

Change-Id: I8092d7d1f45d40276440e5951223e891f10aa4d4
This commit is contained in:
Valerie Hau
2020-05-08 22:01:41 +00:00
committed by Automerger Merge Worker

View File

@@ -965,7 +965,7 @@ TEST_P(GraphicsMapperHidlTest, GetProtectedContent) {
const native_handle_t* bufferHandle = nullptr;
bufferHandle = mGralloc->allocate(info, true, true);
if (bufferHandle) {
if (!bufferHandle) {
GTEST_SUCCEED() << "unable to allocate protected content";
return;
}
@@ -1268,7 +1268,7 @@ TEST_P(GraphicsMapperHidlTest, SetProtectedContent) {
info.usage = BufferUsage::PROTECTED | BufferUsage::COMPOSER_OVERLAY;
bufferHandle = mGralloc->allocate(info, true, true);
if (bufferHandle) {
if (!bufferHandle) {
GTEST_SUCCEED() << "unable to allocate protected content";
return;
}