proxygen
|
#include <folly/io/async/test/TimeUtil.h>
#include <folly/portability/GTest.h>
#include <folly/test/TestUtils.h>
Go to the source code of this file.
Macros | |
#define | T_CHECK_TIMEOUT(start, end, expectedMS, ...) |
#define | T_CHECK_TIME_LT(start, end, expectedMS, ...) |
#define T_CHECK_TIME_LT | ( | start, | |
end, | |||
expectedMS, | |||
... | |||
) |
Verify that an event took less than a specified amount of time.
This is similar to T_CHECK_TIMEOUT, but does not fail if the event took less than the allowed time.
Definition at line 50 of file Util.h.
Referenced by TEST().
#define T_CHECK_TIMEOUT | ( | start, | |
end, | |||
expectedMS, | |||
... | |||
) |
Check how long a timeout took to fire.
This method verifies:
start | A TimePoint object set just before the timeout was scheduled. |
end | A TimePoint object set when the timeout fired. |
expectedMS | The timeout duration, in milliseconds |
tolerance | The tolerance, in milliseconds. |