You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_bitcoin.h 691B

123456789101112131415161718192021222324252627282930
  1. #ifndef BITCOIN_TEST_TEST_BITCOIN_H
  2. #define BITCOIN_TEST_TEST_BITCOIN_H
  3. #include "txdb.h"
  4. #include <boost/filesystem.hpp>
  5. #include <boost/thread.hpp>
  6. /** Basic testing setup.
  7. * This just configures logging and chain parameters.
  8. */
  9. struct BasicTestingSetup {
  10. BasicTestingSetup();
  11. ~BasicTestingSetup();
  12. };
  13. /** Testing setup that configures a complete environment.
  14. * Included are data directory, coins database, script check threads
  15. * and wallet (if enabled) setup.
  16. */
  17. struct TestingSetup: public BasicTestingSetup {
  18. CCoinsViewDB *pcoinsdbview;
  19. boost::filesystem::path pathTemp;
  20. boost::thread_group threadGroup;
  21. TestingSetup();
  22. ~TestingSetup();
  23. };
  24. #endif