1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the test suite of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:GPL-EXCEPT$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see https://www.qt.io/terms-conditions. For further
15** information use the contact form at https://www.qt.io/contact-us.
16**
17** GNU General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU
19** General Public License version 3 as published by the Free Software
20** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21** included in the packaging of this file. Please review the following
22** information to ensure the GNU General Public License requirements will
23** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24**
25** $QT_END_LICENSE$
26**
27****************************************************************************/
28
29
30#include <QtTest/QtTest>
31
32/*!
33 \class tst_PatternistHeaders
34 \internal
35 \short
36 \since 4.4
37 \brief Tests that the expected headers are available for Patternist.
38
39 This test is essentially a compilation test. It includes all the headers that are available for
40 Patternist, and ensures it compiles.
41
42 This attempts to capture regressions in header generation.
43 */
44class tst_PatternistHeaders : public QObject
45{
46 Q_OBJECT
47
48private Q_SLOTS:
49 void run() const;
50};
51
52void tst_PatternistHeaders::run() const
53{
54 /* This is a dummy, essentially. It only exists such that QTestLib
55 * considers everything fine. */
56}
57
58/* If you've added a header, you need to add it four times. Twice in this list,
59 * and twice in the one below. Alphabetic order. */
60#include <QAbstractMessageHandler>
61#include <qabstractmessagehandler.h>
62#include <QAbstractUriResolver>
63#include <qabstracturiresolver.h>
64#include <QAbstractXmlNodeModel>
65#include <qabstractxmlnodemodel.h>
66#include <QAbstractXmlReceiver>
67#include <qabstractxmlreceiver.h>
68#include <QSimpleXmlNodeModel>
69#include <qsimplexmlnodemodel.h>
70#include <QSourceLocation>
71#include <qsourcelocation.h>
72#include <QtXmlPatterns>
73#include <QXmlItem>
74#include <QXmlName>
75#include <qxmlname.h>
76#include <QXmlNamePool>
77#include <qxmlnamepool.h>
78#include <QXmlNodeModelIndex>
79#include <QXmlQuery>
80#include <qxmlquery.h>
81#include <QXmlResultItems>
82#include <qxmlresultitems.h>
83#include <QXmlSchema>
84#include <qxmlschema.h>
85#include <QXmlSchemaValidator>
86#include <qxmlschemavalidator.h>
87#include <QXmlSerializer>
88#include <qxmlserializer.h>
89
90/* Same again, this time with QtXmlPatterns prepended. Alphabetic order. */
91
92#include <QtXmlPatterns/QAbstractMessageHandler>
93#include <QtXmlPatterns/qabstractmessagehandler.h>
94#include <QtXmlPatterns/QAbstractUriResolver>
95#include <QtXmlPatterns/qabstracturiresolver.h>
96#include <QtXmlPatterns/QAbstractXmlNodeModel>
97#include <QtXmlPatterns/qabstractxmlnodemodel.h>
98#include <QtXmlPatterns/QAbstractXmlReceiver>
99#include <QtXmlPatterns/qabstractxmlreceiver.h>
100#include <QtXmlPatterns/QSimpleXmlNodeModel>
101#include <QtXmlPatterns/qsimplexmlnodemodel.h>
102#include <QtXmlPatterns/QSourceLocation>
103#include <QtXmlPatterns/qsourcelocation.h>
104#include <QtXmlPatterns/QtXmlPatterns>
105#include <QtXmlPatterns/QXmlItem>
106#include <QtXmlPatterns/QXmlName>
107#include <QtXmlPatterns/qxmlname.h>
108#include <QtXmlPatterns/QXmlNamePool>
109#include <QtXmlPatterns/qxmlnamepool.h>
110#include <QtXmlPatterns/QXmlNodeModelIndex>
111#include <QtXmlPatterns/QXmlQuery>
112#include <QtXmlPatterns/qxmlquery.h>
113#include <QtXmlPatterns/QXmlResultItems>
114#include <QtXmlPatterns/qxmlresultitems.h>
115#include <QtXmlPatterns/QXmlSchema>
116#include <QtXmlPatterns/qxmlschema.h>
117#include <QtXmlPatterns/QXmlSchemaValidator>
118#include <QtXmlPatterns/qxmlschemavalidator.h>
119#include <QtXmlPatterns/QXmlSerializer>
120#include <QtXmlPatterns/qxmlserializer.h>
121
122QTEST_MAIN(tst_PatternistHeaders)
123
124#include "tst_patternistheaders.moc"
125
126// vim: et:ts=4:sw=4:sts=4
127

source code of qtxmlpatterns/tests/auto/patternistheaders/tst_patternistheaders.cpp