Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.h
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_TEST_TEST_BITCOIN_H | #ifndef BITCOIN_TEST_TEST_BITCOIN_H | ||||
#define BITCOIN_TEST_TEST_BITCOIN_H | #define BITCOIN_TEST_TEST_BITCOIN_H | ||||
#include <chainparamsbase.h> | #include <chainparamsbase.h> | ||||
#include <fs.h> | #include <fs.h> | ||||
#include <key.h> | #include <key.h> | ||||
#include <pubkey.h> | #include <pubkey.h> | ||||
#include <random.h> | #include <random.h> | ||||
#include <scheduler.h> | #include <scheduler.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <boost/thread.hpp> | |||||
/** | /** | ||||
* Version of Boost::test prior to 1.64 have issues when dealing with nullptr_t. | * Version of Boost::test prior to 1.64 have issues when dealing with nullptr_t. | ||||
* In order to work around this, we ensure that the null pointers are typed in a | * In order to work around this, we ensure that the null pointers are typed in a | ||||
* way that Boost will like better. | * way that Boost will like better. | ||||
* | * | ||||
* TODO: Use nullptr directly once the minimum version of boost is 1.64 or more. | * TODO: Use nullptr directly once the minimum version of boost is 1.64 or more. | ||||
*/ | */ | ||||
#define NULLPTR(T) static_cast<T *>(nullptr) | #define NULLPTR(T) static_cast<T *>(nullptr) | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |