Definition at line 41 of file AsyncFizzServerTest.cpp.
void fizz::server::test::AsyncFizzServerTest::accept |
( |
| ) |
|
|
inlineprotected |
void fizz::server::test::AsyncFizzServerTest::completeHandshake |
( |
| ) |
|
|
inlineprotected |
Definition at line 110 of file AsyncFizzServerTest.cpp.
References folly::netops::accept(), and EXPECT_CALL.
void fullHandshakeSuccess(std::shared_ptr< const Cert > clientCert=nullptr, std::shared_ptr< const Cert > serverCert=nullptr)
MockHandshakeCallbackT< MockServerStateMachineInstance > handshakeCallback_
#define EXPECT_CALL(obj, call)
void fizz::server::test::AsyncFizzServerTest::expectAppClose |
( |
| ) |
|
|
inlineprotected |
Definition at line 62 of file AsyncFizzServerTest.cpp.
References testing::_, fizz::server::detail::actions(), fizz::alert, fizz::WriteToSocket::contents, fizz::TLSContent::contentType, folly::IOBuf::copyBuffer(), fizz::TLSContent::data, fizz::TLSContent::encryptionLevel, fizz::server::Error, EXPECT_CALL, fizz::Handshake, testing::InvokeWithoutArgs(), folly::gen::move, fizz::server::State::state(), and fizz::detail::write().
70 write.contents.emplace_back(
std::move(record));
void write(const T &in, folly::io::Appender &appender)
Actions actions(Args &&...act)
MockServerStateMachineInstance * machine_
constexpr detail::Map< Move > move
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
#define EXPECT_CALL(obj, call)
const internal::AnythingMatcher _
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
void fizz::server::test::AsyncFizzServerTest::expectTransportReadCallback |
( |
| ) |
|
|
inlineprotected |
void fizz::server::test::AsyncFizzServerTest::fullHandshakeSuccess |
( |
std::shared_ptr< const Cert > |
clientCert = nullptr , |
|
|
std::shared_ptr< const Cert > |
serverCert = nullptr |
|
) |
| |
|
inlineprotected |
Definition at line 85 of file AsyncFizzServerTest.cpp.
References testing::_, fizz::server::test::actions(), cipher, clientCert, folly::IOBuf::copyBuffer(), EXPECT_CALL, testing::InvokeWithoutArgs(), folly::gen::move, and serverCert.
93 auto addExporterToState = [=](
State& newState) {
96 newState.exporterMasterSecret() =
std::move(exporterMaster);
97 newState.cipher() =
cipher;
98 newState.version() = protocolVersion;
104 ReportHandshakeSuccess(),
virtual void readBufferAvailable(std::unique_ptr< IOBuf >) noexcept
MockServerStateMachineInstance * machine_
constexpr detail::Map< Move > move
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
AsyncActions actions(Args &&...act)
std::shared_ptr< const Cert > serverCert
AsyncTransportWrapper::ReadCallback * socketReadCallback_
std::shared_ptr< const Cert > clientCert
#define EXPECT_CALL(obj, call)
const internal::AnythingMatcher _
CipherSuite negotiatedCipher_
ProtocolVersion protocolVersion_
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
void fizz::server::test::AsyncFizzServerTest::SetUp |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 43 of file AsyncFizzServerTest.cpp.
References fizz::server::test::MockServerStateMachineInstance::instance, folly::gen::move, ON_CALL, testing::Return(), and socket_.
44 context_ = std::make_shared<FizzServerContext>();
47 server_.reset(
new AsyncFizzServerT<MockServerStateMachineInstance>(
50 std::make_shared<MockServerExtensions>()));
MockReadCallback readCallback_
MockServerStateMachineInstance * machine_
constexpr detail::Map< Move > move
static MockServerStateMachineInstance * instance
std::unique_ptr< AsyncTransportWrapper, Destructor > UniquePtr
std::shared_ptr< FizzServerContext > context_
MockAsyncTransport * socket_
#define ON_CALL(obj, call)
AsyncFizzServerT< MockServerStateMachineInstance >::UniquePtr server_
internal::ReturnAction< R > Return(R value)
EventBase fizz::server::test::AsyncFizzServerTest::evb_ |
|
protected |
The documentation for this class was generated from the following file: