Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Geyer <blueice@fobos.de>2012-04-22 01:17:26 +0400
committerFelix Geyer <debfx@fobos.de>2012-04-22 02:11:17 +0400
commitcc8d6424e26cfe33de15a8ce712969be5ed87d25 (patch)
treea31302763720a6e2de1193c0f37230484af56503 /tests/TestDeletedObjects.h
parent9726046e24151d4628913e1d09f902d50db10788 (diff)
Add test for deleted objects.
Diffstat (limited to 'tests/TestDeletedObjects.h')
-rw-r--r--tests/TestDeletedObjects.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/TestDeletedObjects.h b/tests/TestDeletedObjects.h
new file mode 100644
index 000000000..4d2a0b372
--- /dev/null
+++ b/tests/TestDeletedObjects.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2012 Felix Geyer <debfx@fobos.de>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 or (at your option)
+ * version 3 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef KEEPASSX_TESTDELETEDOBJECTS_H
+#define KEEPASSX_TESTDELETEDOBJECTS_H
+
+#include <QtCore/QObject>
+
+class Database;
+
+class TestDeletedObjects : public QObject
+{
+ Q_OBJECT
+
+private:
+ void createAndDelete(Database* db, int delObjectsSize);
+
+private Q_SLOTS:
+ void initTestCase();
+ void testDeletedObjectsFromFile();
+ void testDeletedObjectsFromNewDb();
+
+};
+
+#endif // KEEPASSX_TESTDELETEDOBJECTS_H