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

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: rebase Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b3474e32faa4fc3715eb75feb6414b4252ed3fbd..ae2a8220a09141d74103da2e263c69a49dcfadc9 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));
}
« no previous file with comments | « third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698