42 #ifndef QABSTRACTTESTLOGGER_P_H 43 #define QABSTRACTTESTLOGGER_P_H 92 const char *file = 0,
int line = 0) = 0;
96 const char *file = 0,
int line = 0) = 0;
106 enum { InitialSize = 512 };
109 : _size(InitialSize), buf(staticBuf)
116 if (buf != staticBuf)
143 if (buf == staticBuf) {
145 newBuf =
reinterpret_cast<char *
>(
qMalloc(newSize));
148 newBuf =
reinterpret_cast<char *
>(
qRealloc(buf, newSize));
163 char staticBuf[InitialSize];
virtual void registerRandomSeed(unsigned int seed)=0
virtual void addIncident(IncidentTypes type, const char *description, const char *file=0, int line=0)=0
static void outputString(const char *msg)
#define QT_END_NAMESPACE
This macro expands to.
Q_CORE_EXPORT void qFree(void *ptr)
int qt_asprintf(QTestCharBuffer *str, const char *format,...)
Q_CORE_EXPORT void * qMalloc(size_t size)
Q_CORE_EXPORT void * qRealloc(void *ptr, size_t size)
virtual void stopLogging()
#define QT_BEGIN_NAMESPACE
This macro expands to.
const char * constData() const
virtual ~QAbstractTestLogger()
virtual void startLogging()
virtual void addMessage(MessageTypes type, const char *message, const char *file=0, int line=0)=0
virtual void enterTestFunction(const char *function)=0
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...
virtual void addBenchmarkResult(const QBenchmarkResult &result)=0
static bool isTtyOutput()
virtual void leaveTestFunction()=0