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

Side by Side Diff: webkit/tools/webcore_unit_tests/BMPImageDecoder_unittest.cpp

Issue 12725006: Move image decoder unit tests to content_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits addressed Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "third_party/WebKit/Source/WebKit/chromium/public/WebImageDecoder.h"
6 #include "webkit/tools/test_shell/image_decoder_unittest.h"
7
8 class BMPImageDecoderTest : public ImageDecoderTest {
9 public:
10 BMPImageDecoderTest() : ImageDecoderTest("bmp") { }
11
12 protected:
13 virtual WebKit::WebImageDecoder* CreateWebKitImageDecoder() const OVERRIDE {
14 return new WebKit::WebImageDecoder(WebKit::WebImageDecoder::TypeBMP);
15 }
16
17 // The BMPImageDecoderTest tests are really slow under Valgrind.
18 // Thus it is split into fast and slow versions. The threshold is
19 // set to 10KB because the fast test can finish under Valgrind in
20 // less than 30 seconds.
21 static const int64 kThresholdSize = 10240;
22 };
23
24 TEST_F(BMPImageDecoderTest, DecodingFast) {
25 TestDecoding(TEST_SMALLER, kThresholdSize);
26 }
27
28 TEST_F(BMPImageDecoderTest, DecodingSlow) {
29 TestDecoding(TEST_BIGGER, kThresholdSize);
30 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.gypi ('k') | webkit/tools/webcore_unit_tests/ICOImageDecoder_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698