Chromium Code Reviews| Index: tests/ARGBImageEncoderTest.cpp |
| diff --git a/tests/ARGBImageEncoderTest.cpp b/tests/ARGBImageEncoderTest.cpp |
| index bffcaa4f7873001d451f42eb628d7cf22277b8a5..21371d683c7b80dd3c483255b940c2573f22acd8 100644 |
| --- a/tests/ARGBImageEncoderTest.cpp |
| +++ b/tests/ARGBImageEncoderTest.cpp |
| @@ -5,30 +5,20 @@ |
| * found in the LICENSE file. |
| */ |
| -/** Tests for ARGBImageEncoder. */ |
| +#include "SkImageEncoder.h" |
| -#include "Test.h" |
| #include "SkBitmap.h" |
| #include "SkCanvas.h" |
| -#include "SkImageEncoder.h" |
| #include "SkStream.h" |
| - |
| -namespace skiatest { |
| - |
| -class BitmapTransformerTestClass : public Test { |
| -public: |
| - static Test* Factory(void*) { return SkNEW(BitmapTransformerTestClass); } |
| -protected: |
| - virtual void onGetName(SkString* name) SK_OVERRIDE { name->set("ARGBImageEncoder"); } |
| - virtual void onRun(Reporter* reporter) SK_OVERRIDE; |
| -}; |
| +#include "Test.h" |
| +#include "TestClassDef.h" |
| static SkBitmap::Config configs[] = { |
| - SkBitmap::kRGB_565_Config, |
| - SkBitmap::kARGB_8888_Config, |
| + SkBitmap::kRGB_565_Config, |
| + SkBitmap::kARGB_8888_Config, |
| }; |
| -void BitmapTransformerTestClass::onRun(Reporter* reporter) { |
| +DEF_TEST(ARGBImageEncodere, reporter) { |
|
mtklein
2014/01/02 22:54:44
Stray 'e' at the end here.
tfarina
2014/01/02 23:00:54
Done.
|
| // Bytes we expect to get: |
| const int kWidth = 3; |
| const int kHeight = 5; |
| @@ -71,7 +61,3 @@ void BitmapTransformerTestClass::onRun(Reporter* reporter) { |
| REPORTER_ASSERT(reporter, memcmp(pixelBuffer, comparisonBuffer, bufferSize) == 0); |
| } |
| } |
| - |
| -static TestRegistry gReg(BitmapTransformerTestClass::Factory); |
| - |
| -} |