migrate more legacy unittests into tests/
SkParse yet to be cleaned up
git-svn-id: http://skia.googlecode.com/svn/trunk@113 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/main.cpp b/tests/main.cpp
index 0b82af4..7975de0 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -1,5 +1,5 @@
#include <iostream>
-
+#include "SkGraphics.h"
#include "Test.h"
using namespace skiatest;
@@ -46,7 +46,19 @@
virtual void onEnd(Test* test) {}
};
+class SkAutoGraphics {
+public:
+ SkAutoGraphics() {
+ SkGraphics::Init();
+ }
+ ~SkAutoGraphics() {
+ SkGraphics::Term();
+ }
+};
+
int main (int argc, char * const argv[]) {
+ SkAutoGraphics ag;
+
PrintfReporter reporter;
Iter iter(&reporter);
Test* test;