|
proxygen
|
#include <folly/portability/GMock.h>#include <folly/portability/GTest.h>#include <proxygen/httpserver/Mocks.h>#include <proxygen/httpserver/samples/echo/EchoHandler.h>#include <proxygen/httpserver/samples/echo/EchoStats.h>Go to the source code of this file.
Classes | |
| class | MockEchoStats |
| class | EchoHandlerFixture |
Functions | |
| TEST_F (EchoHandlerFixture, OnProperRequestSendsResponse) | |
| TEST_F (EchoHandlerFixture, ReplaysBodyProperly) | |
| TEST_F | ( | EchoHandlerFixture | , |
| OnProperRequestSendsResponse | |||
| ) |
Definition at line 49 of file EchoHandlerTest.cpp.
References testing::_, testing::DoAll(), EXPECT_CALL, EXPECT_EQ, proxygen::HTTPMessage::getHeaders(), proxygen::HTTPHeaders::getSingleOrEmpty(), proxygen::HTTPMessage::getStatusCode(), handler(), and testing::Return().
| TEST_F | ( | EchoHandlerFixture | , |
| ReplaysBodyProperly | |||
| ) |
Definition at line 67 of file EchoHandlerTest.cpp.
References testing::_, b, folly::IOBuf::copyBuffer(), testing::DoAll(), EXPECT_CALL, EXPECT_EQ, proxygen::HTTPMessage::getHeaders(), proxygen::HTTPHeaders::getSingleOrEmpty(), proxygen::HTTPMessage::getStatusCode(), handler(), testing::Invoke(), and testing::Return().