Bitcoin Core
31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
wallet
test
init_test_fixture.h
Go to the documentation of this file.
1
// Copyright (c) 2018-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H
6
#define BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H
7
8
#include <
interfaces/chain.h
>
9
#include <
interfaces/wallet.h
>
10
#include <
node/context.h
>
11
#include <
test/util/setup_common.h
>
12
#include <
util/chaintype.h
>
13
14
15
namespace
wallet
{
16
struct
InitWalletDirTestingSetup
:
public
BasicTestingSetup
{
17
explicit
InitWalletDirTestingSetup
(
ChainType
chain_type
=
ChainType::MAIN
);
18
~InitWalletDirTestingSetup
();
19
void
SetWalletDir
(
const
fs::path&
walletdir_path
);
20
21
fs::path
m_datadir
;
22
fs::path
m_cwd
;
23
std::map<std::string, fs::path>
m_walletdir_path_cases
;
24
std::unique_ptr<interfaces::WalletLoader>
m_wallet_loader
;
25
};
26
27
#endif
// BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H
28
}
// namespace wallet
chaintype.h
ChainType
ChainType
Definition
chaintype.h:11
ChainType::MAIN
@ MAIN
chain.h
wallet.h
wallet
Definition
wallet_balance.cpp:26
context.h
setup_common.h
BasicTestingSetup
Basic testing setup.
Definition
setup_common.h:64
wallet::InitWalletDirTestingSetup
Definition
init_test_fixture.h:16
wallet::InitWalletDirTestingSetup::~InitWalletDirTestingSetup
~InitWalletDirTestingSetup()
Definition
init_test_fixture.cpp:43
wallet::InitWalletDirTestingSetup::m_walletdir_path_cases
std::map< std::string, fs::path > m_walletdir_path_cases
Definition
init_test_fixture.h:23
wallet::InitWalletDirTestingSetup::m_wallet_loader
std::unique_ptr< interfaces::WalletLoader > m_wallet_loader
Definition
init_test_fixture.h:24
wallet::InitWalletDirTestingSetup::m_datadir
fs::path m_datadir
Definition
init_test_fixture.h:21
wallet::InitWalletDirTestingSetup::InitWalletDirTestingSetup
InitWalletDirTestingSetup(ChainType chain_type=ChainType::MAIN)
Definition
init_test_fixture.cpp:17
wallet::InitWalletDirTestingSetup::m_cwd
fs::path m_cwd
Definition
init_test_fixture.h:22
wallet::InitWalletDirTestingSetup::SetWalletDir
void SetWalletDir(const fs::path &walletdir_path)
Definition
init_test_fixture.cpp:48
Ticks
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition
time.h:73
Generated on Thu Apr 16 2026 09:42:38 for Bitcoin Core by
1.10.0