4#ifndef QPLAINTESTLOGGER_P_H
5#define QPLAINTESTLOGGER_P_H
18#include <QtTest/private/qabstracttestlogger_p.h>
35 const char *
file =
nullptr,
int line = 0)
override;
44 const char *
file =
nullptr,
int line = 0)
override;
47 enum class MessageSource {
51 void printMessage(MessageSource
source,
const char *
type,
const char *msg,
52 const char *
file =
nullptr,
int line = 0);
53 void outputMessage(
const char *
str);
Base class for test loggers.
IncidentTypes
\value Pass The test ran to completion successfully.
MessageTypes
The members whose names begin with Q describe messages that originate in calls, by the test or code u...
void stopLogging() override
Called after the end of a test run.
void leaveTestFunction() override
This virtual method is called after a test function has completed, to match \l enterTestFunction().
void addMessage(QtMsgType, const QMessageLogContext &, const QString &) override
This is an overloaded member function, provided for convenience. It differs from the above function o...
void addIncident(IncidentTypes type, const char *description, const char *file=nullptr, int line=0) override
This virtual method is called when an event occurs that relates to the resolution of the test.
void startLogging() override
Called before the start of a test run.
void enterTestFunction(const char *function) override
This virtual method is called before each test function is invoked.
void addBenchmarkResults(const QList< QBenchmarkResult > &results) override
void addBenchmarkResult(const QBenchmarkResult &) final override
This virtual method is called after a benchmark has been run enough times to produce usable data.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLuint GLsizei const GLchar * message
GLsizei GLsizei GLchar * source