1
/****************************************************************************
2
**
3
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4
** All rights reserved.
5
** Contact: Nokia Corporation (qt-info@nokia.com)
6
**
7
** This file is part of the test suite of the Qt Toolkit.
8
**
9
** $QT_BEGIN_LICENSE:LGPL$
10
** GNU Lesser General Public License Usage
11
** This file may be used under the terms of the GNU Lesser General Public
12
** License version 2.1 as published by the Free Software Foundation and
13
** appearing in the file LICENSE.LGPL included in the packaging of this
14
** file. Please review the following information to ensure the GNU Lesser
15
** General Public License version 2.1 requirements will be met:
16
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
17
**
18
** In addition, as a special exception, Nokia gives you certain additional
19
** rights. These rights are described in the Nokia Qt LGPL Exception
20
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21
**
22
** GNU General Public License Usage
23
** Alternatively, this file may be used under the terms of the GNU General
24
** Public License version 3.0 as published by the Free Software Foundation
25
** and appearing in the file LICENSE.GPL included in the packaging of this
26
** file. Please review the following information to ensure the GNU General
27
** Public License version 3.0 requirements will be met:
28
** http://www.gnu.org/copyleft/gpl.html.
29
**
30
** Other Usage
31
** Alternatively, this file may be used in accordance with the terms and
32
** conditions contained in a signed written agreement between you and Nokia.
33
**
34
**
35
**
36
**
37
**
38
** $QT_END_LICENSE$
39
**
40
****************************************************************************/
41
42
43
#include <QtTest/QtTest>
44
45
#ifdef QTEST_XMLPATTERNS
46
/*!
47
 \class tst_PatternistHeaders
48
 \internal
49
 \short
50
 \since 4.4
51
 \brief Tests that the expected headers are available for Patternist.
52
53
 This test is essentially a compilation test. It includes all the headers that are available for
54
 Patternist, and ensures it compiles.
55
56
 This attempts to capture regressions in header generation.
57
 */
58
class tst_PatternistHeaders : public QObject
59
{
60
    Q_OBJECT
61
62
private Q_SLOTS:
63
    void run() const;
64
};
65
66
void tst_PatternistHeaders::run() const
67
{
68
    /* This is a dummy, essentially. It only exists such that QTestLib
69
     * considers everything fine. */
70
}
71
72
/* If you've added a header, you need to add it four times. Twice in this list,
73
 * and twice in the one below. Alphabetic order. */
74
#include <QAbstractMessageHandler>
75
#include <qabstractmessagehandler.h>
76
#include <QAbstractUriResolver>
77
#include <qabstracturiresolver.h>
78
#include <QAbstractXmlNodeModel>
79
#include <qabstractxmlnodemodel.h>
80
#include <QAbstractXmlReceiver>
81
#include <qabstractxmlreceiver.h>
82
#include <QSimpleXmlNodeModel>
83
#include <qsimplexmlnodemodel.h>
84
#include <QSourceLocation>
85
#include <qsourcelocation.h>
86
#include <QtXmlPatterns>
87
#include <QXmlItem>
88
#include <QXmlName>
89
#include <qxmlname.h>
90
#include <QXmlNamePool>
91
#include <qxmlnamepool.h>
92
#include <QXmlNodeModelIndex>
93
#include <QXmlQuery>
94
#include <qxmlquery.h>
95
#include <QXmlResultItems>
96
#include <qxmlresultitems.h>
97
#include <QXmlSchema>
98
#include <qxmlschema.h>
99
#include <QXmlSchemaValidator>
100
#include <qxmlschemavalidator.h>
101
#include <QXmlSerializer>
102
#include <qxmlserializer.h>
103
104
/* Same again, this time with QtXmlPatterns prepended. Alphabetic order. */
105
106
#include <QtXmlPatterns/QAbstractMessageHandler>
107
#include <QtXmlPatterns/qabstractmessagehandler.h>
108
#include <QtXmlPatterns/QAbstractUriResolver>
109
#include <QtXmlPatterns/qabstracturiresolver.h>
110
#include <QtXmlPatterns/QAbstractXmlNodeModel>
111
#include <QtXmlPatterns/qabstractxmlnodemodel.h>
112
#include <QtXmlPatterns/QAbstractXmlReceiver>
113
#include <QtXmlPatterns/qabstractxmlreceiver.h>
114
#include <QtXmlPatterns/QSimpleXmlNodeModel>
115
#include <QtXmlPatterns/qsimplexmlnodemodel.h>
116
#include <QtXmlPatterns/QSourceLocation>
117
#include <QtXmlPatterns/qsourcelocation.h>
118
#include <QtXmlPatterns/QtXmlPatterns>
119
#include <QtXmlPatterns/QXmlItem>
120
#include <QtXmlPatterns/QXmlName>
121
#include <QtXmlPatterns/qxmlname.h>
122
#include <QtXmlPatterns/QXmlNamePool>
123
#include <QtXmlPatterns/qxmlnamepool.h>
124
#include <QtXmlPatterns/QXmlNodeModelIndex>
125
#include <QtXmlPatterns/QXmlQuery>
126
#include <QtXmlPatterns/qxmlquery.h>
127
#include <QtXmlPatterns/QXmlResultItems>
128
#include <QtXmlPatterns/qxmlresultitems.h>
129
#include <QtXmlPatterns/QXmlSchema>
130
#include <QtXmlPatterns/qxmlschema.h>
131
#include <QtXmlPatterns/QXmlSchemaValidator>
132
#include <QtXmlPatterns/qxmlschemavalidator.h>
133
#include <QtXmlPatterns/QXmlSerializer>
134
#include <QtXmlPatterns/qxmlserializer.h>
135
136
QTEST_MAIN(tst_PatternistHeaders)
137
138
#include "tst_patternistheaders.moc"
139
#else
140
QTEST_NOOP_MAIN
141
#endif
142
143
// vim: et:ts=4:sw=4:sts=4