more tests (need more meat in there)
git-svn-id: http://skia.googlecode.com/svn/trunk@97 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp
index a759ab1..50d59cf 100644
--- a/tests/MathTest.cpp
+++ b/tests/MathTest.cpp
@@ -213,8 +213,6 @@
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 @@
#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)