Files
agrarian/src/test/test_agrarian.h
T
2022-02-03 23:45:47 -08:00

36 lines
917 B
C

// Copyright (c) 2015 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef Agrarian_TEST_TEST_Agrarian_H
#define Agrarian_TEST_TEST_Agrarian_H
#include "txdb.h"
#include <boost/filesystem.hpp>
#include <boost/thread.hpp>
/** Basic testing setup.
* This just configures logging and chain parameters.
*/
struct BasicTestingSetup {
BasicTestingSetup();
~BasicTestingSetup();
};
/** Testing setup that configures a complete environment.
* Included are data directory, coins database, script check threads
* and wallet (if enabled) setup.
*/
struct TestingSetup: public BasicTestingSetup {
CCoinsViewDB *pcoinsdbview;
boost::filesystem::path pathTemp;
boost::thread_group threadGroup;
ECCVerifyHandle globalVerifyHandle;
TestingSetup();
~TestingSetup();
};
#endif