Merge pull request #1225 from hifi/fix/opensshkey-test-init

Add missing crypto init to OpenSSHKey test
This commit is contained in:
Janek Bevendorff 2017-11-25 16:19:46 +01:00 committed by GitHub
commit a519ec6220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

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

View File

@ -27,6 +27,7 @@ class TestOpenSSHKey : public QObject
Q_OBJECT
private slots:
void initTestCase();
void testParse();
void testDecryptAES256CBC();
void testDecryptAES256CTR();