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

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

Issue 2391073003: ICO: Skip checking declared entry bounds when file is completelly received. (Closed)
Patch Set: ico used in test was valid, replacing. Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "platform/image-decoders/ImageDecoderTestHelpers.h" 7 #include "platform/image-decoders/ImageDecoderTestHelpers.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "wtf/PtrUtil.h" 9 #include "wtf/PtrUtil.h"
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 testByteByByteDecode( 28 testByteByByteDecode(
29 &createDecoder, "/LayoutTests/fast/images/resources/greenbox-3frames.cur", 29 &createDecoder, "/LayoutTests/fast/images/resources/greenbox-3frames.cur",
30 3u, cAnimationNone); 30 3u, cAnimationNone);
31 testByteByByteDecode( 31 testByteByByteDecode(
32 &createDecoder, 32 &createDecoder,
33 "/LayoutTests/fast/images/resources/icon-without-and-bitmap.ico", 1u, 33 "/LayoutTests/fast/images/resources/icon-without-and-bitmap.ico", 1u,
34 cAnimationNone); 34 cAnimationNone);
35 testByteByByteDecode(&createDecoder, 35 testByteByByteDecode(&createDecoder,
36 "/LayoutTests/fast/images/resources/1bit.ico", 1u, 36 "/LayoutTests/fast/images/resources/1bit.ico", 1u,
37 cAnimationNone); 37 cAnimationNone);
38 testByteByByteDecode(&createDecoder,
39 "/LayoutTests/fast/images/resources/bug653075.ico", 2u,
40 cAnimationNone);
38 } 41 }
39 42
40 } // namespace blink 43 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698