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

Side by Side Diff: content/renderer/ico_image_decoder_unittest.cc

Issue 879303003: [MemSheriff] Disable ICOImageDecoderTest.Decoding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "content/test/image_decoder_test.h" 6 #include "content/test/image_decoder_test.h"
7 #include "third_party/WebKit/public/web/WebImageDecoder.h" 7 #include "third_party/WebKit/public/web/WebImageDecoder.h"
8 8
9 using blink::WebImageDecoder; 9 using blink::WebImageDecoder;
10 10
11 class ICOImageDecoderTest : public ImageDecoderTest { 11 class ICOImageDecoderTest : public ImageDecoderTest {
12 public: 12 public:
13 ICOImageDecoderTest() : ImageDecoderTest("ico") { } 13 ICOImageDecoderTest() : ImageDecoderTest("ico") { }
14 14
15 protected: 15 protected:
16 blink::WebImageDecoder* CreateWebKitImageDecoder() const override { 16 blink::WebImageDecoder* CreateWebKitImageDecoder() const override {
17 return new blink::WebImageDecoder(blink::WebImageDecoder::TypeICO); 17 return new blink::WebImageDecoder(blink::WebImageDecoder::TypeICO);
18 } 18 }
19 }; 19 };
20 20
21 TEST_F(ICOImageDecoderTest, Decoding) { 21 // http://crbug.com/371290
22 TEST_F(ICOImageDecoderTest, DISABLED_Decoding) {
22 TestDecoding(); 23 TestDecoding();
23 } 24 }
24 25
25 TEST_F(ICOImageDecoderTest, ImageNonZeroFrameIndex) { 26 TEST_F(ICOImageDecoderTest, ImageNonZeroFrameIndex) {
26 if (data_dir().empty()) 27 if (data_dir().empty())
27 return; 28 return;
28 // Test that the decoder decodes multiple sizes of icons which have them. 29 // Test that the decoder decodes multiple sizes of icons which have them.
29 // Load an icon that has both favicon-size and larger entries. 30 // Load an icon that has both favicon-size and larger entries.
30 base::FilePath multisize_icon_path(data_dir().AppendASCII("yahoo.ico")); 31 base::FilePath multisize_icon_path(data_dir().AppendASCII("yahoo.ico"));
31 const base::FilePath md5_sum_path( 32 const base::FilePath md5_sum_path(
32 GetMD5SumPath(multisize_icon_path).value() + FILE_PATH_LITERAL("2")); 33 GetMD5SumPath(multisize_icon_path).value() + FILE_PATH_LITERAL("2"));
33 static const int kDesiredFrameIndex = 3; 34 static const int kDesiredFrameIndex = 3;
34 TestWebKitImageDecoder(multisize_icon_path, md5_sum_path, kDesiredFrameIndex); 35 TestWebKitImageDecoder(multisize_icon_path, md5_sum_path, kDesiredFrameIndex);
35 } 36 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698