From d8730ea8b25d692c0656f8cf03f02aecfab2a17c Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Fri, 27 Feb 2009 22:06:06 +0000 Subject: more tests (need more meat in there) git-svn-id: http://skia.googlecode.com/svn/trunk@97 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/PackBitsTest.cpp | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'tests/PackBitsTest.cpp') diff --git a/tests/PackBitsTest.cpp b/tests/PackBitsTest.cpp index 6e69f825a4..fc11fb26a9 100644 --- a/tests/PackBitsTest.cpp +++ b/tests/PackBitsTest.cpp @@ -118,27 +118,10 @@ static void test_pack8(skiatest::Reporter* reporter) { } } -/////////////////////////////////////////////////////////////////////////////// - -namespace skiatest { - - class PackBitsTest : public Test { - public: - static Test* Factory(void*) { - return SkNEW(PackBitsTest); - } - - protected: - virtual void onGetName(SkString* name) { - name->set("PackBits"); - } - - virtual void onRun(Reporter* reporter) { - test_pack8(reporter); - test_pack16(reporter); - } - }; - - static TestRegistry gReg(PackBitsTest::Factory); +static void TestPackBits(skiatest::Reporter* reporter) { + test_pack8(reporter); + test_pack16(reporter); } +#include "TestClassDef.h" +DEFINE_TESTCLASS("PackBits", PackBitsTestClass, TestPackBits) -- cgit v1.2.3