summaryrefslogtreecommitdiff
path: root/cxxtest/StdioPrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'cxxtest/StdioPrinter.h')
-rw-r--r--cxxtest/StdioPrinter.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cxxtest/StdioPrinter.h b/cxxtest/StdioPrinter.h
new file mode 100644
index 0000000..af5bc6b
--- /dev/null
+++ b/cxxtest/StdioPrinter.h
@@ -0,0 +1,22 @@
+#ifndef __cxxtest__StdioPrinter_h__
+#define __cxxtest__StdioPrinter_h__
+
+//
+// The StdioPrinter is an StdioFilePrinter which defaults to stdout.
+// This should have been called StdOutPrinter or something, but the name
+// has been historically used.
+//
+
+#include <cxxtest/StdioFilePrinter.h>
+
+namespace CxxTest
+{
+ class StdioPrinter : public StdioFilePrinter
+ {
+ public:
+ StdioPrinter( FILE *o = stdout, const char *preLine = ":", const char *postLine = "" ) :
+ StdioFilePrinter( o, preLine, postLine ) {}
+ };
+}
+
+#endif // __cxxtest__StdioPrinter_h__