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:
authorFelix Geyer <debfx@fobos.de>2015-07-14 23:14:34 +0300
committerFelix Geyer <debfx@fobos.de>2015-07-14 23:14:34 +0300
commitceb6a0383e4f4960584eed41d0fc4abc946f0b79 (patch)
treee23cd2dd43978fff451caf8631a956abae4a2bc9 /tests/TestCsvExporter.h
parent0185b112e1bde9604eda22aef1369e4bb0adc78c (diff)
Add ability to export databases to CSV files.
Based on implementation by Florian Geyer <blueice@fobos.de> Closes #57
Diffstat (limited to 'tests/TestCsvExporter.h')
-rw-r--r--tests/TestCsvExporter.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/TestCsvExporter.h b/tests/TestCsvExporter.h
new file mode 100644
index 000000000..a71c93655
--- /dev/null
+++ b/tests/TestCsvExporter.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2015 Florian Geyer <blueice@fobos.de>
+ * Copyright (C) 2015 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_TESTCSVEXPORTER_H
+#define KEEPASSX_TESTCSVEXPORTER_H
+
+#include <QObject>
+
+class Database;
+class CsvExporter;
+
+class TestCsvExporter : public QObject
+{
+ Q_OBJECT
+
+public:
+ static const QString ExpectedHeaderLine;
+
+private Q_SLOTS:
+ void init();
+ void initTestCase();
+ void cleanUp();
+ void testExport();
+ void testEmptyDatabase();
+ void testNestedGroups();
+
+private:
+ Database* m_db;
+ CsvExporter* m_csvExporter;
+
+};
+
+#endif // KEEPASSX_TESTCSVEXPORTER_H