mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
31 lines
509 B
C++
31 lines
509 B
C++
#pragma once
|
|
|
|
#include <crypto/crypto_libsodium.hpp>
|
|
#include <catch2/catch.hpp>
|
|
|
|
namespace llarp::test
|
|
{
|
|
|
|
template <typename CryptoImpl = llarp::sodium::CryptoLibSodium>
|
|
class LlarpTest
|
|
{
|
|
protected:
|
|
CryptoImpl m_crypto;
|
|
CryptoManager cm;
|
|
|
|
LlarpTest() : cm(&m_crypto)
|
|
{
|
|
static_assert(std::is_base_of<Crypto, CryptoImpl>::value, "");
|
|
}
|
|
|
|
~LlarpTest()
|
|
{}
|
|
};
|
|
|
|
template <>
|
|
inline LlarpTest<llarp::sodium::CryptoLibSodium>::~LlarpTest()
|
|
{
|
|
|
|
} // namespace test
|
|
}
|