Add missing crypto init to OpenSSHKey test

This commit is contained in:
Toni Spets committed 2017-11-25 11:32:13 +02:00
1 parent bff80dfc70
commit a0bfa710be
2 files changed
+7

No files matched your search

+6
View File
@@ -16,11 +16,17 @@
*/
#include "TestOpenSSHKey.h"
#include "crypto/Crypto.h"
#include "sshagent/OpenSSHKey.h"
#include <QTest>
QTEST_GUILESS_MAIN(TestOpenSSHKey)
void TestOpenSSHKey::initTestCase()
{
QVERIFY(Crypto::init());
}
void TestOpenSSHKey::testParse()
{
// mixed line endings and missing ones are intentional, we only require 3 lines total
+1
View File
@@ -27,6 +27,7 @@ class TestOpenSSHKey : public QObject
Q_OBJECT
private slots:
void initTestCase();
void testParse();
void testDecryptAES256CBC();
void testDecryptAES256CTR();