Bitcoin ABC  0.23.1
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
WalletTestingSetup Struct Reference

Testing setup and teardown for wallet. More...

#include <wallet_test_fixture.h>

Inheritance diagram for WalletTestingSetup:
[legend]
Collaboration diagram for WalletTestingSetup:
[legend]

Public Member Functions

 WalletTestingSetup (const std::string &chainName=CBaseChainParams::MAIN)
 

Public Attributes

std::unique_ptr< interfaces::Chainm_chain
 
std::unique_ptr< interfaces::ChainClientm_chain_client
 
CWallet m_wallet
 
std::unique_ptr< interfaces::Handlerm_chain_notifications_handler
 

Detailed Description

Testing setup and teardown for wallet.

Definition at line 21 of file wallet_test_fixture.h.

Constructor & Destructor Documentation

◆ WalletTestingSetup()

WalletTestingSetup::WalletTestingSetup ( const std::string &  chainName = CBaseChainParams::MAIN)
explicit

Definition at line 11 of file wallet_test_fixture.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_chain

std::unique_ptr<interfaces::Chain> WalletTestingSetup::m_chain

Definition at line 25 of file wallet_test_fixture.h.

◆ m_chain_client

std::unique_ptr<interfaces::ChainClient> WalletTestingSetup::m_chain_client
Initial value:

Definition at line 26 of file wallet_test_fixture.h.

◆ m_chain_notifications_handler

std::unique_ptr<interfaces::Handler> WalletTestingSetup::m_chain_notifications_handler

Definition at line 29 of file wallet_test_fixture.h.

◆ m_wallet

CWallet WalletTestingSetup::m_wallet

Definition at line 28 of file wallet_test_fixture.h.


The documentation for this struct was generated from the following files:
NodeContext::args
ArgsManager * args
Definition: context.h:44
Assert
#define Assert(val)
Identity function.
Definition: check.h:57
interfaces::MakeWalletClient
std::unique_ptr< ChainClient > MakeWalletClient(Chain &chain, ArgsManager &args, std::vector< std::string > wallet_filenames)
Return implementation of ChainClient interface for a wallet client.
Definition: wallet.cpp:529
m_node
NodeContext & m_node
Definition: chain.cpp:442
WalletTestingSetup::m_chain
std::unique_ptr< interfaces::Chain > m_chain
Definition: wallet_test_fixture.h:25