#include "qtest_global.h"
#include "qbenchmarkmetric.h"
-
QT_BEGIN_NAMESPACE
-
namespace QTest {
const char * benchmarkMetricName(QBenchmarkMetric metric);
const char * benchmarkMetricUnit(QBenchmarkMetric metric);
QT_END_NAMESPACE
-
#endif // QBENCHMARK_H
#include <QtCore/qglobal.h>
-
QT_BEGIN_NAMESPACE
-
#define QTEST_ASSERT(cond) do {if(!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
#define QTEST_ASSERT_X(cond, where, what) do {if(!(cond))qt_assert_x(where, what,__FILE__,__LINE__);} while (0)
QT_END_NAMESPACE
-
#endif
#include <QtCore/qnamespace.h>
#include <QtCore/qmetatype.h>
-
QT_BEGIN_NAMESPACE
-
#define QVERIFY(statement) \
do {\
if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__))\
QT_BEGIN_NAMESPACE
-class QTestEvent
+class Q_TEST_EXPORT QTestEvent
{
public:
virtual void simulate(QWidget *w) = 0;
};
#ifdef QT_GUI_LIB
-class QTestKeyEvent: public QTestEvent
+class Q_TEST_EXPORT QTestKeyEvent : public QTestEvent
{
public:
inline QTestKeyEvent(QTest::KeyAction action, Qt::Key key, Qt::KeyboardModifiers modifiers, int delay)
Qt::Key _key;
};
-class QTestKeyClicksEvent: public QTestEvent
+class Q_TEST_EXPORT QTestKeyClicksEvent : public QTestEvent
{
public:
inline QTestKeyClicksEvent(const QString &keys, Qt::KeyboardModifiers modifiers, int delay)
int _delay;
};
-class QTestMouseEvent: public QTestEvent
+class Q_TEST_EXPORT QTestMouseEvent : public QTestEvent
{
public:
inline QTestMouseEvent(QTest::MouseAction action, Qt::MouseButton button,
#endif //QT_GUI_LIB
-class QTestDelayEvent: public QTestEvent
+class Q_TEST_EXPORT QTestDelayEvent : public QTestEvent
{
public:
inline QTestDelayEvent(int msecs): _delay(msecs) {}
int _delay;
};
-class QTestEventList: public QList<QTestEvent *>
+class Q_TEST_EXPORT QTestEventList : public QList<QTestEvent *>
{
public:
inline QTestEventList() : QList<QTestEvent *>() {}