mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: add qPrefDiveComputer testcases
add test cases to secure struct preferences and qPrefDiveComputer work together Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
3d6848b22c
commit
bb5c1da1b7
3 changed files with 146 additions and 0 deletions
20
tests/testqPrefDiveComputer.h
Normal file
20
tests/testqPrefDiveComputer.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#ifndef TESTQPREFDIVECOMPUTER_H
|
||||
#define TESTQPREFDIVECOMPUTER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue