1 /****************************************************************************
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/
6 ** This file is part of the test suite of the Qt Toolkit.
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.
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.
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.
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.
40 ****************************************************************************/
43 #include <QtTest/QtTest>
46 \class tst_PatternistHeaders
50 \brief Tests that the expected headers are available for Patternist.
52 This test is essentially a compilation test. It includes all the headers that are available for
53 Patternist, and ensures it compiles.
55 This attempts to capture regressions in header generation.
57 class tst_PatternistHeaders : public QObject
65 void tst_PatternistHeaders::run() const
67 /* This is a dummy, essentially. It only exists such that QTestLib
68 * considers everything fine. */
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>
89 #include <QXmlNamePool>
90 #include <qxmlnamepool.h>
91 #include <QXmlNodeModelIndex>
93 #include <qxmlquery.h>
94 #include <QXmlResultItems>
95 #include <qxmlresultitems.h>
97 #include <qxmlschema.h>
98 #include <QXmlSchemaValidator>
99 #include <qxmlschemavalidator.h>
100 #include <QXmlSerializer>
101 #include <qxmlserializer.h>
103 /* Same again, this time with QtXmlPatterns prepended. Alphabetic order. */
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>
135 QTEST_MAIN(tst_PatternistHeaders)
137 #include "tst_patternistheaders.moc"
139 // vim: et:ts=4:sw=4:sts=4