tests: add qPrefDisplay testcases

remove test macro, split in functions and add test cases

the existing test macro does not work because
sync() does not save these variables to disk (set* does)

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-07-06 15:10:22 +02:00
parent 8f7f1cacd6
commit 1ef3f61cc9
2 changed files with 115 additions and 21 deletions

View file

@ -2,15 +2,18 @@
#ifndef TESTQPREFDISPLAY_H
#define TESTQPREFDISPLAY_H
#include <QTest>
#include <functional>
#include <QtTest>
class TestQPrefDisplay : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void test1();
void test_struct_get();
void test_set_struct();
void test_set_load_struct();
void test_struct_disk();
void test_multiple();
};
#endif // TESTQPREFDISPLAY_H