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;
void TestOnlyResetTimeData()
Reset the internal state of GetTimeOffset(), GetAdjustedTime() and AddTimeData(). ...
int64_t GetTimeOffset()
"Never go to sea with two chronometers; take one or three." Our three time sources are: ...
std::string ToString(const T &t)
Locale-independent version of std::to_string.
BOOST_AUTO_TEST_CASE(util_MedianFilter)
BOOST_AUTO_TEST_SUITE_END()
#define ASSERT_DEBUG_LOG(message)
bilingual_str GetWarnings(bool verbose)
Format a string that describes several potential problems detected by the core.
#define BOOST_CHECK_EQUAL(v1, v2)
bool SetInternal(const std::string &name)
Create an "internal" address that represents a name or FQDN.
void AddTimeData(const CNetAddr &ip, int64_t nOffsetSample)
static void MultiAddTimeData(int n, int64_t offset)
static const int64_t DEFAULT_MAX_TIME_ADJUSTMENT
#define BOOST_CHECK(expr)