Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Unified Diff: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp

Issue 1962563002: Fix ImageDecoder::frameIsCompleteAtIndex - fully received instead of decoded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PNG alpha & partial decode fixes. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp
index b8c5cd787bef90f9830f1ca1f6c64039631cc244..80018392eb2e0a8760db35f18c0008345e0ed79f 100644
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp
@@ -547,18 +547,18 @@ TEST(AnimatedWebPTests, frameIsCompleteAndDuration)
EXPECT_EQ(2u, decoder->frameCount());
EXPECT_FALSE(decoder->failed());
- EXPECT_TRUE(decoder->frameIsCompleteAtIndex(0));
+ EXPECT_TRUE(decoder->frameIsFullyReceivedAtIndex(0));
EXPECT_EQ(1000, decoder->frameDurationAtIndex(0));
- EXPECT_TRUE(decoder->frameIsCompleteAtIndex(1));
+ EXPECT_TRUE(decoder->frameIsFullyReceivedAtIndex(1));
EXPECT_EQ(500, decoder->frameDurationAtIndex(1));
decoder->setData(data.get(), true);
EXPECT_EQ(3u, decoder->frameCount());
- EXPECT_TRUE(decoder->frameIsCompleteAtIndex(0));
+ EXPECT_TRUE(decoder->frameIsFullyReceivedAtIndex(0));
EXPECT_EQ(1000, decoder->frameDurationAtIndex(0));
- EXPECT_TRUE(decoder->frameIsCompleteAtIndex(1));
+ EXPECT_TRUE(decoder->frameIsFullyReceivedAtIndex(1));
EXPECT_EQ(500, decoder->frameDurationAtIndex(1));
- EXPECT_TRUE(decoder->frameIsCompleteAtIndex(2));
+ EXPECT_TRUE(decoder->frameIsFullyReceivedAtIndex(2));
EXPECT_EQ(1000.0, decoder->frameDurationAtIndex(2));
}

Powered by Google App Engine
This is Rietveld 408576698