|
proxygen
|
#include <folly/io/async/EventBase.h>#include <folly/io/async/EventUtil.h>#include <folly/io/async/test/MockTimeoutManager.h>#include <folly/io/async/test/UndelayedDestruction.h>#include <folly/io/async/test/Util.h>#include <folly/portability/GTest.h>#include <proxygen/lib/utils/AsyncTimeoutSet.h>#include <boost/container/flat_map.hpp>#include <vector>Go to the source code of this file.
Classes | |
| class | MockTimeoutClock |
| class | TestTimeout |
| class | TimeoutTest |
Typedefs | |
| using | StackTimeoutSet = folly::UndelayedDestruction< AsyncTimeoutSet > |
Functions | |
| TEST_F (TimeoutTest, FireOnce) | |
| TEST_F (TimeoutTest, SwitchTimeoutSet) | |
| TEST_F (TimeoutTest, CancelTimeout) | |
| TEST_F (TimeoutTest, DestroyTimeoutSet) | |
| TEST_F (TimeoutTest, AtMostEveryN) | |
Definition at line 27 of file AsyncTimeoutSetTest.cpp.
| TEST_F | ( | TimeoutTest | , |
| FireOnce | |||
| ) |
Definition at line 146 of file AsyncTimeoutSetTest.cpp.
References ASSERT_EQ, and TestTimeout::timestamps.
| TEST_F | ( | TimeoutTest | , |
| SwitchTimeoutSet | |||
| ) |
Definition at line 197 of file AsyncTimeoutSetTest.cpp.
References ASSERT_EQ, loop(), and TestTimeout::timestamps.
| TEST_F | ( | TimeoutTest | , |
| CancelTimeout | |||
| ) |
Definition at line 233 of file AsyncTimeoutSetTest.cpp.
References ASSERT_EQ, proxygen::AsyncTimeoutSet::Callback::cancelTimeout(), TestTimeout::fn, loop(), folly::gen::move, and TestTimeout::timestamps.
| TEST_F | ( | TimeoutTest | , |
| DestroyTimeoutSet | |||
| ) |
Definition at line 315 of file AsyncTimeoutSetTest.cpp.
References ASSERT_EQ, TestTimeout::fn, and loop().
| TEST_F | ( | TimeoutTest | , |
| AtMostEveryN | |||
| ) |