proxygen
TicketCodecTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <fizz/server/TicketCodec.h>
#include <fizz/crypto/test/TestUtil.h>
#include <fizz/protocol/test/Mocks.h>

Go to the source code of this file.

Namespaces

 fizz
 
 fizz::server
 
 fizz::server::test
 

Functions

static ResumptionState fizz::server::test::getTestResumptionState (std::shared_ptr< SelfCert > cert, std::shared_ptr< PeerCert > peerCert)
 
 fizz::server::test::TEST (TicketCodecTest, TestEncode)
 
 fizz::server::test::TEST (TicketCodecTest, TestEncodeWithAppToken)
 
 fizz::server::test::TEST (TicketCodecTest, TestEncodeNoAlpn)
 
 fizz::server::test::TEST (TicketCodecTest, TestEncodeClientAuthX509)
 
 fizz::server::test::TEST (TicketCodecTest, TestEncodeClientAuthIdentityOnly)
 
 fizz::server::test::TEST (TicketCodecTest, TestEncodeNoX509)
 
 fizz::server::test::TEST (TicketCodecTest, TestDecodeDifferentStorage)
 
 fizz::server::test::TEST (TicketCodecTest, TestDecode)
 
 fizz::server::test::TEST (TicketCodecTest, TestDecodeNoAlpn)
 
 fizz::server::test::TEST (TicketCodecTest, TestDecodeTooShort)
 
 fizz::server::test::TEST (TicketCodecTest, TestDecodeWithAppToken)
 
 fizz::server::test::TEST (TicketCodecTest, TestDecodeWithEmptyAppToken)
 
 fizz::server::test::TEST (TicketCodecTest, TestDecodeWithoutAppToken)
 

Variables

static constexpr StringPiece ticket
 
static constexpr StringPiece ticketWithAppToken
 
static constexpr StringPiece ticketWithoutAppToken
 
static constexpr StringPiece ticketNoAlpn
 
static constexpr StringPiece ticketClientAuthX509
 
static constexpr StringPiece ticketClientAuthIdentityOnly
 

Variable Documentation

constexpr StringPiece ticket
static
Initial value:
{
"03041301000673656372657400056964656e74004444444400000000000000190268320000"}

Definition at line 21 of file TicketCodecTest.cpp.

