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

Commit 9886fbe3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix typo in FreeBufferNegative test"

parents 3ac998fa 1ba7c512
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -677,7 +677,7 @@ TEST_P(GraphicsMapperHidlTest, FreeBufferNegative) {


    const native_handle_t* clonedBufferHandle;
    const native_handle_t* clonedBufferHandle;
    ASSERT_NO_FATAL_FAILURE(clonedBufferHandle = mGralloc->allocate(mDummyDescriptorInfo, false));
    ASSERT_NO_FATAL_FAILURE(clonedBufferHandle = mGralloc->allocate(mDummyDescriptorInfo, false));
    error = mGralloc->getMapper()->freeBuffer(invalidHandle);
    error = mGralloc->getMapper()->freeBuffer(const_cast<native_handle_t*>(clonedBufferHandle));
    EXPECT_EQ(Error::BAD_BUFFER, error)
    EXPECT_EQ(Error::BAD_BUFFER, error)
            << "freeBuffer with un-imported handle did not fail with BAD_BUFFER";
            << "freeBuffer with un-imported handle did not fail with BAD_BUFFER";