path ops work in progress
standardize tests
use SK_ARRAY_COUNT everywhere
debug why x87 differs from SIMD 64
various platform specific fixes
git-svn-id: http://skia.googlecode.com/svn/trunk@8689 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/TestClassDef.h b/tests/TestClassDef.h
index 4a7db4a..70d6039 100644
--- a/tests/TestClassDef.h
+++ b/tests/TestClassDef.h
@@ -17,6 +17,19 @@
void MyTestFunction(skiatest::Reporter*)
*/
+// FIXME: replace all three param callers with the short one param version
+#define DEFINE_TESTCLASS_SHORT(function) \
+ namespace skiatest { \
+ class function##Class : public Test { \
+ public: \
+ static Test* Factory(void*) { return SkNEW(function##Class); } \
+ protected: \
+ virtual void onGetName(SkString* name) SK_OVERRIDE { name->set(#function); } \
+ virtual void onRun(Reporter* reporter) SK_OVERRIDE { function(reporter); } \
+ }; \
+ static TestRegistry gReg_##function##Class(function##Class::Factory); \
+ }
+
#define DEFINE_TESTCLASS(uiname, classname, function) \
namespace skiatest { \
class classname : public Test { \