1#include <xrpl/server/InfoSub.h>
3#include <gtest/gtest.h>
15TEST(InfoSubSubscriptionCap, Boundary)
33TEST(InfoSubSubscriptionCap, NoOverflow)
44TEST(InfoSubSubscriptionCap, ExplicitCap)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
TEST(FileUtilitiesTest, get_file_contents)
constexpr std::size_t kMaxSubscriptionsPerConnection
Maximum number of subscriptions a single client connection may hold at once.
constexpr bool exceedsSubscriptionCap(std::size_t current, std::size_t additional, std::size_t cap=kMaxSubscriptionsPerConnection)
Whether adding additional subscriptions to a connection already holding current would exceed the cap.