18 #include <gtest/gtest.h> 23 TEST(LoadShedConfigurationTest, TestSettersAndGetters) {
void setCpuUsageExceedWindowSize(const uint64_t size)
void setMaxConnections(uint64_t maxConns)
std::chrono::milliseconds getLoadUpdatePeriod() const
uint64_t getCpuUsageExceedWindowSize() const
TEST(Wangle, ClientServerTest)
void setWhitelistNetworks(const NetworkSet &networks)
double getMinCpuIdle() const
#define EXPECT_EQ(val1, val2)
double getMaxCpuUsage() const
uint64_t getMinFreeMem() const
void setMinFreeMem(uint64_t min)
void setMaxActiveConnections(uint64_t maxActiveConns)
uint64_t getMaxConnections() const
void setWhitelistAddrs(const AddressSet &addrs)
bool isWhitelisted(const folly::SocketAddress &addr) const
const NetworkSet & getWhitelistNetworks() const
uint64_t getMaxActiveConnections() const
void setMinCpuIdle(double min)
std::set< folly::SocketAddress, AddressOnlyCompare > AddressSet
double getMaxMemUsage() const
void setLoadUpdatePeriod(std::chrono::milliseconds period)
std::set< NetworkAddress > NetworkSet
const AddressSet & getWhitelistAddrs() const
#define EXPECT_TRUE(condition)
uint64_t getAcceptPauseOnAcceptorQueueSize() const
void setMaxCpuUsage(double max)
void setAcceptPauseOnAcceptorQueueSize(const uint64_t acceptPauseOnAcceptorQueueSize)
void setMaxMemUsage(double max)
void addWhitelistAddr(folly::StringPiece)
#define EXPECT_FALSE(condition)
void setAcceptResumeOnAcceptorQueueSize(const uint64_t acceptResumeOnAcceptorQueueSize)
uint64_t getAcceptResumeOnAcceptorQueueSize() const