proxygen
fizz::test::AuthenticatorTest Class Reference
Inheritance diagram for fizz::test::AuthenticatorTest:
testing::Test

Public Member Functions

void SetUp () override
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Protected Attributes

std::unique_ptr< KeyDerivationderiver_
 
std::vector< SignatureSchemeschemes_
 
Buf authrequest_
 
Buf handshakeContext_
 
Buf finishedKey_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 65 of file ExportedAuthenticatorTest.cpp.

Member Function Documentation

void fizz::test::AuthenticatorTest::SetUp ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 67 of file ExportedAuthenticatorTest.cpp.

References fizz::CertificateRequest::certificate_request_context, cipher, folly::IOBuf::copyBuffer(), fizz::encode< CertificateRequest >(), fizz::encodeExtension(), fizz::CertificateRequest::extensions, folly::ssl::init(), fizz::Factory::makeKeyDeriver(), folly::gen::move, and fizz::SignatureAlgorithms::supported_signature_algorithms.

67  {
70  cr.certificate_request_context =
71  folly::IOBuf::copyBuffer("0123456789abcdefghij");
72  SignatureAlgorithms sigAlgs;
73  sigAlgs.supported_signature_algorithms.push_back(
75  cr.extensions.push_back(encodeExtension(std::move(sigAlgs)));
76  auto authRequest = encode<CertificateRequest>(std::move(cr));
77  authrequest_ = std::move(authRequest);
79  deriver_ = Factory().makeKeyDeriver(cipher);
81  folly::IOBuf::copyBuffer("12345678901234567890123456789012");
82  finishedKey_ = folly::IOBuf::copyBuffer("12345678901234567890123456789012");
84  }
Buf encode< CertificateRequest >(CertificateRequest &&cr)
Definition: Types-inl.h:384
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
CipherSuite
Definition: Types.h:153
void init()
Definition: Init.cpp:54
std::vector< SignatureScheme > schemes_
std::unique_ptr< KeyDerivation > deriver_
CipherSuite cipher
Extension encodeExtension(const TokenBindingParameters &params)
Definition: Types.cpp:113
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
Definition: IOBuf.h:1587

Member Data Documentation

Buf fizz::test::AuthenticatorTest::authrequest_
protected

Definition at line 89 of file ExportedAuthenticatorTest.cpp.

std::unique_ptr<KeyDerivation> fizz::test::AuthenticatorTest::deriver_
protected

Definition at line 87 of file ExportedAuthenticatorTest.cpp.

Buf fizz::test::AuthenticatorTest::finishedKey_
protected

Definition at line 91 of file ExportedAuthenticatorTest.cpp.

Buf fizz::test::AuthenticatorTest::handshakeContext_
protected

Definition at line 90 of file ExportedAuthenticatorTest.cpp.

std::vector<SignatureScheme> fizz::test::AuthenticatorTest::schemes_
protected

Definition at line 88 of file ExportedAuthenticatorTest.cpp.


The documentation for this class was generated from the following file: