| 710 | |
| 711 | template <typename From, typename To> |
| 712 | Future<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 |
nothing calls this directly
no test coverage detected