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