1#include <xrpld/overlay/detail/Handshake.h> 
    3#include <xrpl/beast/unit_test.h> 
   18        boost::beast::http::fields headers;
 
   21            "feature1=v1,v2,v3; feature2=v4; feature3=10; feature4=1; " 
 
 
   43BEAST_DEFINE_TESTSUITE(handshake, overlay, 
ripple);
 
testcase_t testcase
Memberspace for declaring test cases.
 
void run() override
Runs the suite.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
bool isFeatureValue(boost::beast::http::fields const &headers, std::string const &feature, std::string const &value)
Check if a feature's value is equal to the specified value.
 
bool featureEnabled(boost::beast::http::fields const &headers, std::string const &feature)
Check if a feature is enabled.