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

Commit 2b4caee3 authored by Valerie Hau's avatar Valerie Hau
Browse files

Fix Mapper Protected test

Bug: 155942443
Test: build, boot
Change-Id: Ie258184981615d714878b108f2e00452fbf95358
parent 25b3a6f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
    }