rippled
Loading...
Searching...
No Matches
test
beast
beast_basic_seconds_clock_test.cpp
1
//------------------------------------------------------------------------------
2
/*
3
This file is part of Beast: https://github.com/vinniefalco/Beast
4
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
5
6
Permission to use, copy, modify, and/or distribute this software for any
7
purpose with or without fee is hereby granted, provided that the above
8
copyright notice and this permission notice appear in all copies.
9
10
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
*/
18
//==============================================================================
19
20
#include <xrpl/beast/clock/basic_seconds_clock.h>
21
#include <xrpl/beast/unit_test.h>
22
23
namespace
beast
{
24
25
class
basic_seconds_clock_test
:
public
unit_test::suite
26
{
27
public
:
28
void
29
run
()
override
30
{
31
basic_seconds_clock::now
();
32
pass
();
33
}
34
};
35
36
BEAST_DEFINE_TESTSUITE(
basic_seconds_clock
, chrono,
beast
);
37
38
}
// namespace beast
beast::basic_seconds_clock_test
Definition:
beast_basic_seconds_clock_test.cpp:26
beast::basic_seconds_clock_test::run
void run() override
Runs the suite.
Definition:
beast_basic_seconds_clock_test.cpp:29
beast::basic_seconds_clock
A clock whose minimum resolution is one second.
Definition:
basic_seconds_clock.h:37
beast::basic_seconds_clock::now
static time_point now()
Definition:
basic_seconds_clock.cpp:102
beast::unit_test::suite
A testsuite class.
Definition:
suite.h:55
beast::unit_test::suite::pass
void pass()
Record a successful test condition.
Definition:
suite.h:511
beast
Definition:
base_uint.h:662
Generated by
1.9.5