Qt 4.8
Classes | Namespaces | Macros | Functions | Variables
qtestcase.cpp File Reference
#include "QtTest/qtestcase.h"
#include "QtTest/qtestassert.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qobject.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qvector.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qfile.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qdir.h>
#include <QtCore/qprocess.h>
#include <QtCore/qdebug.h>
#include "QtTest/private/qtestlog_p.h"
#include "QtTest/private/qtesttable_p.h"
#include "QtTest/qtestdata.h"
#include "QtTest/private/qtestresult_p.h"
#include "QtTest/private/qsignaldumper_p.h"
#include "QtTest/private/qbenchmark_p.h"
#include "3rdparty/cycle_p.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <errno.h>
#include <signal.h>
#include <time.h>
#include <Carbon/Carbon.h>
#include <Security/AuthSession.h>

Go to the source code of this file.

Classes

class  QTest::FatalSignalHandler
 
struct  QTest::QTestDataSetter
 
struct  QTest::TestFuncCleanup
 
class  QTest::TestFunction
 

Namespaces

 QTest
 The QTest namespace contains all the functions and declarations that are related to the QTestLib tool.
 

Macros

#define COMPARE_IMPL2(TYPE, FORMAT)
 

Functions

int QTest::defaultEventDelay ()
 
int Q_TESTLIB_EXPORT QTest::defaultKeyDelay ()
 
bool Q_TESTLIB_EXPORT QTest::defaultKeyVerbose ()
 
int Q_TESTLIB_EXPORT QTest::defaultMouseDelay ()
 
void * QTest::fetchData (QTestData *data, const char *tagName, int typeId)
 
void QTest::filter_unprintable (char *str)
 
static void QTest::invokeMethod (QObject *obj, const char *methodName)
 
static bool QTest::isValidSlot (const QMetaMethod &sl)
 
static bool QTest::qInvokeTestMethod (const char *slotName, const char *data=0)
 Call init(), slot_data(), slot(), slot(), slot(). More...
 
static void QTest::qInvokeTestMethodDataEntry (char *slot)
 
static void QTest::qInvokeTestMethods (QObject *testObject)
 
QBenchmarkResult QTest::qMedian (const QList< QBenchmarkResult > &container)
 
static void QTest::qPrintDataTags ()
 
static void QTest::qPrintTestSlots ()
 
int Q_TESTLIB_EXPORT QTest::qt_snprintf (char *str, int size, const char *format,...)
 
Q_TESTLIB_EXPORT void QTest::qtest_qParseArgs (int argc, char *argv[], bool qml)
 
int QTest::qTestRandomSeed ()
 
static int QTest::qToInt (char *str)
 
template<typename T >
static void QTest::randomizeList (T *array, int size)
 
void QTest::seedRandom ()
 
template<typename T >
void QTest::swap (T *array, int pos, int otherPos)
 
char * QTest::toHexRepresentation (const char *ba, int length)
 Returns a pointer to a string that is the string ba represented as a space-separated sequence of hex characters. More...
 

Variables

static QObjectQTest::currentTestObject = 0
 
static int QTest::eventDelay = -1
 
static int QTest::keyDelay = -1
 
static int QTest::keyVerbose = -1
 
static int QTest::mouseDelay = -1
 
static bool QTest::noCrashHandler = false
 
Q_TESTLIB_EXPORT bool QTest::printAvailableFunctions = false
 
Q_TESTLIB_EXPORT bool QTest::printAvailableTags = false
 
static bool QTest::randomOrder = false
 
static unsigned int QTest::seed = 0
 
static bool QTest::seedSet = false
 
static struct QTest::TestFuncCleanup QTest::testFuncCleaner
 
static int QTest::testFuncCount = 0
 
static TestFunction * QTest::testFuncs = 0
 
Q_TESTLIB_EXPORT QStringList QTest::testFunctions
 
Q_TESTLIB_EXPORT QStringList QTest::testTags
 

Macro Definition Documentation

◆ COMPARE_IMPL2

#define COMPARE_IMPL2 (   TYPE,
  FORMAT 
)
Value:
template <> Q_TESTLIB_EXPORT char *QTest::toString<TYPE >(const TYPE &t) \
{ \
char *msg = new char[128]; \
qt_snprintf(msg, 128, #FORMAT, t); \
return msg; \
}
#define Q_TESTLIB_EXPORT
Definition: qtest_global.h:56

Definition at line 2329 of file qtestcase.cpp.