r1
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user