tests: add qPrefUnits testcases

add test cases to secure struct preferences and qPrefUnits work together

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-07-31 19:15:54 +02:00 committed by Dirk Hohndel
parent affdc9d394
commit d9b7aaef76
3 changed files with 211 additions and 0 deletions

20
tests/testqPrefUnits.h Normal file
View file

@ -0,0 +1,20 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef TESTQPREFUNITS_H
#define TESTQPREFUNITS_H
#include <QObject>
class TestQPrefUnits : public QObject {
Q_OBJECT
private slots:
void initTestCase();
void test_struct_get();
void test_set_struct();
void test_set_load_struct();
void test_struct_disk();
void test_multiple();
void test_unit_system();
};
#endif // TESTQPREFUNITS_H