Bitcoin Core
31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
wallet
test
wallet_test_fixture.h
Go to the documentation of this file.
1
// Copyright (c) 2016-present 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 <
test/util/setup_common.h
>
9
10
#include <
interfaces/chain.h
>
11
#include <
interfaces/wallet.h
>
12
#include <
node/context.h
>
13
#include <
util/chaintype.h
>
14
#include <
util/check.h
>
15
#include <
wallet/wallet.h
>
16
17
#include <memory>
18
19
namespace
wallet
{
22
struct
WalletTestingSetup
:
public
TestingSetup
{
23
explicit
WalletTestingSetup
(
ChainType
chainType =
ChainType::MAIN
);
24
~WalletTestingSetup
();
25
26
std::unique_ptr<interfaces::WalletLoader>
m_wallet_loader
;
27
CWallet
m_wallet
;
28
std::unique_ptr<interfaces::Handler>
m_chain_notifications_handler
;
29
};
30
}
// namespace wallet
31
32
#endif
// BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
chaintype.h
ChainType
ChainType
Definition
chaintype.h:11
ChainType::MAIN
@ MAIN
Definition
chaintype.h:12
check.h
wallet::CWallet
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition
wallet.h:310
chain.h
wallet.h
wallet
Definition
wallet_balance.cpp:26
context.h
setup_common.h
TestingSetup::TestingSetup
TestingSetup(ChainType chainType=ChainType::MAIN, TestOpts={})
Definition
setup_common.cpp:341
wallet::WalletTestingSetup::m_wallet_loader
std::unique_ptr< interfaces::WalletLoader > m_wallet_loader
Definition
wallet_test_fixture.h:26
wallet::WalletTestingSetup::~WalletTestingSetup
~WalletTestingSetup()
Definition
wallet_test_fixture.cpp:21
wallet::WalletTestingSetup::m_chain_notifications_handler
std::unique_ptr< interfaces::Handler > m_chain_notifications_handler
Definition
wallet_test_fixture.h:28
wallet::WalletTestingSetup::m_wallet
CWallet m_wallet
Definition
wallet_test_fixture.h:27
wallet::WalletTestingSetup::WalletTestingSetup
WalletTestingSetup(ChainType chainType=ChainType::MAIN)
Definition
wallet_test_fixture.cpp:12
wallet.h
Generated on
for Bitcoin Core by
1.16.1