11 #include <boost/test/unit_test.hpp>
17 const auto data_dir = m_args.GetDataDirBase();
30 const auto data_dir = m_args.GetDataDirBase();
33 std::string line1(
"A purely peer-to-peer version of electronic cash would allow online "
34 "payments to be sent directly from one party to another without going "
35 "through a financial institution.");
36 std::string line2(
"Digital signatures provide part of the solution, but the main benefits are "
37 "lost if a trusted third party is still required to prevent double-spending.");
91 const auto data_dir = m_args.GetDataDirBase();
111 const auto data_dir = m_args.GetDataDirBase();
Non-refcounted RAII wrapper for FILE*.
FlatFileSeq represents a sequence of numbered files storing raw data.
fs::path FileName(const FlatFilePos &pos) const
Get the name of the file at the given position.
size_t Allocate(const FlatFilePos &pos, size_t add_size, bool &out_of_space)
Allocate additional space in a file after the given starting position.
bool Flush(const FlatFilePos &pos, bool finalize=false)
Commit a file to disk, and optionally truncate off extra pre-allocated bytes if final.
FILE * Open(const FlatFilePos &pos, bool read_only=false)
Open a handle to the file at the given position.
static const int CLIENT_VERSION
bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(flatfile_filename)
#define BOOST_CHECK_THROW(stmt, excMatch)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
#define LIMITED_STRING(obj, n)
size_t GetSerializeSize(const T &t, int nVersion=0)