|
proxygen
|
#include <folly/portability/GTest.h>#include <folly/portability/GMock.h>#include "proxygen/httpserver/Mocks.h"#include <proxygen/httpserver/RequestHandlerAdaptor.h>#include "proxygen/lib/http/session/test/HTTPTransactionMocks.h"Go to the source code of this file.
Classes | |
| struct | StubRequestHandlerAdaptor |
Functions | |
| void | testExpectHandling (bool handlerResponds) |
| TEST (RequestHandlerAdaptorTest, Expect) | |
| TEST (RequestHandlerAdaptorTest, onError) | |
| TEST | ( | RequestHandlerAdaptorTest | , |
| Expect | |||
| ) |
Definition at line 47 of file RequestHandlerAdaptorTest.cpp.
References testExpectHandling().
| TEST | ( | RequestHandlerAdaptorTest | , |
| onError | |||
| ) |
Definition at line 52 of file RequestHandlerAdaptorTest.cpp.
References proxygen::kErrorTimeout, proxygen::HTTPTransaction::onError(), proxygen::HTTPTransaction::setHandler(), and proxygen::Exception::setProxygenError().
| void testExpectHandling | ( | bool | handlerResponds | ) |
Definition at line 34 of file RequestHandlerAdaptorTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, folly::gen::move, proxygen::HTTPTransactionHandler::onHeadersComplete(), and testing::Return().
Referenced by TEST().