tests: add qPrefLanguage testcases

add test cases to secure struct preferences and qPrefLanguage work together

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-08-08 17:13:31 +02:00 committed by Dirk Hohndel
parent 72d87364c0
commit dfa3f5e0e7
3 changed files with 175 additions and 0 deletions

19
tests/testqPrefLanguage.h Normal file
View file

@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef TESTQPREFLANGUAGE_H
#define TESTQPREFLANGUAGE_H
#include <QObject>
class TestQPrefLanguage : 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();
};
#endif // TESTQPREFLANGUAGE_H