summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestlog_p.h
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2012-01-16 15:12:39 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-17 01:17:35 +0100
commit2ba0d1e550d5ec8624a4c6a52ff2ce48f9557cf0 (patch)
tree8aec65f0d22c3aa71db2cccee43303c606bcce68 /src/testlib/qtestlog_p.h
parent6acdb3256113a5cdc9633077ada5674e5ee694d1 (diff)
Move pass/fail/skip counters from QTestResult to QTestLog.
This change will enable further simplification of QTestResult and QTestLog in the future, including removing a circular dependency between the two classes. The "getter" functions in QTestResult are retained for now, but will be removed in a future commit, once QtQuickTest has been changed to call the getters that this commit adds to QTestLog. This commit is adapted from an unfinished change by Henrik Hartz. Change-Id: Ife7f80ac6a4310449a4712e96e0bea6c02139a5a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qtestlog_p.h')
-rw-r--r--src/testlib/qtestlog_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testlib/qtestlog_p.h b/src/testlib/qtestlog_p.h
index 02bb54815c..4585e732e8 100644
--- a/src/testlib/qtestlog_p.h
+++ b/src/testlib/qtestlog_p.h
@@ -96,6 +96,12 @@ public:
static void setPrintAvailableTagsMode();
+ static int passCount();
+ static int failCount();
+ static int skipCount();
+
+ static void resetCounters();
+
private:
QTestLog();
~QTestLog();