Bitcoin Core
28.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-2021 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
(
const
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
fs::path
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
Definition
fs.h:33
chain.h
wallet.h
wallet
Definition
wallet_balance.cpp:18
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::InitWalletDirTestingSetup
InitWalletDirTestingSetup(const ChainType chain_type=ChainType::MAIN)
Definition
init_test_fixture.cpp:17
wallet::InitWalletDirTestingSetup::m_datadir
fs::path m_datadir
Definition
init_test_fixture.h:21
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
Generated on Thu Oct 3 2024 09:20:15 for Bitcoin Core by
1.12.0