Fix unit test header includes

* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
This commit is contained in:
Roland Winklmeier
2016-05-18 15:54:41 +02:00
parent 364b16346d
commit 4f8205e585
41 changed files with 276 additions and 72 deletions

View File

@@ -10,11 +10,14 @@
#ifndef BLACKCORETEST_EXPECT_H
#define BLACKCORETEST_EXPECT_H
#include <QObject>
#include <QMetaMethod>
#include <QMetaObject>
#include <QObject>
#include <QPointer>
#include <QVector>
#include <QSet>
#include <QString>
#include <QVector>
#include <QtGlobal>
#include <functional>
//! \cond PRIVATE_TESTS
@@ -172,6 +175,7 @@ namespace BlackCoreTest
// Helper traits class. Given T is a pointer-to-member-of-U, ClassOf<T>::type is U.
template <class T> struct ClassOf;
template <class U, class R> struct ClassOf<R U::*> { using type = U; };
// Given T is a pointer-to-member-of-U, subject<T>() returns Expect's subject casted to U*.