equal
deleted
inserted
replaced
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtXmlPatterns module of the Qt Toolkit. |
7 ** This file is part of the test suite module of the Qt Toolkit. |
8 ** |
8 ** |
9 ** $QT_BEGIN_LICENSE:LGPL$ |
9 ** $QT_BEGIN_LICENSE:LGPL$ |
10 ** No Commercial Usage |
10 ** No Commercial Usage |
11 ** This file contains pre-release code and may not be distributed. |
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 |
12 ** You may use this file in accordance with the terms and conditions |
37 ** |
37 ** |
38 ** $QT_END_LICENSE$ |
38 ** $QT_END_LICENSE$ |
39 ** |
39 ** |
40 ****************************************************************************/ |
40 ****************************************************************************/ |
41 |
41 |
|
42 |
|
43 // SCENARIO 4 |
|
44 // this is the "full" version. Operator+ is replaced by a QStringBuilder |
|
45 // based version |
|
46 // with NO_CAST * _not_ defined |
|
47 #define P + |
|
48 #define QT_USE_FAST_OPERATOR_PLUS |
|
49 #define QT_USE_FAST_CONCATENATION |
|
50 #undef QT_NO_CAST_FROM_ASCII |
|
51 #undef QT_NO_CAST_TO_ASCII |
|
52 |
|
53 |
|
54 #include <QtTest/QtTest> |
|
55 |
|
56 //TESTED_CLASS=QStringBuilder |
|
57 //TESTED_FILES=qstringbuilder.cpp |
|
58 |
|
59 #define LITERAL "some literal" |
|
60 |
|
61 void runScenario(); // Defined in stringbuilder.cpp #included below. |
|
62 |
|
63 class tst_QStringBuilder4 : public QObject |
|
64 { |
|
65 Q_OBJECT |
|
66 |
|
67 private slots: |
|
68 void scenario() { runScenario(); } |
|
69 }; |
|
70 |
42 #include "../qstringbuilder1/stringbuilder.cpp" |
71 #include "../qstringbuilder1/stringbuilder.cpp" |
|
72 #include "tst_qstringbuilder4.moc" |
|
73 |
|
74 QTEST_APPLESS_MAIN(tst_QStringBuilder4) |