diff options
author | Pierre Rochard <pierre@rochard.org> | 2018-09-10 20:49:17 -0400 |
---|---|---|
committer | Pierre Rochard <pierre@rochard.org> | 2018-09-12 21:05:53 -0400 |
commit | ea3009ee942188750480ca6cc273b2b91cf77ded (patch) | |
tree | 029d1d6734e2e6c06f8337db44054fbf1d0b04e5 /src/wallet/test/init_test_fixture.h | |
parent | 8f464549c46db2954d7b64d1feb200eb35f2e7e8 (diff) | |
download | bitcoin-ea3009ee942188750480ca6cc273b2b91cf77ded.tar.xz |
wallet: Add walletdir arg unit tests
Diffstat (limited to 'src/wallet/test/init_test_fixture.h')
-rw-r--r-- | src/wallet/test/init_test_fixture.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/wallet/test/init_test_fixture.h b/src/wallet/test/init_test_fixture.h new file mode 100644 index 0000000000..5684adbece --- /dev/null +++ b/src/wallet/test/init_test_fixture.h @@ -0,0 +1,21 @@ +// Copyright (c) 2018 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H +#define BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H + +#include <test/test_bitcoin.h> + + +struct InitWalletDirTestingSetup: public BasicTestingSetup { + explicit InitWalletDirTestingSetup(const std::string& chainName = CBaseChainParams::MAIN); + ~InitWalletDirTestingSetup(); + void SetWalletDir(const fs::path& walletdir_path); + + fs::path m_datadir; + fs::path m_cwd; + std::map<std::string, fs::path> m_walletdir_path_cases; +}; + +#endif // BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H |