summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestxunitstreamer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtestxunitstreamer.h')
-rw-r--r--src/testlib/qtestxunitstreamer.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/testlib/qtestxunitstreamer.h b/src/testlib/qtestxunitstreamer.h
new file mode 100644
index 0000000..02c65fc
--- /dev/null
+++ b/src/testlib/qtestxunitstreamer.h
@@ -0,0 +1,26 @@
+#ifndef QTESTXUNITSTREAMER_H
+#define QTESTXUNITSTREAMER_H
+
+#include "qtestbasicstreamer.h"
+
+class QTestLogger;
+
+class QTestXunitStreamer: public QTestBasicStreamer
+{
+ public:
+ QTestXunitStreamer();
+ ~QTestXunitStreamer();
+
+ void formatStart(const QTestElement *element = 0, char *formatted = 0) const;
+ void formatEnd(const QTestElement *element = 0, char *formatted = 0) const;
+ void formatAfterAttributes(const QTestElement *element = 0, char *formatted = 0) const;
+ void formatAttributes(const QTestElementAttribute *attribute = 0, char *formatted = 0) const;
+ void output(QTestElement *element) const;
+ void outputElements(QTestElement *element, bool isChildElement = false) const;
+
+ private:
+ void displayXunitXmlHeader() const;
+ static void indentForElement(const QTestElement* element, char* buf, int size);
+};
+
+#endif