Bitcoin Core 31.99.0
P2P Digital Currency
Classes | Functions | Variables
pcp_tests.cpp File Reference
#include <common/pcp.h>
#include <netbase.h>
#include <test/util/logging.h>
#include <test/util/common.h>
#include <test/util/setup_common.h>
#include <util/time.h>
#include <boost/test/unit_test.hpp>
#include <algorithm>
#include <deque>
Include dependency graph for pcp_tests.cpp:

Go to the source code of this file.

Classes

struct  TestOp
 UDP test server operation. More...
 
class  PCPTestingSetup
 Save the value of CreateSock and restore when the test ends. More...
 
class  PCPTestSock
 Simple scripted UDP server emulation for testing. More...
 

Functions

 BOOST_AUTO_TEST_CASE (natpmp_ipv4)
 
 BOOST_AUTO_TEST_CASE (pcp_ipv4)
 
 BOOST_AUTO_TEST_CASE (pcp_ipv6)
 
 BOOST_AUTO_TEST_CASE (pcp_timeout)
 
 BOOST_AUTO_TEST_CASE (pcp_connrefused)
 
 BOOST_AUTO_TEST_CASE (pcp_ipv6_timeout_success)
 
 BOOST_AUTO_TEST_CASE (pcp_ipv4_fail_no_resources)
 
 BOOST_AUTO_TEST_CASE (pcp_ipv4_fail_unsupported_version)
 
 BOOST_AUTO_TEST_CASE (natpmp_protocol_error)
 
 BOOST_AUTO_TEST_CASE (pcp_protocol_error)
 

Variables

static CThreadInterrupt g_interrupt
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( natpmp_ipv4  )

Definition at line 261 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( natpmp_protocol_error  )

Definition at line 584 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( pcp_connrefused  )

Definition at line 420 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( pcp_ipv4  )

Definition at line 312 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( pcp_ipv4_fail_no_resources  )

Definition at line 507 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( pcp_ipv4_fail_unsupported_version  )

Definition at line 548 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( pcp_ipv6  )

Definition at line 356 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( pcp_ipv6_timeout_success  )

Definition at line 449 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( pcp_protocol_error  )

Definition at line 661 of file pcp_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( pcp_timeout  )

Definition at line 400 of file pcp_tests.cpp.

Here is the call graph for this function:

Variable Documentation

◆ g_interrupt

CThreadInterrupt g_interrupt
static

Definition at line 19 of file pcp_tests.cpp.