Format first-party source according to .clang-format

This commit is contained in:
Pretty Printer
2020-04-17 09:56:34 -05:00
committed by manojsdoshi
parent 65dfc5d19e
commit 50760c6935
1076 changed files with 86161 additions and 77449 deletions

View File

@@ -17,12 +17,12 @@
*/
//==============================================================================
#include <test/jtx/Env.h>
#include <ripple/beast/utility/temp_dir.h>
#include <ripple/crypto/csprng.h>
#include <boost/filesystem.hpp>
#include <fstream>
#include <streambuf>
#include <test/jtx/Env.h>
namespace ripple {
@@ -31,7 +31,7 @@ class CryptoPRNG_test : public beast::unit_test::suite
void
testGetValues()
{
testcase ("Get Values");
testcase("Get Values");
try
{
auto& engine = crypto_prng();
@@ -39,23 +39,24 @@ class CryptoPRNG_test : public beast::unit_test::suite
BEAST_EXPECT(rand_val >= engine.min());
BEAST_EXPECT(rand_val <= engine.max());
uint16_t twoByte {0};
uint16_t twoByte{0};
engine(&twoByte, sizeof(uint16_t));
pass();
}
catch(std::exception&)
catch (std::exception&)
{
fail();
}
}
public:
void run () override
void
run() override
{
testGetValues();
}
};
BEAST_DEFINE_TESTSUITE (CryptoPRNG, core, ripple);
BEAST_DEFINE_TESTSUITE(CryptoPRNG, core, ripple);
} // ripple
} // namespace ripple