proxygen
BufferedSlidingWindowTest Class Reference
Inheritance diagram for BufferedSlidingWindowTest:
testing::Test

Protected Member Functions

void SetUp () override
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 

Protected Attributes

std::unique_ptr< BufferedSlidingWindow< SimpleDigest, MockClock > > bsw
 
const size_t nBuckets = 60
 
const size_t bufferSize = 1000
 
const std::chrono::milliseconds windowDuration {1000}
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 154 of file BufferedStatTest.cpp.

Member Function Documentation

void BufferedSlidingWindowTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 161 of file BufferedStatTest.cpp.

References kDigestSize, and MockClock::Now.

161  {
163  bsw = std::make_unique<BufferedSlidingWindow<SimpleDigest, MockClock>>(
165  }
static time_point Now
std::unique_ptr< BufferedSlidingWindow< SimpleDigest, MockClock > > bsw
const std::chrono::milliseconds windowDuration
const size_t kDigestSize
std::chrono::steady_clock::time_point time_point

Member Data Documentation

std::unique_ptr<BufferedSlidingWindow<SimpleDigest, MockClock> > BufferedSlidingWindowTest::bsw
protected

Definition at line 156 of file BufferedStatTest.cpp.

const size_t BufferedSlidingWindowTest::bufferSize = 1000
protected

Definition at line 158 of file BufferedStatTest.cpp.

const size_t BufferedSlidingWindowTest::nBuckets = 60
protected

Definition at line 157 of file BufferedStatTest.cpp.

const std::chrono::milliseconds BufferedSlidingWindowTest::windowDuration {1000}
protected

Definition at line 159 of file BufferedStatTest.cpp.


The documentation for this class was generated from the following file: