Bitcoin ABC 0.30.5
P2P Digital Currency
Classes | Functions | Variables
p2p_messaging_tests.cpp File Reference
#include <chainparams.h>
#include <common/system.h>
#include <net_processing.h>
#include <protocol.h>
#include <seeder/bitcoin.h>
#include <seeder/db.h>
#include <seeder/test/util.h>
#include <serialize.h>
#include <streams.h>
#include <version.h>
#include <boost/test/unit_test.hpp>
#include <cstdint>
#include <memory>
#include <ostream>
#include <string>
#include <vector>
Include dependency graph for p2p_messaging_tests.cpp:

Go to the source code of this file.

Classes

struct  SeederTestingSetup
 
struct  MainNetSeederTestingSetup
 

Functions

std::ostream & operator<< (std::ostream &os, const PeerMessagingState &state)
 
 BOOST_AUTO_TEST_CASE (process_version_msg)
 
 BOOST_FIXTURE_TEST_CASE (process_verack_msg, MainNetSeederTestingSetup)
 
static CDataStream CreateAddrMessage (std::vector< CAddress > sendAddrs, uint32_t nVersion=INIT_PROTO_VERSION)
 
 BOOST_FIXTURE_TEST_CASE (process_addr_msg, MainNetSeederTestingSetup)
 
 BOOST_AUTO_TEST_CASE (ban_too_many_headers)
 
 BOOST_AUTO_TEST_CASE (empty_headers)
 
 BOOST_FIXTURE_TEST_CASE (good_checkpoint, MainNetSeederTestingSetup)
 
 BOOST_FIXTURE_TEST_CASE (bad_checkpoint, MainNetSeederTestingSetup)
 

Variables

static const uint16_t SERVICE_PORT = 18444
 
static const int SEEDER_INIT_VERSION = 0
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( ban_too_many_headers  )

Definition at line 189 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( empty_headers  )

Definition at line 214 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( process_version_msg  )

Definition at line 73 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( bad_checkpoint  ,
MainNetSeederTestingSetup   
)

Definition at line 245 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( good_checkpoint  ,
MainNetSeederTestingSetup   
)

Definition at line 224 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( process_addr_msg  ,
MainNetSeederTestingSetup   
)

Definition at line 133 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( process_verack_msg  ,
MainNetSeederTestingSetup   
)

Definition at line 97 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

◆ CreateAddrMessage()

static CDataStream CreateAddrMessage ( std::vector< CAddress sendAddrs,
uint32_t  nVersion = INIT_PROTO_VERSION 
)
static

Definition at line 125 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const PeerMessagingState state 
)

Definition at line 24 of file p2p_messaging_tests.cpp.

Here is the call graph for this function:

Variable Documentation

◆ SEEDER_INIT_VERSION

const int SEEDER_INIT_VERSION = 0
static

Definition at line 71 of file p2p_messaging_tests.cpp.

◆ SERVICE_PORT

const uint16_t SERVICE_PORT = 18444
static

Definition at line 49 of file p2p_messaging_tests.cpp.