2018-01-03 02:12:05 +09: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.
|
|
|
|
|
2018-03-22 15:19:44 +01:00
|
|
|
#ifndef BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
|
|
|
|
#define BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
|
2016-04-18 14:54:57 +02:00
|
|
|
|
2017-11-10 13:57:53 +13: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>
|
|
|
|
|
2018-04-02 18:31:40 +00:00
|
|
|
#include <memory>
|
|
|
|
|
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
|
|
|
|
2017-11-13 21:25:46 -05:00
|
|
|
CWallet m_wallet;
|
2016-04-18 14:54:57 +02:00
|
|
|
};
|
|
|
|
|
2018-03-22 15:19:44 +01:00
|
|
|
#endif // BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
|