Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
init_test_fixture.h
Go to the documentation of this file.
1// Copyright (c) 2018 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
13struct InitWalletDirTestingSetup : public BasicTestingSetup {
15 const std::string &chainName = CBaseChainParams::MAIN);
18
21 std::map<std::string, fs::path> m_walletdir_path_cases;
22 std::unique_ptr<interfaces::WalletClient> m_wallet_client;
23};
24
25#endif // BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
Definition fs.h:30
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85
std::unique_ptr< interfaces::WalletClient > m_wallet_client
std::map< std::string, fs::path > m_walletdir_path_cases
void SetWalletDir(const fs::path &walletdir_path)