diff options
author | Janek Bevendorff <janek@jbev.net> | 2018-01-13 04:47:02 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2018-01-13 22:25:02 +0300 |
commit | 90380adc901536ddbc0bf6d4b4dea3eff93b414f (patch) | |
tree | ed8840afe8c0be677754b8d67065025ad0ae43d7 /tests | |
parent | 824607080a5fda83e6d667b076f99a607b09721d (diff) |
Fix test compilation errors
* Use legacy AES-KDF mode for KeePass1Reader
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestKeePass1Reader.cpp | 2 | ||||
-rw-r--r-- | tests/gui/TestGui.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestKeePass1Reader.cpp b/tests/TestKeePass1Reader.cpp index c372c8715..a4ad56ca6 100644 --- a/tests/TestKeePass1Reader.cpp +++ b/tests/TestKeePass1Reader.cpp @@ -110,7 +110,7 @@ void TestKeePass1Reader::testBasic() void TestKeePass1Reader::testMasterKey() { QVERIFY(m_db->hasKey()); - QCOMPARE(m_db->kdf()->rounds(), static_cast<quint64>(713)); + QCOMPARE(m_db->kdf()->rounds(), 713); } void TestKeePass1Reader::testCustomIcons() diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index d591165c4..d1a251069 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -911,7 +911,7 @@ void TestGui::testDatabaseSettings() QTest::keyClick(transformRoundsSpinBox, Qt::Key_Enter); // wait for modified timer QTRY_COMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()), QString("Save*")); - QCOMPARE(m_db->kdf()->rounds(), Q_UINT64_C(123456)); + QCOMPARE(m_db->kdf()->rounds(), 123456); triggerAction("actionDatabaseSave"); QCOMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()), QString("Save")); |