rippled
Openssl_test.cpp
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of rippled: https://github.com/ripple/rippled
4  Copyright (c) 2018 Ripple Labs Inc.
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 <ripple/beast/unit_test.h>
21 #include <ripple/crypto/impl/openssl.h>
22 #include <type_traits>
23 
24 namespace ripple {
25 struct Openssl_test : public beast::unit_test::suite
26 {
27  void
29  {
30  using namespace openssl;
31 
33  BEAST_EXPECT(!std::is_copy_constructible<bignum>{});
34  BEAST_EXPECT(!std::is_copy_assignable<bignum>{});
37 
39  BEAST_EXPECT(!std::is_copy_constructible<ec_point>{});
40  BEAST_EXPECT(!std::is_copy_assignable<ec_point>{});
43  }
44 
45  void
46  run() override
47  {
49  };
50 };
51 
52 BEAST_DEFINE_TESTSUITE(Openssl, crypto, ripple);
53 
54 } // namespace ripple
ripple::BEAST_DEFINE_TESTSUITE
BEAST_DEFINE_TESTSUITE(AccountTxPaging, app, ripple)
std::is_default_constructible
std::is_nothrow_move_constructible
ripple::Openssl_test
Definition: Openssl_test.cpp:25
ripple::Openssl_test::run
void run() override
Definition: Openssl_test.cpp:46
std::is_copy_constructible
std::is_nothrow_move_assignable
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: RCLCensorshipDetector.h:29
ripple::Openssl_test::testBasicProperties
void testBasicProperties()
Definition: Openssl_test.cpp:28
std::is_copy_assignable
type_traits