Loading graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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"; Loading Loading
graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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"; Loading