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

Function DropHttpRequests

include/process/gmock.hpp:581–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579
580template <typename Message, typename Path, typename Deserializer>
581void DropHttpRequests(
582 Message message,
583 Path path,
584 Deserializer deserializer,
585 bool drop = false)
586{
587 TestsFilter* filter = FilterTestEventListener::instance()->install();
588 synchronized (filter->mutex) {
589 EXPECT_CALL(filter->mock, filter(
590 testing::A<const UPID&>(),
591 testing::A<const HttpEvent&>()))
592 .With(HttpMatcher(message, path, deserializer))
593 .WillRepeatedly(testing::Return(true));
594 }
595}
596
597
598template <typename Message,

Callers

nothing calls this directly

Calls 3

filterFunction · 0.85
synchronizedFunction · 0.50
installMethod · 0.45

Tested by

no test coverage detected