diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-02-27 22:06:06 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-02-27 22:06:06 +0000 |
commit | d8730ea8b25d692c0656f8cf03f02aecfab2a17c (patch) | |
tree | 7a1c8cac5a1433a8ced46bf6dc0f71675e168d76 /tests/MathTest.cpp | |
parent | ed673310e2551e64d8196f7776d7d4c92085f8c2 (diff) |
more tests (need more meat in there)
git-svn-id: http://skia.googlecode.com/svn/trunk@97 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/MathTest.cpp')
-rw-r--r-- | tests/MathTest.cpp | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp index a759ab19a1..50d59cfd19 100644 --- a/tests/MathTest.cpp +++ b/tests/MathTest.cpp @@ -213,8 +213,6 @@ static void TestMath(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, x == i); } - REPORTER_ASSERT(reporter, !"test the reporter"); - x = SkFixedSqrt(SK_Fixed1); REPORTER_ASSERT(reporter, x == SK_Fixed1); x = SkFixedSqrt(SK_Fixed1/4); @@ -375,26 +373,5 @@ static void TestMath(skiatest::Reporter* reporter) { #endif } -/////////////////////////////////////////////////////////////////////////////// - -namespace skiatest { - - class MathTest : public Test { - public: - static Test* Factory(void*) { - return SkNEW(MathTest); - } - - protected: - virtual void onGetName(SkString* name) { - name->set("Math"); - } - - virtual void onRun(Reporter* reporter) { - TestMath(reporter); - } - }; - - static TestRegistry gReg(MathTest::Factory); -} - +#include "TestClassDef.h" +DEFINE_TESTCLASS("Math", MathTestClass, TestMath) |