2018-01-02 18:12:05 +01:00
|
|
|
// Copyright (c) 2016-2017 The Bitcoin Core developers
|
2016-04-18 14:54:57 +02:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_WALLET_TEST_FIXTURE_H
|
|
|
|
#define BITCOIN_WALLET_TEST_FIXTURE_H
|
|
|
|
|
2017-11-10 01:57:53 +01:00
|
|
|
#include <test/test_bitcoin.h>
|
2016-04-18 14:54:57 +02:00
|
|
|
|
2017-11-18 14:11:34 +01:00
|
|
|
#include <wallet/wallet.h>
|
|
|
|
|
2016-04-18 14:54:57 +02:00
|
|
|
/** Testing setup and teardown for wallet.
|
|
|
|
*/
|
|
|
|
struct WalletTestingSetup: public TestingSetup {
|
2017-08-01 12:22:41 +02:00
|
|
|
explicit WalletTestingSetup(const std::string& chainName = CBaseChainParams::MAIN);
|
2016-04-18 14:54:57 +02:00
|
|
|
~WalletTestingSetup();
|
2017-11-18 14:11:34 +01:00
|
|
|
|
|
|
|
std::unique_ptr<CWallet> pwalletMain;
|
2016-04-18 14:54:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|