From bb5c1da1b7e8f5b2758db4d3235dad190f530fac Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 22 Jul 2018 17:02:26 +0200 Subject: tests: add qPrefDiveComputer testcases add test cases to secure struct preferences and qPrefDiveComputer work together Signed-off-by: Jan Iversen --- tests/testqPrefDiveComputer.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/testqPrefDiveComputer.h (limited to 'tests/testqPrefDiveComputer.h') diff --git a/tests/testqPrefDiveComputer.h b/tests/testqPrefDiveComputer.h new file mode 100644 index 000000000..df0e2cfef --- /dev/null +++ b/tests/testqPrefDiveComputer.h @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +#ifndef TESTQPREFDIVECOMPUTER_H +#define TESTQPREFDIVECOMPUTER_H + +#include + +class TestQPrefDiveComputer : 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 // TESTQPREFDIVECOMPUTER_H -- cgit v1.2.3-70-g09d2