container: c++: dfi namespace refactor

Align with project alias, save the eyes and hands.
This commit is contained in:
2025-08-18 15:48:08 -07:00
parent 491d77553f
commit 1ce08021f8
31 changed files with 276 additions and 276 deletions

View File

@@ -1,6 +1,6 @@
// docker-finance | modern accounting for the power-user
//
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -29,11 +29,11 @@
#include "../../src/random.hh"
//! \namespace docker_finance
//! \namespace dfi
//! \since docker-finance 1.0.0
namespace docker_finance
namespace dfi
{
//! \namespace docker_finance::tests
//! \namespace dfi::tests
//! \brief docker-finance common test framework
//! \ingroup cpp_tests
//! \since docker-finance 1.0.0
@@ -46,21 +46,21 @@ struct RandomInterface
protected:
//! \brief Random mock implementation
//! \since docker-finance 1.0.0
struct RandomImpl : public ::docker_finance::internal::Random<RandomImpl>
struct RandomImpl : public ::dfi::internal::Random<RandomImpl>
{
//! \brief Implements mock Random generator
template <typename t_random>
t_random generate_impl()
{
static_assert(
::docker_finance::internal::type::is_real_integral<t_random>::value,
::dfi::internal::type::is_real_integral<t_random>::value,
"Random interface has changed");
return t_random{std::numeric_limits<t_random>::max()};
}
};
using Random = ::docker_finance::crypto::common::Random<RandomImpl>;
using Random = ::dfi::crypto::common::Random<RandomImpl>;
Random random;
};
@@ -69,7 +69,7 @@ struct RandomInterface
struct RandomBotan_Impl
{
protected:
using Random = ::docker_finance::crypto::botan::Random;
using Random = ::dfi::crypto::botan::Random;
Random random;
};
@@ -78,7 +78,7 @@ struct RandomBotan_Impl
struct RandomCryptoPP_Impl
{
protected:
using Random = ::docker_finance::crypto::cryptopp::Random;
using Random = ::dfi::crypto::cryptopp::Random;
Random random;
};
@@ -87,11 +87,11 @@ struct RandomCryptoPP_Impl
struct RandomLibsodium_Impl
{
protected:
using Random = ::docker_finance::crypto::libsodium::Random;
using Random = ::dfi::crypto::libsodium::Random;
Random random;
};
} // namespace tests
} // namespace docker_finance
} // namespace dfi
#endif // CONTAINER_SRC_ROOT_TEST_COMMON_RANDOM_HH_