Bitcoin Core 28.99.0
P2P Digital Currency
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>
12#include <util/chaintype.h>
13
14
15namespace wallet {
17 explicit InitWalletDirTestingSetup(const ChainType chain_type = ChainType::MAIN);
19 void SetWalletDir(const fs::path& walletdir_path);
20
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
Definition: chaintype.h:11
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
Definition: fs.h:33
Basic testing setup.
Definition: setup_common.h:64
std::map< std::string, fs::path > m_walletdir_path_cases
std::unique_ptr< interfaces::WalletLoader > m_wallet_loader
InitWalletDirTestingSetup(const ChainType chain_type=ChainType::MAIN)
void SetWalletDir(const fs::path &walletdir_path)