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

Function FutureMessage

include/process/gmock.hpp:499–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497
498template <typename Name, typename From, typename To>
499Future<Message> FutureMessage(Name name, From from, To to, bool drop = false)
500{
501 TestsFilter* filter = FilterTestEventListener::instance()->install();
502 Future<Message> future;
503 synchronized (filter->mutex) {
504 EXPECT_CALL(filter->mock, filter(to, testing::A<const MessageEvent&>()))
505 .With(MessageMatcher(name, from))
506 .WillOnce(testing::DoAll(FutureArgNotPointerField<1>(
507 &MessageEvent::message,
508 &future),
509 testing::Return(drop)))
510 .RetiresOnSaturation(); // Don't impose any subsequent expectations.
511 }
512
513 return future;
514}
515
516
517template <typename Message, typename UnionType, typename From, typename To>

Callers

nothing calls this directly

Calls 3

filterFunction · 0.85
synchronizedFunction · 0.50
installMethod · 0.45

Tested by

no test coverage detected