| Index: third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| index 1c11ca1c00cf4cdc9c92df5733762ccc79de2bb3..528e09bf7ea8252b149c0e995f1246ae2b4bb162 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| @@ -409,4 +409,14 @@ TEST_F(DeferredImageDecoderTest, respectActualDecoderSizeOnCreate)
|
| EXPECT_EQ(static_cast<size_t>(0), frameBytesCleared);
|
| }
|
|
|
| +TEST_F(DeferredImageDecoderTest, data)
|
| +{
|
| + RefPtr<SharedBuffer> originalData = SharedBuffer::create(m_data->data(), m_data->size());
|
| + EXPECT_EQ(originalData->size(), m_data->size());
|
| + m_lazyDecoder->setData(*originalData, false);
|
| + RefPtr<SharedBuffer> newData = m_lazyDecoder->data();
|
| + EXPECT_EQ(originalData->size(), newData->size());
|
| + EXPECT_EQ(0, std::memcmp(originalData->data(), newData->data(), newData->size()));
|
| +}
|
| +
|
| } // namespace blink
|
|
|