#include <qplaintestlogger_p.h>
Definition at line 60 of file qplaintestlogger_p.h.
◆ QPlainTestLogger()
QPlainTestLogger::QPlainTestLogger |
( |
| ) |
|
Definition at line 386 of file qplaintestlogger.cpp.
389 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) 390 InitializeCriticalSection(&QTest::outputCriticalSection);
391 QTest::hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
392 if (QTest::hConsole != INVALID_HANDLE_VALUE) {
393 CONSOLE_SCREEN_BUFFER_INFO
info;
394 if (GetConsoleScreenBufferInfo(QTest::hConsole, &info)) {
395 QTest::consoleAttributes = info.wAttributes;
397 QTest::hConsole = INVALID_HANDLE_VALUE;
static mach_timebase_info_data_t info
◆ ~QPlainTestLogger()
QPlainTestLogger::~QPlainTestLogger |
( |
| ) |
|
Definition at line 403 of file qplaintestlogger.cpp.
405 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) 406 DeleteCriticalSection(&QTest::outputCriticalSection);
◆ addBenchmarkResult()
◆ addIncident()
void QPlainTestLogger::addIncident |
( |
IncidentTypes |
type, |
|
|
const char * |
description, |
|
|
const char * |
file = 0 , |
|
|
int |
line = 0 |
|
) |
| |
|
virtual |
Implements QAbstractTestLogger.
Definition at line 464 of file qplaintestlogger.cpp.
static int verboseLevel()
static const char * incidentType2String(QAbstractTestLogger::IncidentTypes type)
static void printMessage(const char *type, const char *msg, const char *file=0, int line=0)
◆ addMessage()
void QPlainTestLogger::addMessage |
( |
MessageTypes |
type, |
|
|
const char * |
message, |
|
|
const char * |
file = 0 , |
|
|
int |
line = 0 |
|
) |
| |
|
virtual |
Implements QAbstractTestLogger.
Definition at line 480 of file qplaintestlogger.cpp.
static int verboseLevel()
static const char * messageType2String(QAbstractTestLogger::MessageTypes type)
static void printMessage(const char *type, const char *msg, const char *file=0, int line=0)
◆ enterTestFunction()
void QPlainTestLogger::enterTestFunction |
( |
const char * |
function | ) |
|
|
virtual |
Implements QAbstractTestLogger.
Definition at line 454 of file qplaintestlogger.cpp.
static int verboseLevel()
static const char * messageType2String(QAbstractTestLogger::MessageTypes type)
static void printMessage(const char *type, const char *msg, const char *file=0, int line=0)
◆ leaveTestFunction()
void QPlainTestLogger::leaveTestFunction |
( |
| ) |
|
|
virtual |
◆ registerRandomSeed()
void QPlainTestLogger::registerRandomSeed |
( |
unsigned int |
seed | ) |
|
|
virtual |
◆ startLogging()
void QPlainTestLogger::startLogging |
( |
| ) |
|
|
virtual |
Reimplemented from QAbstractTestLogger.
Definition at line 410 of file qplaintestlogger.cpp.
421 "********* Start testing of %s *********\n" 426 "********* Start testing of %s *********\n" static int verboseLevel()
Q_CORE_EXPORT const char * qVersion()
static const char * currentTestObjectName()
static void outputMessage(const char *str)
#define QTEST_VERSION_STR
int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format,...)
virtual void startLogging()
◆ stopLogging()
void QPlainTestLogger::stopLogging |
( |
| ) |
|
|
virtual |
Reimplemented from QAbstractTestLogger.
Definition at line 434 of file qplaintestlogger.cpp.
443 "Totals: %d passed, %d failed, %d skipped\n" 444 "********* Finished testing of %s *********\n",
static int verboseLevel()
virtual void stopLogging()
static const char * currentTestObjectName()
static void outputMessage(const char *str)
int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format,...)
◆ hasRandomSeed
bool QPlainTestLogger::hasRandomSeed |
|
private |
◆ randomSeed
unsigned int QPlainTestLogger::randomSeed |
|
private |
The documentation for this class was generated from the following files: