proxygen
|
Public Types | |
using | duration = std::chrono::steady_clock::duration |
using | time_point = std::chrono::steady_clock::time_point |
using | duration = std::chrono::steady_clock::duration |
using | time_point = std::chrono::steady_clock::time_point |
using | duration = std::chrono::steady_clock::duration |
using | time_point = std::chrono::time_point< MockClock, duration > |
Public Member Functions | |
MOCK_METHOD0 (nowImpl, time_point()) | |
Static Public Member Functions | |
static time_point | now () |
static time_point | now () |
static std::shared_ptr< StrictMock< MockClock > > | setup () |
Hold on to the returned shared_ptr until the end of the test. More... | |
static time_point | now () |
Static Public Attributes | |
static time_point | Now = MockClock::time_point{} |
static constexpr auto | is_steady = true |
static std::weak_ptr< StrictMock< MockClock > > | s_mockClockInstance |
MockClock is a bit tricky because we are mocking a static function (now()), so we need to find the corresponding mock instance without extending its scope beyond that of the test. I generally avoid shared_ptr, but a weak_ptr is just the ticket here
Definition at line 27 of file BufferedStatTest.cpp.
using MockClock::duration = std::chrono::steady_clock::duration |
Definition at line 25 of file QuantileEstimatorTest.cpp.
using MockClock::duration = std::chrono::steady_clock::duration |
Definition at line 29 of file BufferedStatTest.cpp.
using MockClock::duration = std::chrono::steady_clock::duration |
Definition at line 57 of file MemoryIdlerTest.cpp.
using MockClock::time_point = std::chrono::steady_clock::time_point |
Definition at line 26 of file QuantileEstimatorTest.cpp.
using MockClock::time_point = std::chrono::steady_clock::time_point |
Definition at line 30 of file BufferedStatTest.cpp.
using MockClock::time_point = std::chrono::time_point<MockClock, duration> |
Definition at line 58 of file MemoryIdlerTest.cpp.
MockClock::MOCK_METHOD0 | ( | nowImpl | , |
time_point() | |||
) |
|
inlinestatic |
Definition at line 29 of file QuantileEstimatorTest.cpp.
References Now.
|
inlinestatic |
Definition at line 32 of file BufferedStatTest.cpp.
|
inlinestatic |
Definition at line 69 of file MemoryIdlerTest.cpp.
|
inlinestatic |
Hold on to the returned shared_ptr until the end of the test.
Definition at line 63 of file MemoryIdlerTest.cpp.
Referenced by TEST().
|
static |
Definition at line 27 of file QuantileEstimatorTest.cpp.
|
static |
Definition at line 36 of file BufferedStatTest.cpp.
Referenced by now(), BufferedDigestTest::SetUp(), BufferedSlidingWindowTest::SetUp(), TEST(), and TEST_F().
|
static |
Definition at line 73 of file MemoryIdlerTest.cpp.