17 #include <boost/test/unit_test.hpp>
49 for (
int i = 0; i < n; ++i) {
66 ASSERT_DEBUG_LOG(
"Please check that your computer's date and time are correct!");
82 const int MAX_SAMPLES = 200;
83 int nfill = (MAX_SAMPLES - 3 - 19) / 2;
bool SetInternal(const std::string &name)
Create an "internal" address that represents a name or FQDN.
BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
std::string ToString(const T &t)
Locale-independent version of std::to_string.
#define ASSERT_DEBUG_LOG(message)
int64_t GetTimeOffset()
"Never go to sea with two chronometers; take one or three." Our three time sources are:
void TestOnlyResetTimeData()
Reset the internal state of GetTimeOffset(), GetAdjustedTime() and AddTimeData().
void AddTimeData(const CNetAddr &ip, int64_t nOffsetSample)
static const int64_t DEFAULT_MAX_TIME_ADJUSTMENT
static void MultiAddTimeData(int n, int64_t offset)
BOOST_AUTO_TEST_CASE(util_MedianFilter)
bilingual_str GetWarnings(bool verbose)
Format a string that describes several potential problems detected by the core.