aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Test.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-25 20:24:24 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-25 20:24:24 +0000
commit789c6f291ecfff925086015360da525d6de1c835 (patch)
tree4e0b2f28a8bd8624ae8ca1670548a9799cd37a68 /tests/Test.h
parent6e4e65066a7c0dbc9bfbfe4b8f5d49c3d8a79b59 (diff)
add --tmpDir foo option to tests, to allow unittests that want to write/read files
use tmpDir in SkStream tests git-svn-id: http://skia.googlecode.com/svn/trunk@7851 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/Test.h')
-rw-r--r--tests/Test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Test.h b/tests/Test.h
index 2dca0e6fd0..98ade93e87 100644
--- a/tests/Test.h
+++ b/tests/Test.h
@@ -88,6 +88,8 @@ namespace skiatest {
const char* getName();
bool run(); // returns true on success
+ static const char* GetTmpDir();
+
protected:
virtual void onGetName(SkString*) = 0;
virtual void onRun(Reporter*) = 0;