MCPcopy Create free account
hub / github.com/3rdparty/libprocess / FutureExited

Function FutureExited

include/process/gmock.hpp:712–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710
711template <typename From, typename To>
712Future<Nothing> FutureExited(From from, To to, bool drop = false)
713{
714 TestsFilter* filter = FilterTestEventListener::instance()->install();
715 Future<Nothing> future;
716 synchronized (filter->mutex) {
717 EXPECT_CALL(filter->mock, filter(to, testing::A<const ExitedEvent&>()))
718 .With(ExitedMatcher(from))
719 .WillOnce(testing::DoAll(FutureSatisfy(&future),
720 testing::Return(drop)))
721 .RetiresOnSaturation(); // Don't impose any subsequent expectations.
722 }
723
724 return future;
725}
726
727} // namespace process {
728

Callers

nothing calls this directly

Calls 4

filterFunction · 0.85
FutureSatisfyFunction · 0.85
synchronizedFunction · 0.50
installMethod · 0.45

Tested by

no test coverage detected