18#include <QtTest/qttestglobal.h>
19#include <QtCore/qstringfwd.h>
20#include <QtCore/qxpfunctional.h>
21#include <QtCore/private/qglobal_p.h>
25class QTestResultPrivate;
31 static const char *currentTestObjectName();
32 static bool currentTestFailed();
34 static QTestData *currentGlobalTestData();
35 static const char *currentTestFunction();
36 static const char *currentDataTag();
37 static const char *currentGlobalDataTag();
38 static void finishedCurrentTestData();
39 static void finishedCurrentTestDataCleanup();
40 static void finishedCurrentTestFunction();
42 static void setBlacklistCurrentTest(
bool b);
44 static void addFailure(
const char *
message,
const char *
file =
nullptr,
int line = 0);
48 static bool compare(
bool success,
const char *failureMsg,
49 char *val1,
char *val2,
50 const char *actual,
const char *
expected,
52 static bool compare(
bool success,
const char *failureMsg,
53 double val1,
double val2,
54 const char *actual,
const char *
expected,
56 static bool compare(
bool success,
const char *failureMsg,
57 float val1,
float val2,
58 const char *actual,
const char *
expected,
60 static bool compare(
bool success,
const char *failureMsg,
62 const char *actual,
const char *
expected,
64#if QT_POINTER_SIZE == 8
65 static bool compare(
bool success,
const char *failureMsg,
67 const char *actual,
const char *
expected,
70 static bool compare(
bool success,
const char *failureMsg,
71 unsigned val1,
unsigned val2,
72 const char *actual,
const char *
expected,
74 static bool compare(
bool success,
const char *failureMsg,
76 const char *actual,
const char *
expected,
78 static bool compare(
bool success,
const char *failureMsg,
80 const char *actual,
const char *
expected,
82 static bool compare(
bool success,
const char *failureMsg,
84 const char *actual,
const char *
expected,
86 static bool compare(
bool success,
const char *failureMsg,
87 const char *actual,
const char *expeceted,
91 static void setCurrentTestFunction(
const char *
func);
92 static void setCurrentTestObject(
const char *
name);
94 static bool expectFail(
const char *dataIndex,
const char *comment,
97 static bool verify(
bool statement,
const char *statementStr,
const char *extraInfo,
99 static void setSkipCurrentTest(
bool value);
100 static bool skipCurrentTest();
102 static void setCurrentAppName(
const char *appName);
107 const char *lhsExpr,
const char *rhsExpr,
109 const char *failureMessage =
nullptr);
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLboolean GLboolean GLboolean b
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static const char * currentAppName
static int compare(quint64 a, quint64 b)