diff options
Diffstat (limited to 'src/tests/TestCryptographicRandom/TestCryptographicRandom.cpp')
-rw-r--r-- | src/tests/TestCryptographicRandom/TestCryptographicRandom.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/TestCryptographicRandom/TestCryptographicRandom.cpp b/src/tests/TestCryptographicRandom/TestCryptographicRandom.cpp index 29e3e2715..0ae41e60c 100644 --- a/src/tests/TestCryptographicRandom/TestCryptographicRandom.cpp +++ b/src/tests/TestCryptographicRandom/TestCryptographicRandom.cpp @@ -6,6 +6,8 @@ #include <QtCore> #include <QtTest> +#include "SSL.h" + #include "CryptographicRandom.h" #include <stdint.h> @@ -15,11 +17,21 @@ class TestCryptographicRandom : public QObject { Q_OBJECT private slots: + void initTestCase(); + void cleanupTestCase(); void fillBuffer(); void uint32(); void uniform(); }; +void TestCryptographicRandom::initTestCase() { + MumbleSSL::initialize(); +} + +void TestCryptographicRandom::cleanupTestCase() { + MumbleSSL::destroy(); +} + // Verify the entropy of the data returned by the random source // by zlib compressing it and ensuring the compressed size is at // least 99% of the size of the input data. |