30 responseHandler = std::make_unique<MockResponseHandler>(
handler);
31 handler->setResponseHandler(responseHandler.get());
35 Mock::VerifyAndClear(&stats);
36 Mock::VerifyAndClear(responseHandler.get());
77 EXPECT_CALL(*responseHandler, sendBody(
_)).WillRepeatedly(
79 Invoke([&] (std::shared_ptr<folly::IOBuf>
b) {
80 body += b->moveToFbString();
uint16_t getStatusCode() const
#define EXPECT_EQ(val1, val2)
void handler(int, siginfo_t *, void *)
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
std::unique_ptr< MockResponseHandler > responseHandler
HTTPHeaders & getHeaders()
internal::DoBothAction< Action1, Action2 > DoAll(Action1 a1, Action2 a2)
#define EXPECT_CALL(obj, call)
StrictMock< MockEchoStats > stats
const internal::AnythingMatcher _
TEST_F(EchoHandlerFixture, OnProperRequestSendsResponse)
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
internal::ReturnAction< R > Return(R value)
#define MOCK_METHOD0(m,...)