1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QTTESTGLOBAL_H |
5 | #define QTTESTGLOBAL_H |
6 | |
7 | #include <QtCore/qglobal.h> |
8 | #include <QtTest/qttestlib-config.h> |
9 | #include <QtTest/qttestexports.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | #if (defined Q_CC_HPACC) && (defined __ia64) |
14 | # ifdef Q_TESTLIB_EXPORT |
15 | # undef Q_TESTLIB_EXPORT |
16 | # endif |
17 | # define Q_TESTLIB_EXPORT |
18 | #endif |
19 | |
20 | #define QTEST_VERSION QT_VERSION |
21 | #define QTEST_VERSION_STR QT_VERSION_STR |
22 | |
23 | namespace QTest |
24 | { |
25 | enum TestFailMode { Abort = 1, Continue = 2 }; |
26 | enum class ComparisonOperation { |
27 | CustomCompare, /* Used for QCOMPARE() */ |
28 | Equal, |
29 | NotEqual, |
30 | LessThan, |
31 | LessThanOrEqual, |
32 | GreaterThan, |
33 | GreaterThanOrEqual, |
34 | }; |
35 | } |
36 | |
37 | QT_END_NAMESPACE |
38 | |
39 | #endif |
40 |