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#if 0
8#pragma qt_deprecates(qtest_global.h)
9#endif
10
11#include <QtCore/qglobal.h>
12#include <QtTest/qttestlib-config.h>
13#include <QtTest/qttestexports.h>
14
15QT_BEGIN_NAMESPACE
16
17#if (defined Q_CC_HPACC) && (defined __ia64)
18# ifdef Q_TESTLIB_EXPORT
19# undef Q_TESTLIB_EXPORT
20# endif
21# define Q_TESTLIB_EXPORT
22#endif
23
24#define QTEST_VERSION QT_VERSION
25#define QTEST_VERSION_STR QT_VERSION_STR
26
27namespace QTest
28{
29 enum TestFailMode { Abort = 1, Continue = 2 };
30 enum class ComparisonOperation {
31 CustomCompare, /* Used for QCOMPARE() */
32 Equal,
33 NotEqual,
34 LessThan,
35 LessThanOrEqual,
36 GreaterThan,
37 GreaterThanOrEqual,
38 };
39}
40
41QT_END_NAMESPACE
42
43#endif
44

source code of qtbase/src/testlib/qttestglobal.h