author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Thu, 22 Apr 2010 16:15:11 +0300 | |
branch | RCL_3 |
changeset 14 | 8c4229025c0b |
parent 4 | 3b1da2848fc7 |
permissions | -rw-r--r-- |
0 | 1 |
/**************************************************************************** |
2 |
** |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
3 |
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 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 |
** No Commercial Usage |
|
11 |
** This file contains pre-release code and may not be distributed. |
|
12 |
** You may use this file in accordance with the terms and conditions |
|
13 |
** contained in the Technology Preview License Agreement accompanying |
|
14 |
** this package. |
|
15 |
** |
|
16 |
** GNU Lesser General Public License Usage |
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 |
** General Public License version 2.1 as published by the Free Software |
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 |
** packaging of this file. Please review the following information to |
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 |
** |
|
24 |
** In addition, as a special exception, Nokia gives you certain additional |
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 |
** |
|
28 |
** If you have questions regarding the use of this file, please contact |
|
29 |
** Nokia at qt-info@nokia.com. |
|
30 |
** |
|
31 |
** |
|
32 |
** |
|
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 |