Nut/tests/auto/tst_benckmark/tst_benchmark.h

28 lines
426 B
C
Raw Normal View History

2016-05-12 14:08:58 +08:00
#ifndef MAINTEST_H
#define MAINTEST_H
#include <QtCore/QObject>
#include <QtCore/qglobal.h>
#include "weblogdatabase.h"
2016-05-21 16:09:03 +08:00
class Post;
2019-02-10 22:27:29 +08:00
class BenchmarkTest : public QObject
2016-05-12 14:08:58 +08:00
{
Q_OBJECT
WeblogDatabase db;
int postId;
2016-05-21 16:09:03 +08:00
Post *post;
Query<Post> *q;
2016-05-12 14:08:58 +08:00
public:
2019-02-10 22:27:29 +08:00
explicit BenchmarkTest(QObject *parent = nullptr);
2016-05-12 14:08:58 +08:00
signals:
private slots:
void initTestCase();
2016-05-24 14:47:37 +08:00
void insert1kPost();
2016-05-12 14:08:58 +08:00
};
#endif // MAINTEST_H