mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 08:54:55 +00:00
Merge "Fix Mapper Protected test" into rvc-dev am: 7b25582017 am: 90b7b9b512 am: 2dc378d918
Change-Id: Ic0e77003db07e02c6f7b6a54767ed18fca07c96e
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user