diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2012-01-16 15:12:39 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-17 01:17:35 +0100 |
commit | 2ba0d1e550d5ec8624a4c6a52ff2ce48f9557cf0 (patch) | |
tree | 8aec65f0d22c3aa71db2cccee43303c606bcce68 /src/testlib/qtestlog_p.h | |
parent | 6acdb3256113a5cdc9633077ada5674e5ee694d1 (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.h | 6 |
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(); |