proxygen
|
Public Member Functions | |
MockAtom (T init=0) | |
MOCK_CONST_METHOD2 (futexWait, FutexResult(uint32_t, uint32_t)) | |
MOCK_CONST_METHOD3 (futexWaitUntil, FutexResult(uint32_t, const MockClock::time_point &, uint32_t)) | |
MockedAtom gives us a way to select a mocked Futex implementation inside Baton, even though the atom itself isn't exercised by the mocked futex
Futex<MockAtom> is our mocked futex implementation. Note that the method signatures differ from the real Futex because we have elided unused default params and collapsed templated methods into the used type
Definition at line 87 of file MemoryIdlerTest.cpp.
Definition at line 88 of file MemoryIdlerTest.cpp.
References folly::detail::futexWait(), folly::detail::futexWaitUntil(), MOCK_CONST_METHOD2, MOCK_CONST_METHOD3, and uint32_t.
MockAtom< T >::MOCK_CONST_METHOD2 | ( | futexWait | , |
FutexResult(uint32_t, uint32_t) | |||
) |
MockAtom< T >::MOCK_CONST_METHOD3 | ( | futexWaitUntil | , |
FutexResult(uint32_t, const MockClock::time_point &, uint32_t) | |||
) |