diff options
Diffstat (limited to 'src/tests/TestCryptographicHash/TestCryptographicHash.cpp')
-rw-r--r-- | src/tests/TestCryptographicHash/TestCryptographicHash.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/TestCryptographicHash/TestCryptographicHash.cpp b/src/tests/TestCryptographicHash/TestCryptographicHash.cpp index bf5657ecf..d0866393e 100644 --- a/src/tests/TestCryptographicHash/TestCryptographicHash.cpp +++ b/src/tests/TestCryptographicHash/TestCryptographicHash.cpp @@ -7,11 +7,16 @@ #include <QtTest> #include <QLatin1String> +#include "SSL.h" + #include "CryptographicHash.h" class TestCryptographicHash : public QObject { Q_OBJECT private slots: + void initTestCase(); + void cleanupTestCase(); + void sha1_data(); void sha1(); @@ -23,6 +28,14 @@ class TestCryptographicHash : public QObject { void addDataAfterResult(); }; +void TestCryptographicHash::initTestCase() { + MumbleSSL::initialize(); +} + +void TestCryptographicHash::cleanupTestCase() { + MumbleSSL::destroy(); +} + /// normalizeHash removes all whitespace from the hex-encoded hash string. static QString normalizeHash(QString str) { str.replace(QLatin1String(" "), QLatin1String("")); |