Index: third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp b/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
index 00c2c99dcdcfd5fe9fc4039bd927f388303bd5fe..5f02732ac333931d7c0d2fa5fd6196c8e85dd09d 100644 |
--- a/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
+++ b/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
@@ -348,7 +348,9 @@ TEST(ImageResourceTest, DecodedDataRemainsWhileHasClients) { |
nullptr); |
cachedImage->appendData(reinterpret_cast<const char*>(jpeg.data()), |
jpeg.size()); |
+ EXPECT_NE(0u, cachedImage->encodedSizeMemoryUsageForTesting()); |
cachedImage->finish(); |
+ EXPECT_EQ(0u, cachedImage->encodedSizeMemoryUsageForTesting()); |
EXPECT_FALSE(cachedImage->errorOccurred()); |
ASSERT_TRUE(cachedImage->hasImage()); |
EXPECT_FALSE(cachedImage->getImage()->isNull()); |