Referenced by folly::detail::MPMCPipelineStageImpl< T >::blockingRead(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::blockingRead(), folly::MPMCQueue< T, Atom, true >::blockingReadWithTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::blockingReadWithTicket(), folly::MPMCQueue< T, Atom, true >::blockingWrite(), folly::LockFreeRingBuffer< T, Atom >::currentTail(), fizz::server::DualTicketCipher::decrypt(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::dequeueWithTicketBase(), fizz::server::AeadTicketCipher< AeadType, CodecType, HkdfType >::encrypt(), fizz::sm::generateTicket(), folly::LockFreeRingBuffer< T, Atom >::idx(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::idx(), folly::MPMCQueue< T, Atom, true >::maybeUpdateFromClosed(), folly::LockFreeRingBuffer< T, Atom >::Cursor::moveBackward(), folly::LockFreeRingBuffer< T, Atom >::Cursor::moveForward(), folly::gen::detail::PMap< Predicate >::Generator< Value, Source, Input, Output >::ExecutionPipeline::predApplier(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::read(), folly::detail::MPMCPipelineStageImpl< T >::readAndGetTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::readAndGetTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::readIfNotEmpty(), folly::test::TEST(), fizz::server::test::TEST(), fizz::test::TEST_F(), folly::MPMCQueue< T, Atom, true >::tryExpand(), folly::MPMCQueue< T, Atom, true >::tryObtainPromisedPopTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryObtainPromisedPopTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryObtainPromisedPopTicketUntil(), folly::MPMCQueue< T, Atom, true >::tryObtainPromisedPushTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryObtainPromisedPushTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryObtainPromisedPushTicketUntil(), folly::MPMCQueue< T, Atom, true >::tryObtainReadyPopTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryObtainReadyPopTicket(), folly::MPMCQueue< T, Atom, true >::tryObtainReadyPushTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryObtainReadyPushTicket(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryReadUntil(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::tryWriteUntil(), folly::LockFreeRingBuffer< T, Atom >::turn(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::turn(), folly::value(), folly::LockFreeRingBuffer< T, Atom >::write(), folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::write(), folly::LockFreeRingBuffer< T, Atom >::writeAndGetCursor(), and folly::detail::MPMCQueueBase< Derived< T, Atom, Dynamic > >::writeIfNotFull().

constexpr StringPiece ticketClientAuthIdentityOnly
static
Initial value:
{
"03041301000673656372657400056964656e74020008636c69656e7469644444444400000000000000190268320000"}

Definition at line 31 of file TicketCodecTest.cpp.

Referenced by fizz::server::test::TEST().

constexpr StringPiece ticketClientAuthX509
static
Initial value:
{
"03041301000673656372657400056964656e740103653082036130820249a003020102020900c3420836ac1ca26f300d06092a864886f70d01010b0500304b310b3009060355040613025553310b300906035504080c024e593111300f06035504070c084e657720596f726b310d300b060355040b0c0446697a7a310d300b06035504030c0446697a7a301e170d3136313232393036323431385a170d3431303832303036323431385a304b310b3009060355040613025553310b300906035504080c024e593111300f06035504070c084e657720596f726b310d300b060355040b0c0446697a7a310d300b06035504030c0446697a7a30820122300d06092a864886f70d01010105000382010f003082010a0282010100c564999066687e557e86734a655b8252bd1e39e758b45204535ea60113cfdca3ea1c5adc117b9d039ff8ea1a2881f49bd9662a11a09e96d6371a23c6f963dd8610c48b98788489af2fe83f89353b2cb988866931e212b3018c74d76d35d87c72ee9bc4249cba4bbc047098f403136c585a3c4b2b087cee51c39ec24c7a25c7071bb82b1faba09c6b73c4d2073d51767629a4c936ea61f2058f0dd8a8f00bb9627629bc8632d105ede9e505007f21b8d4413942be5c79e0fbfcc0217400b462445bfaf1fef2835169b49f364a9485173c874248c0933baaa3f9416fca977448de0f5d6ffa0d425e1a2ddb5c5aa5f5717ccaccba66085e1cab2f80f0e54a438ee50203010001a348304630090603551d1304023000300b0603551d0f0404030205e0302c0603551d1104253023820a2a2e66697a7a2e636f6d820866697a7a2e636f6d820b6578616d706c652e6e6574300d06092a864886f70d01010b050003820101008a48bf0c71489acb196f08af3e0fa4a2e878a7ad2c25b71d856bacc17c9c62cac25cde58b6b406940deb7f03b832ceb1a1995f43ac86c3ac3c273d156b9bf1576ee69035cee0cb4b4dda2f61780c1332bcabc39aa6b4f89b23f92b88934e78a05d50e23bf1f551342419b1d457c7679520f9ff032d662f2cc37a1bd3fa618ce810d9f9f3da1afff2476160e82629add8807cd11d64e3b808bc675e5b80a794d1f58d83b5fe6af5c951cdae976439a6f622d744c9c753c3cce2fd038646115ebe3711fa9e9cf8d2abdbf3928aff7e2dfbdb68596f771924286af79abb1bd848330752e24874e5940fb24bcf10cf1712461cd279283f6ef2fec6c593c5c1a0d70d4444444400000000000000190268320000"}

Definition at line 29 of file TicketCodecTest.cpp.

Referenced by fizz::server::test::TEST().

constexpr StringPiece ticketNoAlpn
static
Initial value:
{
"03041301000673656372657400056964656e7400444444440000000000000019000000"}

Definition at line 27 of file TicketCodecTest.cpp.

Referenced by fizz::server::test::TEST().

constexpr StringPiece ticketWithAppToken
static
Initial value:
{
"03041301000673656372657400056964656e7400444444440000000000000019026832000b68656c6c6f20776f726c64"}

Definition at line 23 of file TicketCodecTest.cpp.

Referenced by fizz::server::test::TEST().

constexpr StringPiece ticketWithoutAppToken
static
Initial value:
{
"03041301000673656372657400056964656e7400444444440000000000000019026832"}

Definition at line 25 of file TicketCodecTest.cpp.

Referenced by fizz::server::test::TEST().