Definition at line 79 of file AeadTicketCipherTest.cpp.
fizz::server::test::AeadTicketCipherTest::~AeadTicketCipherTest |
( |
| ) |
|
|
overridedefault |
void fizz::server::test::AeadTicketCipherTest::checkUnsetEncrypt |
( |
| ) |
|
|
inlineprotected |
void fizz::server::test::AeadTicketCipherTest::expectDecode |
( |
| ) |
|
|
inlineprotected |
Definition at line 102 of file AeadTicketCipherTest.cpp.
References testing::_, folly::IOBuf::copyBuffer(), EXPECT_CALL, EXPECT_TRUE, and testing::Invoke().
105 Invoke([](
Buf& encoded,
const FizzServerContext* ) {
108 return ResumptionState();
MockTicketCodecInstance codec_
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
#define EXPECT_TRUE(condition)
std::unique_ptr< folly::IOBuf > Buf
#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::AeadTicketCipherTest::setTicketSecrets |
( |
std::string |
pskContext = "" | ) |
|
|
inlineprotected |
Definition at line 90 of file AeadTicketCipherTest.cpp.
References EXPECT_TRUE, folly::gen::move, fizz::server::AeadTicketCipher< AeadType, CodecType, HkdfType >::setTicketSecrets(), ticketSecret1, ticketSecret2, and fizz::test::toIOBuf().
91 if (!pskContext.empty()) {
98 std::vector<ByteRange> ticketSecrets{{s1->coalesce(), s2->coalesce()}};
std::unique_ptr< folly::IOBuf > toIOBuf(std::string hexData)
static constexpr StringPiece ticketSecret1
constexpr detail::Map< Move > move
TestAeadTicketCipher cipher_
bool setTicketSecrets(const std::vector< folly::ByteRange > &ticketSecrets)
#define EXPECT_TRUE(condition)
AeadTicketCipher< OpenSSLEVPCipher< AESGCM128 >, MockTicketCodec, HkdfImpl< Sha256 >> TestAeadTicketCipher
static constexpr StringPiece ticketSecret2
void fizz::server::test::AeadTicketCipherTest::SetUp |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: