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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoderTest.cpp

Issue 2878363003: Revert of Fix ImageAnimation constant names after Blink renaming (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/image-decoders/ico/ICOImageDecoder.h" 5 #include "platform/image-decoders/ico/ICOImageDecoder.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "platform/image-decoders/ImageDecoderTestHelpers.h" 8 #include "platform/image-decoders/ImageDecoderTestHelpers.h"
9 #include "platform/wtf/PtrUtil.h" 9 #include "platform/wtf/PtrUtil.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // count. 63 // count.
64 EXPECT_EQ(1u, decoder->FrameCount()); 64 EXPECT_EQ(1u, decoder->FrameCount());
65 65
66 decoder->FrameBufferAtIndex(0); 66 decoder->FrameBufferAtIndex(0);
67 EXPECT_TRUE(decoder->Failed()); 67 EXPECT_TRUE(decoder->Failed());
68 } 68 }
69 69
70 TEST(ICOImageDecoderTests, parseAndDecodeByteByByte) { 70 TEST(ICOImageDecoderTests, parseAndDecodeByteByByte) {
71 TestByteByByteDecode(&CreateDecoder, 71 TestByteByByteDecode(&CreateDecoder,
72 "/LayoutTests/images/resources/png-in-ico.ico", 1u, 72 "/LayoutTests/images/resources/png-in-ico.ico", 1u,
73 kAnimationNone); 73 kCAnimationNone);
74 TestByteByByteDecode(&CreateDecoder, 74 TestByteByByteDecode(&CreateDecoder,
75 "/LayoutTests/images/resources/2entries.ico", 2u, 75 "/LayoutTests/images/resources/2entries.ico", 2u,
76 kAnimationNone); 76 kCAnimationNone);
77 TestByteByByteDecode(&CreateDecoder, 77 TestByteByByteDecode(&CreateDecoder,
78 "/LayoutTests/images/resources/greenbox-3frames.cur", 3u, 78 "/LayoutTests/images/resources/greenbox-3frames.cur", 3u,
79 kAnimationNone); 79 kCAnimationNone);
80 TestByteByByteDecode( 80 TestByteByByteDecode(
81 &CreateDecoder, 81 &CreateDecoder,
82 "/LayoutTests/images/resources/icon-without-and-bitmap.ico", 1u, 82 "/LayoutTests/images/resources/icon-without-and-bitmap.ico", 1u,
83 kAnimationNone); 83 kCAnimationNone);
84 TestByteByByteDecode(&CreateDecoder, "/LayoutTests/images/resources/1bit.ico", 84 TestByteByByteDecode(&CreateDecoder, "/LayoutTests/images/resources/1bit.ico",
85 1u, kAnimationNone); 85 1u, kCAnimationNone);
86 TestByteByByteDecode(&CreateDecoder, 86 TestByteByByteDecode(&CreateDecoder,
87 "/LayoutTests/images/resources/bug653075.ico", 2u, 87 "/LayoutTests/images/resources/bug653075.ico", 2u,
88 kAnimationNone); 88 kCAnimationNone);
89 } 89 }
90 90
91 } // namespace blink 91 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698