Bitcoin ABC 0.32.4
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/chaintype.h>
12#include <util/check.h>
13#include <wallet/wallet.h>
14
15#include <test/util/setup_common.h>
16
17#include <memory>
18
22struct WalletTestingSetup : public TestingSetup {
23 explicit WalletTestingSetup(const ChainType chainType = ChainType::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
ChainType
Definition: chaintype.h:11
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:269
Testing setup and teardown for wallet.
WalletTestingSetup(const ChainType chainType=ChainType::MAIN)
std::unique_ptr< interfaces::Handler > m_chain_notifications_handler
std::unique_ptr< interfaces::WalletClient > m_wallet_client