mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove using namespace declarations at namespace scope in headers
This commit is contained in:
@@ -335,6 +335,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// expected interaction between these optional fields; other than
|
||||
// the expiration, they are just plopped into the ledger. So I'm
|
||||
// not looking at interactions.
|
||||
using namespace std::chrono_literals;
|
||||
std::size_t const aliceCount {checksOnAccount (env, alice).size()};
|
||||
std::size_t const bobCount {checksOnAccount (env, bob).size()};
|
||||
env (check::create (alice, bob, USD(50)), expiration (env.now() + 1s));
|
||||
@@ -540,6 +541,7 @@ class Check_test : public beast::unit_test::suite
|
||||
expiration (env.now()), ter (tecEXPIRED));
|
||||
env.close();
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
env (check::create (alice, bob, USD(50)), expiration (env.now() + 1s));
|
||||
env.close();
|
||||
|
||||
@@ -1341,6 +1343,7 @@ class Check_test : public beast::unit_test::suite
|
||||
env (check::create (alice, bob, XRP(10)));
|
||||
env.close();
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
uint256 const chkIdExp {getCheckIndex (alice, env.seq (alice))};
|
||||
env (check::create (alice, bob, XRP(10)), expiration (env.now() + 1s));
|
||||
env.close();
|
||||
@@ -1615,6 +1618,7 @@ class Check_test : public beast::unit_test::suite
|
||||
env.close();
|
||||
|
||||
// Three checks that expire in 10 minutes.
|
||||
using namespace std::chrono_literals;
|
||||
uint256 const chkIdNotExp1 {getCheckIndex (alice, env.seq (alice))};
|
||||
env (check::create (alice, bob, XRP(10)), expiration (env.now()+600s));
|
||||
env.close();
|
||||
|
||||
@@ -259,6 +259,7 @@ public:
|
||||
g.signal();
|
||||
});
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
BEAST_EXPECT(g.wait_for(5s));
|
||||
BEAST_EXPECT(! result.isMember(jss::error));
|
||||
return result;
|
||||
|
||||
@@ -101,6 +101,7 @@ class RCLValidations_test : public beast::unit_test::suite
|
||||
std::vector<std::shared_ptr<Ledger const>> altHistory(
|
||||
history.begin(), history.begin() + diverge);
|
||||
// advance clock to get new ledgers
|
||||
using namespace std::chrono_literals;
|
||||
env.timeKeeper().set(env.timeKeeper().now() + 1200s);
|
||||
prev = altHistory.back();
|
||||
bool forceHash = true;
|
||||
|
||||
@@ -277,6 +277,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
Env env {*this, supported_amendments().set(featureTickets)};
|
||||
|
||||
// create and verify
|
||||
using namespace std::chrono_literals;
|
||||
uint32_t expire =
|
||||
(env.timeKeeper ().closeTime () + 60s)
|
||||
.time_since_epoch ().count ();
|
||||
|
||||
@@ -265,6 +265,7 @@ class TrustAndBalance_test : public beast::unit_test::suite
|
||||
|
||||
env.close();
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
BEAST_EXPECT(wsc->findMsg(5s,
|
||||
[](auto const& jv)
|
||||
{
|
||||
@@ -470,6 +471,7 @@ class TrustAndBalance_test : public beast::unit_test::suite
|
||||
"00000000DEADBEEF");
|
||||
env.close();
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
BEAST_EXPECT(wsc->findMsg(2s,
|
||||
[](auto const& jv)
|
||||
{
|
||||
|
||||
@@ -145,6 +145,7 @@ class TxQ_test : public beast::unit_test::suite
|
||||
|
||||
// Close the ledger with a delay to force the TxQ stats
|
||||
// to stay at the default.
|
||||
using namespace std::chrono_literals;
|
||||
env.close(env.now() + 5s, 10000ms);
|
||||
checkMetrics(env, 0,
|
||||
2 * (ripple::detail::supportedAmendments().size() + 1),
|
||||
@@ -2463,6 +2464,7 @@ public:
|
||||
checkMetrics(env, 0, boost::none, 4, 3, 256);
|
||||
|
||||
// First transaction establishes the messaging
|
||||
using namespace std::chrono_literals;
|
||||
BEAST_EXPECT(wsc->findMsg(5s,
|
||||
[&](auto const& jv)
|
||||
{
|
||||
|
||||
@@ -409,6 +409,7 @@ private:
|
||||
manifest1, expiredblob, expiredSig, version));
|
||||
|
||||
// apply single list
|
||||
using namespace std::chrono_literals;
|
||||
NetClock::time_point const expiration =
|
||||
env.timeKeeper().now() + 3600s;
|
||||
auto const blob1 = makeList (
|
||||
@@ -764,6 +765,7 @@ private:
|
||||
// do not apply expired list
|
||||
auto const version = 1;
|
||||
auto const sequence = 1;
|
||||
using namespace std::chrono_literals;
|
||||
NetClock::time_point const expiration =
|
||||
env.timeKeeper().now() + 60s;
|
||||
auto const blob = makeList (
|
||||
@@ -929,6 +931,7 @@ private:
|
||||
|
||||
auto const version = 1;
|
||||
auto const sequence = 1;
|
||||
using namespace std::chrono_literals;
|
||||
NetClock::time_point const expiration =
|
||||
env.timeKeeper().now() + 3600s;
|
||||
auto const blob = makeList (
|
||||
@@ -1011,6 +1014,7 @@ private:
|
||||
NetClock::time_point expiration;
|
||||
};
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
auto addPublishedList = [this, &env, &trustedKeys, &validators]()
|
||||
{
|
||||
auto const publisherSecret = randomSecretKey();
|
||||
|
||||
@@ -174,6 +174,7 @@ private:
|
||||
|
||||
auto const sequence = 1;
|
||||
auto const version = 1;
|
||||
using namespace std::chrono_literals;
|
||||
NetClock::time_point const expiration =
|
||||
env.timeKeeper().now() + 3600s;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user