proxygen
|
#include <Mocks.h>
Public Member Functions | |
MOCK_CONST_METHOD1 (_encrypt, folly::Future< folly::Optional< std::pair< Buf, std::chrono::seconds >>>(ResumptionState &)) | |
folly::Future< folly::Optional< std::pair< Buf, std::chrono::seconds > > > | encrypt (ResumptionState resState) const override |
MOCK_CONST_METHOD1 (_decrypt, folly::Future< std::pair< PskType, folly::Optional< ResumptionState >>>(std::unique_ptr< folly::IOBuf > &encryptedTicket)) | |
folly::Future< std::pair< PskType, folly::Optional< ResumptionState > > > | decrypt (std::unique_ptr< folly::IOBuf > encryptedTicket) const override |
void | setDefaults () |
Public Member Functions inherited from fizz::server::TicketCipher | |
virtual | ~TicketCipher ()=default |
|
inlineoverridevirtual |
Returns the ResumptionState for an opaque PSK, and the type of PSK (resumption or external).
Returns Rejected if the PSK is not recognized.
Implements fizz::server::TicketCipher.
|
inlineoverridevirtual |
Returns an opaque PSK for ResumptionState, and its validity time.
Implements fizz::server::TicketCipher.
Definition at line 94 of file Mocks.h.
References MOCK_CONST_METHOD1.
fizz::server::test::MockTicketCipher::MOCK_CONST_METHOD1 | ( | _encrypt | , |
folly::Future< folly::Optional< std::pair< Buf, std::chrono::seconds >>> | ResumptionState & | ||
) |
fizz::server::test::MockTicketCipher::MOCK_CONST_METHOD1 | ( | _decrypt | , |
folly::Future< std::pair< PskType, folly::Optional< ResumptionState >>> | std::unique_ptr< folly::IOBuf > &encryptedTicket | ||
) |
|
inline |
Definition at line 108 of file Mocks.h.
References testing::_, fizz::server::ResumptionState::alpn, fizz::server::ResumptionState::cipher, folly::IOBuf::copyBuffer(), testing::InvokeWithoutArgs(), folly::gen::move, now(), ON_CALL, fizz::server::ResumptionState::resumptionSecret, fizz::server::ResumptionState::ticketAgeAdd, fizz::server::ResumptionState::ticketIssueTime, and fizz::server::ResumptionState::version.