add test header

This commit is contained in:
canpadawan
2016-06-24 17:25:17 +02:00
parent a9f4c38cbc
commit 10515e4cdf
2 changed files with 18 additions and 17 deletions
+4 -17
View File
@@ -1,19 +1,10 @@
#include <QtTest/QtTest>
#include <QtTest>
#include <QtConcurrent/qtconcurrentrun.h>
#include "lfqueue.h"
#include "utils/lfqueue.h"
#include "tst_lfqueue.h"
class TestLFQueue: public QObject
{
Q_OBJECT
private:
private slots:
void setSize_data();
void setSize();
void exchange_data();
void exchange();
};
void TestLFQueue::setSize_data()
@@ -92,7 +83,3 @@ void TestLFQueue::exchange()
thread.waitForFinished();
}
QTEST_MAIN(TestLFQueue)
#include "tst_lfqueue.moc"
+14
View File
@@ -1,4 +1,18 @@
#ifndef TST_LFQUEUE_H
#define TST_LFQUEUE_H
#include <QObject>
class TestLFQueue: public QObject
{
Q_OBJECT
private:
private slots:
void setSize_data();
void setSize();
void exchange_data();
void exchange();
};
#endif // TST_LFQUEUE_H