proxygen
fizz::test::MockSelfCert Class Reference

#include <Mocks.h>

Inheritance diagram for fizz::test::MockSelfCert:
fizz::SelfCert folly::AsyncTransportCertificate

Public Member Functions

 MOCK_CONST_METHOD0 (getIdentity, std::string())
 
 MOCK_CONST_METHOD0 (getAltIdentities, std::vector< std::string >())
 
 MOCK_CONST_METHOD0 (getSigSchemes, std::vector< SignatureScheme >())
 
 MOCK_CONST_METHOD1 (_getCertMessage, CertificateMsg(Buf &))
 
CertificateMsg getCertMessage (Buf buf) const override
 
 MOCK_CONST_METHOD1 (getCompressedCert, CompressedCertificate(CertificateCompressionAlgorithm))
 
 MOCK_CONST_METHOD3 (sign, Buf(SignatureScheme scheme, CertificateVerifyContext context, folly::ByteRange toBeSigned))
 
 MOCK_CONST_METHOD0 (getX509, folly::ssl::X509UniquePtr())
 
- Public Member Functions inherited from fizz::SelfCert
virtual ~SelfCert ()=default
 
virtual std::vector< std::stringgetAltIdentities () const =0
 
virtual std::vector< SignatureSchemegetSigSchemes () const =0
 
virtual CompressedCertificate getCompressedCert (CertificateCompressionAlgorithm algo) const =0
 
virtual Buf sign (SignatureScheme scheme, CertificateVerifyContext context, folly::ByteRange toBeSigned) const =0
 
- Public Member Functions inherited from folly::AsyncTransportCertificate
virtual ~AsyncTransportCertificate ()=default
 
virtual std::string getIdentity () const =0
 
virtual folly::ssl::X509UniquePtr getX509 () const =0
 

Detailed Description

Definition at line 100 of file Mocks.h.

Member Function Documentation

CertificateMsg fizz::test::MockSelfCert::getCertMessage ( Buf  buf) const
inlineoverridevirtual

Implements fizz::SelfCert.

Definition at line 107 of file Mocks.h.

References context, MOCK_CONST_METHOD0, MOCK_CONST_METHOD1, and MOCK_CONST_METHOD3.

107  {
108  return _getCertMessage(buf);
109  }
fizz::test::MockSelfCert::MOCK_CONST_METHOD0 ( getIdentity  ,
std::string()   
)
fizz::test::MockSelfCert::MOCK_CONST_METHOD0 ( getAltIdentities  ,
std::vector< std::string () 
)
fizz::test::MockSelfCert::MOCK_CONST_METHOD0 ( getSigSchemes  ,
std::vector< SignatureScheme () 
)
fizz::test::MockSelfCert::MOCK_CONST_METHOD0 ( getX509  ,
folly::ssl::X509UniquePtr()   
)
fizz::test::MockSelfCert::MOCK_CONST_METHOD1 ( _getCertMessage  ,
CertificateMsg(Buf &)   
)
fizz::test::MockSelfCert::MOCK_CONST_METHOD1 ( getCompressedCert  ,
CompressedCertificate(CertificateCompressionAlgorithm  
)
fizz::test::MockSelfCert::MOCK_CONST_METHOD3 ( sign  ,
Buf(SignatureScheme scheme, CertificateVerifyContext context, folly::ByteRange toBeSigned)   
)

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