Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
PCPTestingSetup Class Reference

Save the value of CreateSock and restore when the test ends. More...

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

Public Member Functions

 PCPTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts opts={})
 
 ~PCPTestingSetup ()
 
- Public Member Functions inherited from BasicTestingSetup
void SeedRandomForTest (SeedRand seed)
 Seed the global RNG state and m_rng for testing and log the seed value. More...
 
 BasicTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={})
 
 ~BasicTestingSetup ()
 

Public Attributes

CNetAddr default_local_ipv4
 
CNetAddr default_local_ipv6
 
CNetAddr default_gateway_ipv4
 
CNetAddr default_gateway_ipv6
 
CNetAddr bind_any_ipv4
 
- Public Attributes inherited from BasicTestingSetup
util::SignalInterrupt m_interrupt
 
node::NodeContext m_node
 
FastRandomContext m_rng
 
fs::path m_path_root
 
fs::path m_path_lock
 
bool m_has_custom_datadir {false}
 
ArgsManager m_args
 Test-specific arguments and settings. More...
 

Static Public Attributes

static constexpr PCPMappingNonce TEST_NONCE {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc}
 

Private Attributes

const decltype(CreateSockm_create_sock_orig
 

Detailed Description

Save the value of CreateSock and restore when the test ends.

Definition at line 37 of file pcp_tests.cpp.

Constructor & Destructor Documentation

◆ PCPTestingSetup()

PCPTestingSetup::PCPTestingSetup ( const ChainType  chainType = ChainType::MAIN,
TestOpts  opts = {} 
)
inlineexplicit

Definition at line 40 of file pcp_tests.cpp.

◆ ~PCPTestingSetup()

PCPTestingSetup::~PCPTestingSetup ( )
inline

Definition at line 60 of file pcp_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bind_any_ipv4

CNetAddr PCPTestingSetup::bind_any_ipv4

Definition at line 74 of file pcp_tests.cpp.

◆ default_gateway_ipv4

CNetAddr PCPTestingSetup::default_gateway_ipv4

Definition at line 71 of file pcp_tests.cpp.

◆ default_gateway_ipv6

CNetAddr PCPTestingSetup::default_gateway_ipv6

Definition at line 72 of file pcp_tests.cpp.

◆ default_local_ipv4

CNetAddr PCPTestingSetup::default_local_ipv4

Definition at line 69 of file pcp_tests.cpp.

◆ default_local_ipv6

CNetAddr PCPTestingSetup::default_local_ipv6

Definition at line 70 of file pcp_tests.cpp.

◆ m_create_sock_orig

const decltype(CreateSock) PCPTestingSetup::m_create_sock_orig
private

Definition at line 76 of file pcp_tests.cpp.

◆ TEST_NONCE

constexpr PCPMappingNonce PCPTestingSetup::TEST_NONCE {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc}
staticconstexpr

Definition at line 67 of file pcp_tests.cpp.


The documentation for this class was generated from the following file: