Bitcoin ABC 0.30.5
P2P Digital Currency
wallet_test_fixture.h
Go to the documentation of this file.
1// Copyright (c) 2016 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_WALLET_TEST_FIXTURE_H
6#define BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
7
8#include <interfaces/chain.h>
9#include <interfaces/wallet.h>
10#include <node/context.h>
11#include <util/check.h>
12#include <wallet/wallet.h>
13
14#include <test/util/setup_common.h>
15
16#include <memory>
17
21struct WalletTestingSetup : public TestingSetup {
22 explicit WalletTestingSetup(
23 const std::string &chainName = CBaseChainParams::MAIN);
25
26 std::unique_ptr<interfaces::WalletClient> m_wallet_client;
28 std::unique_ptr<interfaces::Handler> m_chain_notifications_handler;
29};
30
31#endif // BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:254
Testing setup and teardown for wallet.
WalletTestingSetup(const std::string &chainName=CBaseChainParams::MAIN)
std::unique_ptr< interfaces::Handler > m_chain_notifications_handler
std::unique_ptr< interfaces::WalletClient > m_wallet_client