Changed unittests in corelib to use specific headers instead of super-headers.
Modified unittests to use specific class headers instead of using super-headers like QtCore that pull in all the headers for the module. - Decreasing build time. Change-Id: I9c3fd0767be15205893bb406f609c8283a2a3a5a Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
f1da37e989
commit
990e890b9e
@ -42,7 +42,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTextCodec>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
@ -40,7 +40,12 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include <QtGui/QtGui>
|
||||
#include <QtGui/QBitmap>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QPicture>
|
||||
#include <QtGui/QTextLength>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QPen>
|
||||
|
||||
Q_DECLARE_METATYPE(QBitArray)
|
||||
Q_DECLARE_METATYPE(qint64)
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QtDebug>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
|
@ -40,7 +40,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QFile>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -39,7 +39,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtNetwork/QtNetwork>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include <QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
class tst_QResourceEngine: public QObject
|
||||
{
|
||||
|
@ -40,7 +40,9 @@
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
@ -40,7 +40,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtCore/QString>
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
@ -40,7 +40,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTextStream>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
#include <QtCore/QSortFilterProxyModel>
|
||||
#include <QtCore/QStringListModel>
|
||||
|
@ -40,9 +40,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtWidgets/QStandardItemModel>
|
||||
|
||||
#include "dynamictreemodel.h"
|
||||
#include "qidentityproxymodel.h"
|
||||
|
@ -41,10 +41,10 @@
|
||||
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtSql/QtSql>
|
||||
#include <QtWidgets/QtWidgets>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QtCore/QSortFilterProxyModel>
|
||||
|
||||
/*
|
||||
To add a model to be tested add the header file to the includes
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include <QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <qdebug.h>
|
||||
#include "modelstotest.cpp"
|
||||
#include <QMetaType>
|
||||
|
@ -43,9 +43,10 @@
|
||||
#include "dynamictreemodel.h"
|
||||
#include "modeltest.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtWidgets/QStandardItem>
|
||||
#include <QtWidgets/QTreeView>
|
||||
#include <QtWidgets/QTableView>
|
||||
|
||||
#include <qdebug.h>
|
||||
|
||||
|
@ -39,7 +39,8 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QThreadStorage>
|
||||
|
||||
class Class
|
||||
{
|
||||
|
@ -40,6 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
class tst_QCryptographicHash : public QObject
|
||||
@ -54,7 +55,6 @@ private slots:
|
||||
void files_data();
|
||||
void files();
|
||||
};
|
||||
#include <QtCore>
|
||||
|
||||
void tst_QCryptographicHash::repeated_result_data()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user