support -android mode when running tests, which spews out android specific
formatting for their testing env.
git-svn-id: http://skia.googlecode.com/svn/trunk@152 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/Test.h b/tests/Test.h
index d5dc9e3..de51801 100644
--- a/tests/Test.h
+++ b/tests/Test.h
@@ -48,7 +48,11 @@
void reportFailed(const SkString& desc) {
this->report(desc.c_str(), kFailed);
}
-
+
+ bool getCurrSuccess() const {
+ return fCurrTestSuccess;
+ }
+
protected:
virtual void onStart(Test*) {}
virtual void onReport(const char desc[], Result) {}
@@ -58,6 +62,7 @@
Test* fCurrTest;
int fTestCount;
int fResultCount[kLastResult+1];
+ bool fCurrTestSuccess;
typedef SkRefCnt INHERITED;
};
@@ -71,7 +76,7 @@
void setReporter(Reporter*);
const char* getName();
- void run();
+ bool run(); // returns true on success
protected:
virtual void onGetName(SkString*) = 0;