equal
deleted
inserted
replaced
44 #include <QtCore/qglobal.h> |
44 #include <QtCore/qglobal.h> |
45 |
45 |
46 #include "QtTest/private/qxmltestlogger_p.h" |
46 #include "QtTest/private/qxmltestlogger_p.h" |
47 #include "QtTest/private/qtestresult_p.h" |
47 #include "QtTest/private/qtestresult_p.h" |
48 #include "QtTest/private/qbenchmark_p.h" |
48 #include "QtTest/private/qbenchmark_p.h" |
|
49 #include "QtTest/private/qbenchmarkmetric_p.h" |
49 #include "QtTest/qtestcase.h" |
50 #include "QtTest/qtestcase.h" |
50 |
51 |
51 QT_BEGIN_NAMESPACE |
52 QT_BEGIN_NAMESPACE |
52 |
53 |
53 namespace QTest { |
54 namespace QTest { |
241 QTestCharBuffer buf; |
242 QTestCharBuffer buf; |
242 QTestCharBuffer quotedMetric; |
243 QTestCharBuffer quotedMetric; |
243 QTestCharBuffer quotedTag; |
244 QTestCharBuffer quotedTag; |
244 |
245 |
245 xmlQuote("edMetric, |
246 xmlQuote("edMetric, |
246 QBenchmarkGlobalData::current->measurer->metricText().toAscii().constData()); |
247 benchmarkMetricName(result.metric)); |
247 xmlQuote("edTag, result.context.tag.toAscii().constData()); |
248 xmlQuote("edTag, result.context.tag.toAscii().constData()); |
248 |
249 |
249 QTest::qt_asprintf( |
250 QTest::qt_asprintf( |
250 &buf, |
251 &buf, |
251 QTest::benchmarkResultFormatString(), |
252 QTest::benchmarkResultFormatString(), |