Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Functions
pcp_tests.cpp File Reference
#include <common/pcp.h>
#include <netbase.h>
#include <test/util/logging.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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( natpmp_ipv4  )

Definition at line 258 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 581 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 417 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 309 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 504 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 545 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 353 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 446 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 658 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 397 of file pcp_tests.cpp.

Here is the call graph for this function: