20 #ifndef RIPPLE_SHAMAP_TESTS_COMMON_H_INCLUDED
21 #define RIPPLE_SHAMAP_TESTS_COMMON_H_INCLUDED
23 #include <ripple/basics/chrono.h>
24 #include <ripple/nodestore/DatabaseShard.h>
25 #include <ripple/nodestore/DummyScheduler.h>
26 #include <ripple/nodestore/Manager.h>
27 #include <ripple/shamap/Family.h>
52 testSection.
set(
"type",
"memory");
53 testSection.
set(
"Path",
"SHAMap_test");
117 Throw<std::runtime_error>(
"missing node");
123 Throw<std::runtime_error>(
"missing node");
Simple NodeStore Scheduler that just peforms the tasks synchronously.
beast::Journal const & journal() override
Holds a collection of configuration values.
NodeStore::Database const & db() const override
Persistency layer for NodeObject.
void missing_node(uint256 const &refHash, std::uint32_t refNum) override
TreeNodeCache const & treecache() const override
FullBelowCache const & fullbelow() const override
TreeNodeCache & treecache() override
FullBelowCache fullbelow_
beast::manual_clock< std::chrono::steady_clock > clock()
TestFamily(beast::Journal j)
bool isShardBacked() const override
A collection of historical shards.
A generic endpoint for log messages.
FullBelowCache & fullbelow() override
std::unique_ptr< NodeStore::Database > db_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
NodeStore::DummyScheduler scheduler_
void set(std::string const &key, std::string const &value)
Set a key/value pair.
void missing_node(std::uint32_t refNum) override
virtual std::unique_ptr< Database > make_Database(std::string const &name, Scheduler &scheduler, int readThreads, Stoppable &parent, Section const &backendParameters, beast::Journal journal)=0
Construct a NodeStore database.
static Manager & instance()
Returns the instance of the manager singleton.
NodeStore::Database & db() override