| 1 | /**************************************************************************** |
|---|---|
| 2 | ** |
| 3 | ** Copyright (C) 2016 The Qt Company Ltd. |
| 4 | ** Copyright (C) 2016 Intel Corporation. |
| 5 | ** Contact: https://www.qt.io/licensing/ |
| 6 | ** |
| 7 | ** This file is part of the test suite of the Qt Toolkit. |
| 8 | ** |
| 9 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
| 10 | ** Commercial License Usage |
| 11 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 12 | ** accordance with the commercial license agreement provided with the |
| 13 | ** Software or, alternatively, in accordance with the terms contained in |
| 14 | ** a written agreement between you and The Qt Company. For licensing terms |
| 15 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 16 | ** information use the contact form at https://www.qt.io/contact-us. |
| 17 | ** |
| 18 | ** GNU General Public License Usage |
| 19 | ** Alternatively, this file may be used under the terms of the GNU |
| 20 | ** General Public License version 3 as published by the Free Software |
| 21 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
| 22 | ** included in the packaging of this file. Please review the following |
| 23 | ** information to ensure the GNU General Public License requirements will |
| 24 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| 25 | ** |
| 26 | ** $QT_END_LICENSE$ |
| 27 | ** |
| 28 | ****************************************************************************/ |
| 29 | |
| 30 | #ifndef TST_QCOREAPPLICATION_H |
| 31 | #define TST_QCOREAPPLICATION_H |
| 32 | |
| 33 | #include <QtCore/QtCore> |
| 34 | |
| 35 | class tst_QCoreApplication: public QObject |
| 36 | { |
| 37 | Q_OBJECT |
| 38 | private slots: |
| 39 | void sendEventsOnProcessEvents(); // this must be the first test |
| 40 | void getSetCheck(); |
| 41 | void qAppName(); |
| 42 | void qAppVersion(); |
| 43 | void argc(); |
| 44 | void postEvent(); |
| 45 | void removePostedEvents(); |
| 46 | #if QT_CONFIG(thread) |
| 47 | void deliverInDefinedOrder(); |
| 48 | #endif |
| 49 | void applicationPid(); |
| 50 | void globalPostedEventsCount(); |
| 51 | void processEventsAlwaysSendsPostedEvents(); |
| 52 | void reexec(); |
| 53 | void execAfterExit(); |
| 54 | void eventLoopExecAfterExit(); |
| 55 | void customEventDispatcher(); |
| 56 | void testQuitLock(); |
| 57 | void QTBUG31606_QEventDestructorDeadLock(); |
| 58 | void applicationEventFilters_mainThread(); |
| 59 | void applicationEventFilters_auxThread(); |
| 60 | void threadedEventDelivery_data(); |
| 61 | void threadedEventDelivery(); |
| 62 | void testTrWithPercantegeAtTheEnd(); |
| 63 | #if QT_CONFIG(library) |
| 64 | void addRemoveLibPaths(); |
| 65 | #endif |
| 66 | }; |
| 67 | |
| 68 | #endif // TST_QCOREAPPLICATION_H |
| 69 |
