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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp

Issue 2065423003: Re-land: Blink image-decoders: (lazy) deferred image decoding support for ICO (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix decodeFrameCount - copy approach from WebP and GIF decoder 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 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/graphics/DeferredImageDecoder.h" 5 #include "platform/graphics/DeferredImageDecoder.h"
6 6
7 #include "platform/SharedBuffer.h" 7 #include "platform/SharedBuffer.h"
8 #include "platform/image-decoders/ImageDecoderTestHelpers.h" 8 #include "platform/image-decoders/ImageDecoderTestHelpers.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/skia/include/core/SkImage.h" 10 #include "third_party/skia/include/core/SkImage.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 mixImages("/LayoutTests/fast/images/resources/webp-animated.webp", 142u, 1u) ; 69 mixImages("/LayoutTests/fast/images/resources/webp-animated.webp", 142u, 1u) ;
70 } 70 }
71 71
72 TEST(DeferredImageDecoderTestWoPlatform, mixImagesBmp) 72 TEST(DeferredImageDecoderTestWoPlatform, mixImagesBmp)
73 { 73 {
74 mixImages("/LayoutTests/fast/images/resources/lenna.bmp", 122u, 0u); 74 mixImages("/LayoutTests/fast/images/resources/lenna.bmp", 122u, 0u);
75 } 75 }
76 76
77 TEST(DeferredImageDecoderTestWoPlatform, mixImagesIco) 77 TEST(DeferredImageDecoderTestWoPlatform, mixImagesIco)
78 { 78 {
79 mixImages("/LayoutTests/fast/images/resources/1bit.ico", 70u, 0u); 79 mixImages("/LayoutTests/fast/images/resources/wrong-frame-dimensions.ico", 1 376u, 1u);
80 } 80 }
81 81
82 } // namespace blink 82 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698