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
path: root/tests
diff options
context:
space:
mode:
authorangelsl <angelsl@in04.sg>2017-11-12 20:56:01 +0300
committerJonathan White <support@dmapps.us>2018-01-13 22:23:25 +0300
commit4532108678e5b86cd064c9d234db55055a86a17c (patch)
treef7d42dc7aa03fe8aa354ee1a648a52f5dc843ec7 /tests
parent33974d710a2e93ab39878a8d827c722bffa610b5 (diff)
Add support for KDFs and cyphers to the db settings widget
Diffstat (limited to 'tests')
-rw-r--r--tests/gui/TestGui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp
index 17b2736cc..92b7a6a5f 100644
--- a/tests/gui/TestGui.cpp
+++ b/tests/gui/TestGui.cpp
@@ -45,6 +45,7 @@
#include "core/Metadata.h"
#include "core/Tools.h"
#include "crypto/Crypto.h"
+#include "crypto/kdf/AesKdf.h"
#include "format/KeePass2Reader.h"
#include "gui/DatabaseTabWidget.h"
#include "gui/DatabaseWidget.h"
@@ -897,12 +898,12 @@ void TestGui::testDatabaseSettings()
m_db->metadata()->setName("Save");
triggerAction("actionChangeDatabaseSettings");
QWidget* dbSettingsWidget = m_dbWidget->findChild<QWidget*>("databaseSettingsWidget");
- QSpinBox* transformRoundsSpinBox = dbSettingsWidget->findChild<QSpinBox*>("transformRoundsSpinBox");
+ QSpinBox* transformRoundsSpinBox = dbSettingsWidget->findChild<QSpinBox*>("kdfParams0");
transformRoundsSpinBox->setValue(100);
QTest::keyClick(transformRoundsSpinBox, Qt::Key_Enter);
// wait for modified timer
QTRY_COMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()), QString("Save*"));
- QCOMPARE(m_db->transformRounds(), Q_UINT64_C(100));
+ QCOMPARE(static_cast<AesKdf*>(m_db->kdf())->rounds(), Q_UINT64_C(100));
triggerAction("actionDatabaseSave");
QCOMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()), QString("Save"));