|
|
@ -1,3 +1,6 @@ |
|
|
|
// Copyright (c) 2016-2021 The Hush developers
|
|
|
|
// Distributed under the GPLv3 software license, see the accompanying
|
|
|
|
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
|
|
#ifndef HUSH_TEST_TEST_HUSH_H |
|
|
|
#define HUSH_TEST_TEST_HUSH_H |
|
|
|
|
|
|
@ -18,17 +21,11 @@ struct BasicTestingSetup { |
|
|
|
~BasicTestingSetup(); |
|
|
|
}; |
|
|
|
|
|
|
|
// Setup w.r.t. zk-SNARK API
|
|
|
|
struct JoinSplitTestingSetup: public BasicTestingSetup { |
|
|
|
JoinSplitTestingSetup(); |
|
|
|
~JoinSplitTestingSetup(); |
|
|
|
}; |
|
|
|
|
|
|
|
/** Testing setup that configures a complete environment.
|
|
|
|
* Included are data directory, coins database, script check threads |
|
|
|
* and wallet (if enabled) setup. |
|
|
|
*/ |
|
|
|
struct TestingSetup: public JoinSplitTestingSetup { |
|
|
|
struct TestingSetup { |
|
|
|
CCoinsViewDB *pcoinsdbview; |
|
|
|
boost::filesystem::path pathTemp; |
|
|
|
boost::thread_group threadGroup; |
|
|
|