mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
13b01c86a6
-- Moved all RPCServer initialization logic to rpcserver constructor -- Fixed config logic, fxn binding to rpc address, fxn adding rpc cats -- router hive failed CI/CD resulting from outdated reference to rpcBindAddr -- ipc socket as default hidden from windows (for now) refactored config endpoint - added rpc call script (contrib/omq-rpc.py) - added new fxns to .ini config stuff - added delete .ini file functionality to config endpoint - added edge case control for config endpoint add commented out line in clang-form for header reorg later
31 lines
515 B
C++
31 lines
515 B
C++
#pragma once
|
|
|
|
#include <llarp/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
|
|
}
|