BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
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 <test/test_bitcoin.h>
9 
10 
11 struct InitWalletDirTestingSetup: public BasicTestingSetup {
12  explicit InitWalletDirTestingSetup(const std::string& chainName = CBaseChainParams::MAIN);
14  void SetWalletDir(const fs::path& walletdir_path);
15 
16  fs::path m_datadir;
17  fs::path m_cwd;
18  std::map<std::string, fs::path> m_walletdir_path_cases;
19 };
20 
21 #endif // BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H
InitWalletDirTestingSetup(const std::string &chainName=CBaseChainParams::MAIN)
void SetWalletDir(const fs::path &walletdir_path)
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
std::map< std::string, fs::path > m_walletdir_path_cases