xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
tests
libxrpl
beast
tests/libxrpl/beast/basic_seconds_clock.cpp
1
#include <xrpl/beast/clock/basic_seconds_clock.h>
2
3
#include <gtest/gtest.h>
4
5
namespace
beast
{
6
7
// The clock keeps a lazily started background thread; this only asserts that
8
// asking it for the time does not throw or crash.
9
TEST
(
BasicSecondsClock
, now)
10
{
11
EXPECT_NO_THROW({
BasicSecondsClock::now
(); });
12
}
13
14
}
// namespace beast
beast::BasicSecondsClock
A clock whose minimum resolution is one second.
Definition
basic_seconds_clock.h:18
beast::BasicSecondsClock::now
static time_point now()
Definition
libxrpl/beast/clock/basic_seconds_clock.cpp:82
beast
Definition
base_uint.h:697
beast::TEST
TEST(BasicSecondsClock, now)
Definition
tests/libxrpl/beast/basic_seconds_clock.cpp:9
Generated by
1.17.0